|
Ila | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.topoweb.ila.server.Request
A basic unit of processing. Instances of this class are enqueued
to be processed by a RequestProcessor
instance. The reason why we have this class is that we have 2
general types of events to process in the same thread:
These are events generated as a result of a remote entity such as a client or another Ila server communicating with over the network.
These are locally generated events that maintain, update or monitor the local Ila subsytem.
Constructor Summary | |
Request(IlaSession session)
Creates a remote instance with the given session . |
|
Request(Instruction instruction)
Creates a local instance with the given instruction . |
Method Summary | |
Instruction |
getInstruction()
Returns the instruction if the instance is "local". |
IlaSession |
getSession()
Returns the session if the instance is "remote". |
boolean |
isLocal()
Tests whether this instance represents a local event. |
boolean |
isRemote()
Tests whether this instance represents a remote event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Request(Instruction instruction)
instruction
.
The isLocal
method returns true
.
instruction
- the local unit of processing
java.lang.IllegalArgumentException
- if the argument is null
public Request(IlaSession session)
session
.
The isRemote
method returns true
.
session
- the remote unit of processing
java.lang.IllegalArgumentException
- if the argument is null
Method Detail |
public boolean isLocal()
true
, the getInstruction
method will return
a non-null
value.
true
, if this instance represents
an instruction; false
, o.w.getInstruction()
public boolean isRemote()
true
, the getSession
method will return
a non-null
value.
true
, if this instance represents
a session; false
, o.w.getSession()
public IlaSession getSession()
IlaSession
, if this is a
remote instance; null
, o.w.isRemote()
public Instruction getInstruction()
Instruction
, if this is a
local instance; null
, o.w.isLocal()
|
Ila | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |