public class DefaultServerImpl extends Object implements gov.aps.jca.cas.Server
processVariableExistanceTest is called existance test is made on the hash-map.
processVariableAttach metod simply retrieves PV from the hash-map.| Constructor and Description |
|---|
DefaultServerImpl() |
| Modifier and Type | Method and Description |
|---|---|
MemoryProcessVariable |
createMemoryProcessVariable(String name,
gov.aps.jca.dbr.DBRType type,
Object initialValue)
Convenience method to create and register new in-memory process variables.
|
gov.aps.jca.cas.ProcessVariable |
processVariableAttach(String aliasName,
gov.aps.jca.cas.ProcessVariableEventCallback eventCallback,
gov.aps.jca.cas.ProcessVariableAttachCallback asyncCompletionCallback) |
gov.aps.jca.cas.ProcessVariableExistanceCompletion |
processVariableExistanceTest(String aliasName,
InetSocketAddress clientAddress,
gov.aps.jca.cas.ProcessVariableExistanceCallback asyncCompletionCallback) |
void |
registerProcessVaribale(gov.aps.jca.cas.ProcessVariable pv)
Register process variable.
|
void |
registerProcessVaribale(String aliasName,
gov.aps.jca.cas.ProcessVariable pv)
Register process variable.
|
gov.aps.jca.cas.ProcessVariable |
unregisterProcessVaribale(String aliasName)
Unregister process variable.
|
protected Map pvs
public MemoryProcessVariable createMemoryProcessVariable(String name, gov.aps.jca.dbr.DBRType type, Object initialValue)
name - process variable name.type - process variable native type.initialValue - process variable initial value (array expected).public void registerProcessVaribale(String aliasName, gov.aps.jca.cas.ProcessVariable pv)
aliasName is already registered this will override it.aliasName - process variable name.pv - process variable instance.public void registerProcessVaribale(gov.aps.jca.cas.ProcessVariable pv)
pv - process variable instance.public gov.aps.jca.cas.ProcessVariable unregisterProcessVaribale(String aliasName)
aliasName - process variable namenull if non unregistered.public gov.aps.jca.cas.ProcessVariable processVariableAttach(String aliasName, gov.aps.jca.cas.ProcessVariableEventCallback eventCallback, gov.aps.jca.cas.ProcessVariableAttachCallback asyncCompletionCallback) throws gov.aps.jca.CAStatusException, IllegalArgumentException, IllegalStateException
processVariableAttach in interface gov.aps.jca.cas.Servergov.aps.jca.CAStatusExceptionIllegalArgumentExceptionIllegalStateExceptionServer.processVariableAttach(java.lang.String, gov.aps.jca.cas.ProcessVariableEventCallback, gov.aps.jca.cas.ProcessVariableAttachCallback)public gov.aps.jca.cas.ProcessVariableExistanceCompletion processVariableExistanceTest(String aliasName, InetSocketAddress clientAddress, gov.aps.jca.cas.ProcessVariableExistanceCallback asyncCompletionCallback) throws gov.aps.jca.CAException, IllegalArgumentException, IllegalStateException
processVariableExistanceTest in interface gov.aps.jca.cas.Servergov.aps.jca.CAExceptionIllegalArgumentExceptionIllegalStateExceptionServer.processVariableExistanceTest(java.lang.String, java.net.InetSocketAddress, gov.aps.jca.cas.ProcessVariableExistanceCallback)Copyright © 2004-2013 Cosylab. All Rights Reserved.