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 org.lsst.ccs.utilities.logging.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.
|
boolean |
isReady(String clientName) |
boolean |
isTcpServerStarted() |
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.
|
checkCanOpenNodeConfiguration, checkCanOpenNodes, checkStarted, checkStopped, configAsHeartbeatConsumer, configAsHeartbeatProducer, configAsHeartbeatProducer, disconnectHardware, displayReadPDOs, getBootedNodesMap, getBootedNodesNB, getDetectedNodeForSerialNumber, getExpectedNodesNB, getHardwareBootTimeout, getMyClientName, getNodes, getPdoStorage, identifieHardware, initializeHardware, initModule, isBooted, isBooted, isHardwareIdentified, isHardwareReady, isNodeIdBootedAndOK, listHardware, listNodes, readPDOs, readSDO, readSDO, sendCanOpen, setExpectedNodesNB, setHardwareBootTimeout, setHardwareBootTimeout, tick, toString, writeSDO, writeSDOalias, change, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected volatile boolean stopped
protected volatile boolean stopping
protected volatile boolean tcpServerStarted
protected FcsTcpProxy.ClientContext clientContext
protected static final org.lsst.ccs.utilities.logging.Logger fcslog
protected final Lock lock
protected final Condition hardwareBooted
public void start()
public 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 boolean isTcpServerStarted()
@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 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 © 2014 LSST. All rights reserved.