|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpyrasun.eio.services.AbstractEmberService
pyrasun.eio.services.telnet.TelnetService
A service which does very little. It's setup to use the string protocol, and effectively it means you can telnet into the running process and issue comands to it. The only supported default commands are 'dump', which dumps out the running EIO state, and quit and exit, both of which kill your telnet connection.
| Field Summary |
| Fields inherited from interface pyrasun.eio.services.EmberService |
RUNNING, STOPPED |
| Constructor Summary | |
TelnetService(EIOGlobalContext context,
EIOPoolingStrategy acceptStrategy,
EIOPoolingStrategy ioStrategy,
java.lang.String host,
int port)
|
|
| Method Summary | |
void |
endpointClosed(Endpoint endpoint,
EIOReasonCode reason,
java.lang.String msg,
java.lang.Throwable t,
java.lang.Object context)
A callback indicating that the specified endpoint was closed. |
EmberServiceListener |
getListener()
|
java.lang.String |
getPrompt()
|
java.lang.String |
getWelcome()
|
void |
newEndpoint(ReadWriteEndpoint endpoint)
|
void |
reportReadError(Endpoint endpoint,
EIOReasonCode why,
java.lang.String msg,
java.lang.Throwable t,
java.lang.Object context)
Reports that a non-fatal error occured while reading from this endpoint. |
void |
reportWriteError(Endpoint endpoint,
EIOReasonCode why,
java.lang.String msg,
java.lang.Throwable t,
java.lang.Object context)
Reports that a non-fatal error occured while writing to this endpoint. |
void |
setListener(EmberServiceListener listener)
|
void |
setPrompt(java.lang.String prompt)
|
void |
setWelcome(java.lang.String welcome)
|
void |
start()
Start the service. |
void |
stop()
Stop the service. |
| Methods inherited from class pyrasun.eio.services.AbstractEmberService |
failureOK, getController, getName, getState, isStoppable, setController |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TelnetService(EIOGlobalContext context,
EIOPoolingStrategy acceptStrategy,
EIOPoolingStrategy ioStrategy,
java.lang.String host,
int port)
throws java.io.IOException
| Method Detail |
public void setListener(EmberServiceListener listener)
public EmberServiceListener getListener()
public void setPrompt(java.lang.String prompt)
public java.lang.String getPrompt()
public void setWelcome(java.lang.String welcome)
public java.lang.String getWelcome()
public void start()
throws EmberServiceException
start in interface EmberServicestart in class AbstractEmberServiceServiceException - if the service fails to start, or is already
running
EmberServiceException
public void stop()
throws EmberServiceException
stop in interface EmberServicestop in class AbstractEmberServiceServiceException - if the service fails to stop, or is already
stopped
EmberServiceExceptionpublic void newEndpoint(ReadWriteEndpoint endpoint)
newEndpoint in interface EIOAcceptWorkerFactory.EIOAcceptWorkerCallback
public void endpointClosed(Endpoint endpoint,
EIOReasonCode reason,
java.lang.String msg,
java.lang.Throwable t,
java.lang.Object context)
EndpointEventListener
endpointClosed in interface EndpointEventListenerendpoint - The endpoint that was closedreason - Indicator as to why the endpoint was closedmsg - Semi-friendly text explaining in more detail why it was closed. May be null!t - Exception that caused the close. May be null if an exception was not the causecontext - An object that indicates the context in which the close happened. Usually null, but app code may override with its own meaning
public void reportReadError(Endpoint endpoint,
EIOReasonCode why,
java.lang.String msg,
java.lang.Throwable t,
java.lang.Object context)
EndpointEventListener
reportReadError in interface EndpointEventListener
public void reportWriteError(Endpoint endpoint,
EIOReasonCode why,
java.lang.String msg,
java.lang.Throwable t,
java.lang.Object context)
EndpointEventListener
reportWriteError in interface EndpointEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||