Methods Summary |
---|
public void | close()
if (orb.transportDebugFlag) {
dprint(".close: " + acceptor);
}
keepRunning = false;
|
public void | doWork()
try {
if (orb.transportDebugFlag) {
dprint(".doWork: Start ListenerThread: " + acceptor);
}
while (keepRunning) {
try {
if (orb.transportDebugFlag) {
dprint(".doWork: BEFORE ACCEPT CYCLE: " + acceptor);
}
acceptor.accept();
if (orb.transportDebugFlag) {
dprint(".doWork: AFTER ACCEPT CYCLE: " + acceptor);
}
} catch (Throwable t) {
if (orb.transportDebugFlag) {
dprint(".doWork: Exception in accept: " + acceptor,t);
}
orb.getTransportManager().getSelector(0)
.unregisterForEvent(getAcceptor().getEventHandler());
getAcceptor().close();
}
}
} finally {
if (orb.transportDebugFlag) {
dprint(".doWork: Terminated ListenerThread: " + acceptor);
}
}
|
private void | dprint(java.lang.String msg)
ORBUtility.dprint("ListenerThreadImpl", msg);
|
private void | dprint(java.lang.String msg, java.lang.Throwable t)
dprint(msg);
t.printStackTrace(System.out);
|
public com.sun.corba.se.pept.transport.Acceptor | getAcceptor()
return acceptor;
|
public long | getEnqueueTime()
return enqueueTime;
|
public java.lang.String | getName() return "ListenerThread";
|
public void | setEnqueueTime(long timeInMillis)
enqueueTime = timeInMillis;
|