|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.aps.jca.cas.ServerContext
public abstract class ServerContext
The class representing a CA Server Context. Context are created through the JCALibrary factory class.
JCALibrary| Constructor Summary | |
|---|---|
ServerContext()
|
|
| Method Summary | |
|---|---|
abstract void |
addContextExceptionListener(ContextExceptionListener l)
Add a ContextExceptionListener to this context. |
abstract void |
addContextMessageListener(ContextMessageListener l)
Add a ContextMessageListener to this context. |
abstract void |
destroy()
Clear all resources attached to this Context |
void |
dispose()
Dispose (destroy) server context. |
abstract ContextExceptionListener[] |
getContextExceptionListeners()
|
abstract ContextMessageListener[] |
getContextMessageListeners()
|
abstract Version |
getVersion()
|
abstract void |
initialize(Server server)
Set Server implemenation and initialzie server. |
void |
printInfo()
Prints detailed information about the Context to the standard output stream. |
void |
printInfo(java.io.PrintStream out)
Prints detailed information about the Context to the specified output stream. |
abstract void |
removeContextExceptionListener(ContextExceptionListener l)
Removes a ContextExceptionListener from this context. |
abstract void |
removeContextMessageListener(ContextMessageListener l)
Removes a ContextMessageListener from this context. |
abstract void |
run(int seconds)
Run server (process events). |
abstract void |
shutdown()
Shutdown (stop executing run() method) of this Context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerContext()
| Method Detail |
|---|
public abstract Version getVersion()
public abstract void initialize(Server server)
throws CAException,
java.lang.IllegalStateException
Server implemenation and initialzie server. This method is called immediately after instance construction (call of constructor).
server - Server implementation providing ProcessVariable access (existance test and attach).
CAException
java.lang.IllegalStateException
public abstract void run(int seconds)
throws CAException,
java.lang.IllegalStateException
seconds - time in seconds the server will process events (method will block), if 0
the method would block until destory() is called.
java.lang.IllegalStateException - if server is already destroyed.
CAException
public abstract ContextMessageListener[] getContextMessageListeners()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the context has been destroyed.
public abstract void addContextMessageListener(ContextMessageListener l)
throws CAException,
java.lang.IllegalStateException
l - the listener to add
java.lang.IllegalStateException - if the context has been destroyed.
CAException
public abstract void removeContextMessageListener(ContextMessageListener l)
throws CAException,
java.lang.IllegalStateException
l - the listener to remove
java.lang.IllegalStateException - if the context has been destroyed.
CAException
public abstract ContextExceptionListener[] getContextExceptionListeners()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the context has been destroyed.
public abstract void addContextExceptionListener(ContextExceptionListener l)
throws CAException,
java.lang.IllegalStateException
l - the listener to add
java.lang.IllegalStateException - if the context has been destroyed.
CAException
public abstract void removeContextExceptionListener(ContextExceptionListener l)
throws CAException,
java.lang.IllegalStateException
l - the listener to remove
java.lang.IllegalStateException - if the context has been destroyed.
CAException
public abstract void shutdown()
throws CAException,
java.lang.IllegalStateException
java.lang.IllegalStateException - if the context has been destroyed.
CAException
public abstract void destroy()
throws CAException,
java.lang.IllegalStateException
java.lang.IllegalStateException - if the context has been destroyed.
CAException
public void printInfo()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the context has been destroyed.
public void printInfo(java.io.PrintStream out)
throws java.lang.IllegalStateException
out - the output stream.
java.lang.IllegalStateException - if the context has been destroyed.public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||