|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerImplementation
This interface may be implemented by server classes which implement the programs of a library. Second, this interface can be used to implement custom methods for initialization and shutdown of the server. These methods can deal with connections to other components like databases.
Method Summary | |
---|---|
void |
closeConversation(boolean commit)
Method called by the RPC Server when a conversation RPC ends. |
void |
finish()
Called on termination of a worker thread. |
void |
init()
Called on start by the Java RPC server. |
void |
shutdown()
Called on shutdown by the Java RPC server. |
Method Detail |
---|
void closeConversation(boolean commit)
commit
- true
if closeConversationCommit has been called
by RPC client, false
otherwisevoid init() throws java.lang.Exception
System.out
. In this case the server does not start.
java.lang.Exception
- if the method fails.void shutdown() throws java.lang.Exception
init()
and calls this method on shutdown. If this method
throws an exception, the stack trace is written to the log file or to
System.out
. In this case the shutdown proceeds.init
starts any threads, shutdown
must stop
these threads. Otherwise, the Java RPC server will not terminate.
java.lang.Exception
- if the method fails.void finish() throws java.lang.Exception
System.out
. This
method is called once for each worker thread and each server class of
this worker thread.
java.lang.Exception
- if the method fails.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |