|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.javageeks.gjas.services.ThreadedServer | +--com.javageeks.gjas.services.SocketServer | +--com.javageeks.gjas.services.RemoteStorageService
RemoteStorageService
Fields inherited from class com.javageeks.gjas.services.SocketServer |
m_serverSocket, PORT_PROP, TIMEOUT_PROP |
Fields inherited from class com.javageeks.gjas.services.ThreadedServer |
m_paused, m_shouldStop |
Fields inherited from interface com.javageeks.gjas.Service |
PAUSED, PAUSING, RESUMING, RUNNING, STARTING, STOPPED, STOPPING |
Constructor Summary | |
RemoteStorageService()
|
Method Summary | |
void |
serve(java.net.Socket socket)
Use this Socket to answer client requests for serialization services. |
Methods inherited from class com.javageeks.gjas.services.SocketServer |
getConfigInfo, getPort, setConfigInfo, setPort, start, stop |
Methods inherited from class com.javageeks.gjas.services.ThreadedServer |
getInstanceID, getState, getThread, isPaused, kill, pause, resume, setRunnable, setState, setThread, shouldStop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RemoteStorageService()
Method Detail |
public void serve(java.net.Socket socket) throws java.lang.Exception
Note also that order of construction of the streams (the ObjectInput/ObjectOutput streams) is important; because the client's ObjectInputStream is expecting to find header information on the server's ObjectOutputStream, they must be constructed in offsetting pairs. The server builds them in Output-first-Input-second order, so the client must build them in reverse (Input-first-Output-second) order. For this reason, only use RemoteStorageRequest instances to talk to the RemoteStorageService.
serve
in class SocketServer
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |