public abstract class ServerContext extends Object
JCALibrary| Constructor and Description |
|---|
ServerContext() |
| Modifier and Type | Method and Description |
|---|---|
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(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.
|
public abstract Version getVersion()
public abstract void initialize(Server server) throws CAException, 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 - IllegalStateExceptionIllegalStateExceptionpublic abstract void run(int seconds)
throws CAException,
IllegalStateException
seconds - time in seconds the server will process events (method will block), if 0
the method would block until destory() is called.IllegalStateException - if server is already destroyed.CAException - CA Exceptionpublic abstract ContextMessageListener[] getContextMessageListeners() throws IllegalStateException
IllegalStateException - if the context has been destroyed.public abstract void addContextMessageListener(ContextMessageListener l) throws CAException, IllegalStateException
l - the listener to addIllegalStateException - if the context has been destroyed.CAException - CA Exceptionpublic abstract void removeContextMessageListener(ContextMessageListener l) throws CAException, IllegalStateException
l - the listener to removeIllegalStateException - if the context has been destroyed.CAException - CA Exceptionpublic abstract ContextExceptionListener[] getContextExceptionListeners() throws IllegalStateException
IllegalStateException - if the context has been destroyed.public abstract void addContextExceptionListener(ContextExceptionListener l) throws CAException, IllegalStateException
l - the listener to addIllegalStateException - if the context has been destroyed.CAException - CA Exceptionpublic abstract void removeContextExceptionListener(ContextExceptionListener l) throws CAException, IllegalStateException
l - the listener to removeIllegalStateException - if the context has been destroyed.CAException - CA Exceptionpublic abstract void shutdown()
throws CAException,
IllegalStateException
IllegalStateException - if the context has been destroyed.CAException - CA Exceptionpublic abstract void destroy()
throws CAException,
IllegalStateException
IllegalStateException - if the context has been destroyed.CAException - CA Exceptionpublic void printInfo()
throws IllegalStateException
IllegalStateException - if the context has been destroyed.public void printInfo(PrintStream out) throws IllegalStateException
out - the output stream.IllegalStateException - if the context has been destroyed.public void dispose()
Copyright © 2004-2020 EPICS. All Rights Reserved.