Package org.yamcs
Interface YamcsService
-
- All Superinterfaces:
com.google.common.util.concurrent.Service
- All Known Subinterfaces:
TmIndexService
- All Known Implementing Classes:
AbstractYamcsService,AlarmRecorder,CcsdsTmIndex,CfdpService,CfsEventDecoder,CommandHistoryRecorder,DataLinkInitialiser,EventRecorder,HttpServer,IndexServer,ParameterArchive,ParameterRecorder,ProcessorCreatorService,ProcessRunner,ReplayServer,ReplicationMaster,ReplicationServer,ReplicationSlave,SystemParametersCollector,XtceTmRecorder
public interface YamcsService extends com.google.common.util.concurrent.ServiceRequired interface of a Yamcs Service. A Yamcs Service is a Guava service with hooks in the Yamcs configuration system.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SpecgetSpec()Returns the valid configuration options for this service.default voidinit(String yamcsInstance, YConfiguration config)Initialize this service.
-
-
-
Method Detail
-
getSpec
default Spec getSpec()
Returns the valid configuration options for this service.- Returns:
- the argument specification, or null if the args should not be validated.
-
init
default void init(String yamcsInstance, YConfiguration config) throws InitException
Initialize this service. This is called before the service is started. All operations should finish fast.- Parameters:
yamcsInstance- The yamcs instance, or null if this is a global service.config- The configured arguments for this service. IfgetSpec()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.
-
-