|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Server
CA Server interface.
User has to implement this interface to create ServerContext.
ServerContext are created through the JCALibrary factory class.
JCALibrary| Method Summary | |
|---|---|
ProcessVariable |
processVariableAttach(java.lang.String aliasName,
ProcessVariableEventCallback eventCallback,
ProcessVariableAttachCallback asyncCompletionCallback)
This function is called every time that a client attaches to the PV. |
ProcessVariableExistanceCompletion |
processVariableExistanceTest(java.lang.String aliasName,
java.net.InetSocketAddress clientAddress,
ProcessVariableExistanceCallback asyncCompletionCallback)
This function is called by the server library when it needs to determine if a named process variable (PV) exists (or could be created) in the server tool. |
| Method Detail |
|---|
ProcessVariableExistanceCompletion processVariableExistanceTest(java.lang.String aliasName,
java.net.InetSocketAddress clientAddress,
ProcessVariableExistanceCallback asyncCompletionCallback)
throws CAException,
java.lang.IllegalArgumentException,
java.lang.IllegalStateException
ProcessVariableExistanceCompletion.DOES_NOT_EXIST_HERE if too many simultaneous
asynchronous operations are pending against the server.
The client library will retry the request at some time in the future.
- Parameters:
aliasName - the process variable alias name.clientAddress - the client which requested test.asyncCompletionCallback - if asynchronous completion is required method should return
ProcessVariableExistanceCompletion.ASYNC_COMPLETION and call
ProcessVariableExistanceCompletionCallback.processVariableExistanceTestCompleted() method.
- Returns:
- process variable existance status.
- Throws:
java.lang.IllegalArgumentException - is thrown if the process variable name is invalid.
java.lang.IllegalStateException - if the context has been destroyed.
CAException
ProcessVariable processVariableAttach(java.lang.String aliasName,
ProcessVariableEventCallback eventCallback,
ProcessVariableAttachCallback asyncCompletionCallback)
throws CAStatusException,
java.lang.IllegalArgumentException,
java.lang.IllegalStateException
aliasName - the process variable alias name.eventCallback - the process variable event callback (where PV reports value changes if interest is true).asyncCompletionCallback - if asynchronous completion is required method should return
null and call
ProcessVariableExistanceCompletionCallback.processVariableAttachCompleted() method.
- Returns:
- requested
ProcessVariable instance, null if operation is to be done asynchronously or
exception is thrown in case of an error (non-existant PV, etc.).
- Throws:
CAStatusException - is thrown if a Channel Access error occured while creating the channel.
java.lang.IllegalArgumentException - is thrown if the channel's name is null or empty.
java.lang.IllegalStateException - if the context has been destroyed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||