Package org.yamcs
Class AbstractYamcsService
java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.AbstractYamcsService
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
,YamcsService
- Direct Known Subclasses:
AbstractFileTransferService
,AlarmRecorder
,CcsdsTmIndex
,CfsEventDecoder
,CommandHistoryRecorder
,EventRecorder
,HttpServer
,ParameterArchive
,ParameterListService
,ParameterRecorder
,ProcessorCreatorService
,ProcessRunner
,ReplayServer
,ReplicationMaster
,ReplicationServer
,ReplicationSlave
,SystemParametersService
,TimeCorrelationService
,TimelineService
,XtceTmRecorder
public abstract class AbstractYamcsService
extends com.google.common.util.concurrent.AbstractService
implements YamcsService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Field Summary
Modifier and TypeFieldDescriptionprotected YConfiguration
protected Log
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreturns the instance namevoid
init
(String yamcsInstance, String serviceName, YConfiguration config) Initialize this service.Methods inherited from class com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, doStart, doStop, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.common.util.concurrent.Service
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
Methods inherited from interface org.yamcs.YamcsService
getSpec
-
Field Details
-
yamcsInstance
-
serviceName
-
config
-
log
-
-
Constructor Details
-
AbstractYamcsService
public AbstractYamcsService()
-
-
Method Details
-
init
public void init(String yamcsInstance, String serviceName, YConfiguration config) throws InitException Description copied from interface:YamcsService
Initialize this service. This is called before the service is started. All operations should finish fast.- Specified by:
init
in interfaceYamcsService
- Parameters:
yamcsInstance
- The yamcs instance, ornull
if this is a global service.serviceName
- The service name.config
- The configured arguments for this service. IfYamcsService.getSpec()
is implemented then this contains the arguments after being validated (including any defaults).- Throws:
InitException
- When something goes wrong during the execution of this method.
-
getYamcsInstance
Description copied from interface:YamcsService
returns the instance name- Specified by:
getYamcsInstance
in interfaceYamcsService
- Returns:
-
getConfig
-