
public class LoaderCanOpenProxy extends CanOpenProxy
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FcsTcpProxy.ClientContext |
CanOpenProxy.PDOStorage| Modifier and Type | Field and Description |
|---|---|
protected FcsTcpProxy.ClientContext |
clientContext |
protected static Logger |
fcslog |
protected Condition |
hardwareBooted |
protected Lock |
lock |
protected boolean |
stopped |
protected boolean |
stopping |
protected boolean |
tcpServerStarted |
bootedNodesMap, hardwareList| Constructor and Description |
|---|
LoaderCanOpenProxy(String aName,
int aTickMillis,
int portNumber,
String aClientName,
long hardwareBootTimeout) |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(String clientName,
String command)
This methods send a command to the tcp client.
|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
We want that the checkHardware method does nothing during INITIALISATION phase
for the loader tcpProxy because the loader might be not connected.
|
void |
connectHardware()
This methods connect the CWrapper client, and the TCP server and check the hardware.
|
int |
getPortNumber() |
boolean |
isReady(String clientName) |
boolean |
isTcpServerStarted() |
void |
publishHardwareData(PieceOfHardware device)
Publish Data on status bus for trending data base and GUIs.
|
void |
shutdownNow() |
void |
start()
We don't want the tcp server to be started during INITIALISATION phase.
|
void |
startServer()
Starts the server tcp on the port portNumber.
|
void |
startThreadReader()
Starts a thread which read on the tcp socket, waiting for messages coming
from tcp proxy.
|
void |
stopServer()
Stops the tcp server.
|
checkCanOpenNodes, checkHardwareID, checkNewHardware, checkStarted, checkStopped, configAsHeartbeatConsumer, configAsHeartbeatProducer, configAsHeartbeatProducer, disconnectHardware, displayReadPDOs, getBootedNodesMap, getBootedNodesNB, getDetectedNodeForSerialNumber, getExpectedNodesNB, getHardwareBootTimeout, getHardwareList, getMyClientName, getNodeName, getNodes, getPdoStorage, identifieHardware_old, identifyHardware, initModule, isBooted, isHardwareIdentified, isHardwareReady, listHardware, listNodes, publishData, readPDOs, readSDO, readSDO, sendCanOpen, setExpectedNodesNB, setHardwareBootTimeout, setHardwareBootTimeout, tick, toString, writeSDO, writeSDOalias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, treeWalkprotected volatile boolean stopped
protected volatile boolean stopping
protected volatile boolean tcpServerStarted
protected FcsTcpProxy.ClientContext clientContext
protected static final Logger fcslog
protected final Lock lock
protected final Condition hardwareBooted
public void start()
start in interface org.lsst.ccs.framework.Configurablepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
checkHardware in interface org.lsst.ccs.framework.HardwareControllercheckHardware in class CanOpenProxyorg.lsst.ccs.HardwareExceptionpublic void connectHardware()
throws org.lsst.ccs.HardwareException
connectHardware in class CanOpenProxyorg.lsst.ccs.HardwareExceptionpublic void publishHardwareData(PieceOfHardware device)
publishHardwareData in class CanOpenProxydevice - public boolean isTcpServerStarted()
public int getPortNumber()
@Command(type=ACTION, level=1, description="Starts the tcp server.") public void startServer()
@Command(type=ACTION, level=1, description="Starts to listen to the tcp client.") public void startThreadReader()
public void shutdownNow()
shutdownNow in interface org.lsst.ccs.framework.ConfigurableshutdownNow in class org.lsst.ccs.framework.Modulepublic void stopServer()
public boolean isReady(String clientName)
public Object call(String clientName, String command) throws CWrapperNotConnected, CanOpenCallTimeoutException
clientName - command - CWrapperNotConnectedCanOpenCallTimeoutExceptionCopyright © 2015 LSST. All rights reserved.