|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.epics.caj.cas.util.DefaultServerImpl
public class DefaultServerImpl
Default server implementation.
Implementation keeps a hash-map of all registered PVs.
When processVariableExistanceTest is called existance test is made on the hash-map.
processVariableAttach metod simply retrieves PV from the hash-map.
| Field Summary | |
|---|---|
protected Map |
pvs
Map of PVs. |
| Constructor Summary | |
|---|---|
DefaultServerImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map pvs
| Constructor Detail |
|---|
public DefaultServerImpl()
| Method Detail |
|---|
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 name
null 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.CAStatusException
IllegalArgumentException
IllegalStateExceptionServer.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.CAException
IllegalArgumentException
IllegalStateExceptionServer.processVariableExistanceTest(java.lang.String, java.net.InetSocketAddress, gov.aps.jca.cas.ProcessVariableExistanceCallback)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||