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

    Fields
    Modifier and Type
    Field
    Description
    protected YConfiguration
     
    protected Log
     
    protected String
     
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    returns the instance name
    void
    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

      protected String yamcsInstance
    • serviceName

      protected String serviceName
    • config

      protected YConfiguration config
    • log

      protected Log 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 interface YamcsService
      Parameters:
      yamcsInstance - The yamcs instance, or null if this is a global service.
      serviceName - The service name.
      config - The configured arguments for this service. If YamcsService.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

      public String getYamcsInstance()
      Description copied from interface: YamcsService
      returns the instance name
      Specified by:
      getYamcsInstance in interface YamcsService
      Returns:
    • getConfig

      public YConfiguration getConfig()