CMRunnable
, java.lang.Runnable
public class RequestHandler extends java.lang.Object implements CMRunnable
Constructor | Description |
---|---|
RequestHandler(java.nio.channels.SocketChannel chan,
int maxIdleMillis) |
Modifier and Type | Method | Description |
---|---|---|
long |
activeTimeMillis() |
Returns the number of milliseconds this runnable
has been running.
|
void |
addDependent(java.lang.String s,
java.lang.Object O) |
|
void |
close() |
|
void |
delDependent(java.lang.String s) |
|
void |
execute(java.lang.String line) |
|
int |
getGroupID() |
The group identifier for this runnable, which may be used
for executor selection
|
long |
getStartTime() |
Either the time this runnable did start running, or
will start running, depending on whether it's scheduled
|
PhysicalAgent |
getTarget() |
|
MOB |
getUser() |
|
boolean |
isRunning() |
|
void |
login(MOB M) |
|
void |
logout() |
|
boolean |
needsClosing() |
|
void |
run() |
|
void |
sendMsg(java.lang.String msg) |
|
void |
setEndOfLine(java.lang.String... msgs) |
|
void |
setTarget(PhysicalAgent A) |
|
void |
shutdown() |
public RequestHandler(java.nio.channels.SocketChannel chan, int maxIdleMillis) throws java.io.IOException
java.io.IOException
public long activeTimeMillis()
CMRunnable
activeTimeMillis
in interface CMRunnable
public void sendMsg(java.lang.String msg) throws java.io.IOException
java.io.IOException
public void close()
public void shutdown()
public void login(MOB M)
public void setTarget(PhysicalAgent A)
public PhysicalAgent getTarget()
public MOB getUser()
public void logout()
public void addDependent(java.lang.String s, java.lang.Object O)
public void delDependent(java.lang.String s)
public boolean isRunning()
public boolean needsClosing()
public long getStartTime()
CMRunnable
getStartTime
in interface CMRunnable
public int getGroupID()
CMRunnable
getGroupID
in interface CMRunnable
public void run()
run
in interface java.lang.Runnable
public void setEndOfLine(java.lang.String... msgs)
public void execute(java.lang.String line)