Package org.yamcs

Interface 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
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default Spec getSpec()
      Returns the valid configuration options for this service.
      default void init​(String yamcsInstance, YConfiguration config)
      Initialize this service.
      • Methods inherited from interface com.google.common.util.concurrent.Service

        addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
    • 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. If 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.