|
||||||||||
| 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.bytearray.ByteArrayServerService
The ObjectServerService is a simple service for facilitating sending objects around between processes.
| Field Summary |
| Fields inherited from interface pyrasun.eio.services.EmberService |
RUNNING, STOPPED |
| Constructor Summary | |
ByteArrayServerService(EIOGlobalContext context,
EIOPoolingStrategy acceptStrategy,
EIOPoolingStrategy ioStrategy,
java.lang.String host,
int port)
|
|
| Method Summary | |
ReadWriteEndpoint |
createEndpoint(EndpointCoordinator coord,
java.nio.channels.SocketChannel channel)
|
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. |
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(ByteArrayServerListener listener)
|
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 ByteArrayServerService(EIOGlobalContext context,
EIOPoolingStrategy acceptStrategy,
EIOPoolingStrategy ioStrategy,
java.lang.String host,
int port)
throws java.io.IOException
| Method Detail |
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 setListener(ByteArrayServerListener listener)
public ReadWriteEndpoint createEndpoint(EndpointCoordinator coord,
java.nio.channels.SocketChannel channel)
createEndpoint in interface EIOEndpointFactorypublic 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 | |||||||||