Package gov.aps.jca.cas
Class ProcessVariableExistanceCompletion
- java.lang.Object
-
- gov.aps.jca.cas.ProcessVariableExistanceCompletion
-
public final class ProcessVariableExistanceCompletion extends Object
Process variable existance completion class.- Author:
- Matej Sekoranja (matej.sekoranja@cosylab.com)
-
-
Field Summary
Fields Modifier and Type Field Description static ProcessVariableExistanceCompletionASYNC_COMPLETIONDeffered result (asynchronous operation),ProcessVariableExistanceCompletionCallback.processVariableExistanceTestCompleted()callback method method should be called to return completion.static ProcessVariableExistanceCompletionDOES_NOT_EXIST_HEREProcess variable does not exist.static ProcessVariableExistanceCompletionEXISTS_HEREProcess variable exists.
-
Constructor Summary
Constructors Modifier Constructor Description protectedProcessVariableExistanceCompletion(String name, InetSocketAddress addr)Creates a new PV existance completion.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoesExistElsewhere()static ProcessVariableExistanceCompletionEXISTS_ELSEWHERE(InetSocketAddress addr)Process variable exists at a different address, not this CA server.InetSocketAddressgetOtherAddress()StringtoString()
-
-
-
Field Detail
-
EXISTS_HERE
public static final ProcessVariableExistanceCompletion EXISTS_HERE
Process variable exists.
-
DOES_NOT_EXIST_HERE
public static final ProcessVariableExistanceCompletion DOES_NOT_EXIST_HERE
Process variable does not exist.
-
ASYNC_COMPLETION
public static final ProcessVariableExistanceCompletion ASYNC_COMPLETION
Deffered result (asynchronous operation),ProcessVariableExistanceCompletionCallback.processVariableExistanceTestCompleted()callback method method should be called to return completion.
-
-
Constructor Detail
-
ProcessVariableExistanceCompletion
protected ProcessVariableExistanceCompletion(String name, InetSocketAddress addr)
Creates a new PV existance completion. Contructor isprotectedto deny creation of unsupported types.- Parameters:
name- name of the completion.addr- Address if exists elsewhere, otherwise null
-
-
Method Detail
-
EXISTS_ELSEWHERE
public static ProcessVariableExistanceCompletion EXISTS_ELSEWHERE(InetSocketAddress addr)
Process variable exists at a different address, not this CA server.
-
doesExistElsewhere
public boolean doesExistElsewhere()
- Returns:
- Does the PV exist elsewhere?
-
getOtherAddress
public InetSocketAddress getOtherAddress()
- Returns:
- Other address where PV does exist or null
-
-