org.jlab.coda.afecs.plugin.dp
Class ADp
java.lang.Object
org.jlab.coda.afecs.plugin.dp.ADp
- All Implemented Interfaces:
- IAClientCommunication
public class ADp
- extends java.lang.Object
- implements IAClientCommunication
JSA: Thomas Jefferson National Accelerator Facility
This software was developed under a United States Government license,
described in the NOTICE file included as part of this distribution.
Copyright (c), Aug 17, 2009
Constructor Summary |
ADp()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADp
public ADp()
setWorkingFor
public void setWorkingFor(java.lang.String component)
- Specified by:
setWorkingFor
in interface IAClientCommunication
- Parameters:
component
- physical client/component name
sendCmd
public java.lang.String sendCmd(java.lang.String command)
throws AException
- Opens the socket connection to the component.
Sends the command to the component.
- Parameters:
command
- name
- Returns:
- reply string from the execution
- Throws:
AException
- object
init
public void init()
throws AException
- Using env variables connects to the SQL db.
- Specified by:
init
in interface IAClientCommunication
- Throws:
AException
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface IAClientCommunication
addChannel
public void addChannel(AChannel c)
- Specified by:
addChannel
in interface IAClientCommunication
removeChannel
public void removeChannel(java.lang.String channelName)
- Specified by:
removeChannel
in interface IAClientCommunication
setChannel
public boolean setChannel(AChannel channel)
throws AException
- Specified by:
setChannel
in interface IAClientCommunication
- Throws:
AException
readChannel
public AChannel readChannel(java.lang.String channelName)
throws AException
- Specified by:
readChannel
in interface IAClientCommunication
- Throws:
AException
getAllChannels
public java.util.ArrayList<AChannel> getAllChannels()
- Specified by:
getAllChannels
in interface IAClientCommunication
getChannelCount
public int getChannelCount()
- Specified by:
getChannelCount
in interface IAClientCommunication
monitorOn
public void monitorOn(java.lang.String channelName,
int period)
- Specified by:
monitorOn
in interface IAClientCommunication
monitorOff
public void monitorOff(java.lang.String channelName)
- Specified by:
monitorOff
in interface IAClientCommunication