public class ServerChannel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
cid
Channel CID.
|
protected boolean |
destroyed
Destroy state.
|
protected Map |
monitors
Monitors.
|
protected ProcessVariable |
processVariable
Process variable.
|
protected int |
sid
Channel SID.
|
| Constructor and Description |
|---|
ServerChannel(ProcessVariable processVariable,
int cid,
int sid,
String userName,
String hostName)
Create server channel for given process variable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destory server channel.
|
protected void |
destroyAllMonitors()
Destroy all registered monitors.
|
int |
getCID()
Get channel CID.
|
ServerMonitor |
getMonitor(int ioid)
Get monitor by its IOID.
|
ProcessVariable |
getProcessVariable()
Get process variable.
|
int |
getSID()
Get channel SID.
|
void |
printInfo()
Prints detailed information about the process variable to the standard
output stream.
|
void |
printInfo(PrintStream out)
Prints detailed information about the process variable to the specified
output stream.
|
CAStatus |
read(DBR value,
ProcessVariableReadCallback asyncReadCallback)
Read process variable value.
|
boolean |
readAccess()
Check if read access is granted.
|
void |
registerMonitor(ServerMonitor monitor)
Register monitor.
|
void |
unregisterMonitor(ServerMonitor monitor)
Unregister monitor.
|
CAStatus |
write(DBR value,
ProcessVariableWriteCallback asyncWriteCallback)
Write process variable value.
|
boolean |
writeAccess()
Check if write access is granted.
|
protected ProcessVariable processVariable
protected int sid
protected int cid
protected Map monitors
protected boolean destroyed
public ServerChannel(ProcessVariable processVariable, int cid, int sid, String userName, String hostName)
processVariable - process variable.cid - channel CID.sid - channel SID.userName - client user name.hostName - client host name.public ProcessVariable getProcessVariable()
public int getCID()
public int getSID()
public CAStatus read(DBR value, ProcessVariableReadCallback asyncReadCallback) throws CAException
ProcessVariable.read() method.CAExceptionProcessVariablepublic CAStatus write(DBR value, ProcessVariableWriteCallback asyncWriteCallback) throws CAException
ProcessVariable.write() method.CAExceptionProcessVariablepublic boolean readAccess()
true (default) if read access is granted,
false otherwise.public boolean writeAccess()
true (default) if write access is granted,
false otherwise.public void registerMonitor(ServerMonitor monitor)
monitor - monitor to be registered.public void unregisterMonitor(ServerMonitor monitor)
monitor - monitor to be unregistered.public ServerMonitor getMonitor(int ioid)
ioid - monitor IOIDnull if there is no monitor
with such IOID.protected void destroyAllMonitors()
public void destroy()
public void printInfo()
throws IllegalStateException
IllegalStateException - if the context has been destroyed.public void printInfo(PrintStream out) throws IllegalStateException
out - the output stream.IllegalStateException - if the context has been destroyed.Copyright © 2004-2020 EPICS. All Rights Reserved.