|
||||||||||
| 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 java.util.Map |
pvs
Map of PVs. |
| Constructor Summary | |
|---|---|
DefaultServerImpl()
|
|
| Method Summary | |
|---|---|
MemoryProcessVariable |
createMemoryProcessVariable(java.lang.String name,
gov.aps.jca.dbr.DBRType type,
java.lang.Object initialValue)
Convenience method to create and register new in-memory process variables. |
gov.aps.jca.cas.ProcessVariable |
processVariableAttach(java.lang.String aliasName,
gov.aps.jca.cas.ProcessVariableEventCallback eventCallback,
gov.aps.jca.cas.ProcessVariableAttachCallback asyncCompletionCallback)
|
gov.aps.jca.cas.ProcessVariableExistanceCompletion |
processVariableExistanceTest(java.lang.String aliasName,
java.net.InetSocketAddress clientAddress,
gov.aps.jca.cas.ProcessVariableExistanceCallback asyncCompletionCallback)
|
void |
registerProcessVaribale(gov.aps.jca.cas.ProcessVariable pv)
Register process variable. |
void |
registerProcessVaribale(java.lang.String aliasName,
gov.aps.jca.cas.ProcessVariable pv)
Register process variable. |
gov.aps.jca.cas.ProcessVariable |
unregisterProcessVaribale(java.lang.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 java.util.Map pvs
| Constructor Detail |
|---|
public DefaultServerImpl()
| Method Detail |
|---|
public MemoryProcessVariable createMemoryProcessVariable(java.lang.String name,
gov.aps.jca.dbr.DBRType type,
java.lang.Object initialValue)
name - process variable name.type - process variable native type.initialValue - process variable initial value (array expected).
public void registerProcessVaribale(java.lang.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(java.lang.String aliasName)
aliasName - process variable name
null if non unregistered.
public gov.aps.jca.cas.ProcessVariable processVariableAttach(java.lang.String aliasName,
gov.aps.jca.cas.ProcessVariableEventCallback eventCallback,
gov.aps.jca.cas.ProcessVariableAttachCallback asyncCompletionCallback)
throws gov.aps.jca.CAStatusException,
java.lang.IllegalArgumentException,
java.lang.IllegalStateException
processVariableAttach in interface gov.aps.jca.cas.Servergov.aps.jca.CAStatusException
java.lang.IllegalArgumentException
java.lang.IllegalStateExceptionServer.processVariableAttach(java.lang.String, gov.aps.jca.cas.ProcessVariableEventCallback, gov.aps.jca.cas.ProcessVariableAttachCallback)
public gov.aps.jca.cas.ProcessVariableExistanceCompletion processVariableExistanceTest(java.lang.String aliasName,
java.net.InetSocketAddress clientAddress,
gov.aps.jca.cas.ProcessVariableExistanceCallback asyncCompletionCallback)
throws gov.aps.jca.CAException,
java.lang.IllegalArgumentException,
java.lang.IllegalStateException
processVariableExistanceTest in interface gov.aps.jca.cas.Servergov.aps.jca.CAException
java.lang.IllegalArgumentException
java.lang.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 | |||||||||