org.lsst.ccs.config.remote
Class ConfigurationServerSystem

java.lang.Object
  extended by org.lsst.ccs.Subsystem
      extended by org.lsst.ccs.framework.BasicModularSubSystem
          extended by org.lsst.ccs.config.remote.ConfigurationServerSystem
All Implemented Interfaces:
org.lsst.ccs.bus.CommandExecutor, org.lsst.ccs.bus.CommandListener, org.lsst.ccs.bus.StatusListener, org.lsst.ccs.framework.ModuleRegistry

public class ConfigurationServerSystem
extends org.lsst.ccs.framework.BasicModularSubSystem

A subsystem that listens on the buses for request for boot data, or for other subsystems status notifications fired when they start with a configuration (or give up); it is also a full-fledged Configuration service that can receive and execute commands.

The system property "org.lsst.ccs.testcontext" tells the server if it is only in test context. In that case it will handle only boot requests that are in test context (property inTestContext: this can be used to create a "dummy" file based server that handles tests.

Author:
bamade

Nested Class Summary
 
Nested classes/interfaces inherited from class org.lsst.ccs.Subsystem
org.lsst.ccs.Subsystem.StatusBroadcaster
 
Field Summary
 
Fields inherited from class org.lsst.ccs.framework.BasicModularSubSystem
log
 
Fields inherited from class org.lsst.ccs.Subsystem
commandBusSelector, configurationProxy, currentSubsystem, fac, inTestContext, locks, logBusHandler, shuttingDown, state, stateExtraInfo, statusBroadcasterLock, statusBroadcasterThread, statusBusSelector
 
Constructor Summary
ConfigurationServerSystem(ConfigurationFacade facade)
           
 
Method Summary
static void main(String[] args)
           
 void onStatus(org.lsst.ccs.bus.BusMessage message)
           
 
Methods inherited from class org.lsst.ccs.framework.BasicModularSubSystem
addModule, addModules, aliasModule, checkHardware, doStart, getConfigurable, getModule, postStart, rawInitModule, registerConfigurable, registerModule, shutdown
 
Methods inherited from class org.lsst.ccs.Subsystem
addLock, broadcastAlarm, broadcastAlarm, broadcastAlarmClear, broadcastStatus, broadcastStatus, executeCommandSingleThread, fillStatus, getCommandBusSelector, getConfiguration, getConfigurationProxy, getCurrentSubsystemName, getDefaultSelector, getEthHardAddress, getLogger, getName, getSoftwareRevision, getStatus, getStatusBroadcastPeriod, getStatusBusSelector, getTag, initLogBusHandler, isListenToStatus, isMultithreaded, onAck, onCommand, onReply, publishData, publishData, publishData, publishData, publishData, publishData, publishData, publishMetaData, publishReply, publishTrendingStatus, registerAsBusMaster, removeLock, removeLogPanicState, setBusLogHandlerLevel, setCommandBusSelector, setConfigurationProxy, setListenToStatus, setLogLevel, setMultithreaded, setName, setStatusBroadcastPeriod, setStatusBusSelector, start, startStatusBroadcasting, stopStatusBroadcasting, updateCurrentSubsystem, updateState, updateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServerSystem

public ConfigurationServerSystem(ConfigurationFacade facade)
Method Detail

onStatus

public void onStatus(org.lsst.ccs.bus.BusMessage message)
Specified by:
onStatus in interface org.lsst.ccs.bus.StatusListener
Overrides:
onStatus in class org.lsst.ccs.Subsystem

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2013 LSST. All Rights Reserved.