Class AbstractIntegrationTest.ParameterProvider

java.lang.Object
org.yamcs.tests.AbstractIntegrationTest.ParameterProvider
All Implemented Interfaces:
Link, ParameterDataLink
Enclosing class:
AbstractIntegrationTest

public static class AbstractIntegrationTest.ParameterProvider extends Object implements ParameterDataLink
  • Constructor Details

    • ParameterProvider

      public ParameterProvider()
  • Method Details

    • init

      public void init(String yamcsInstance, String linkName, YConfiguration config)
      Description copied from interface: Link
      Called at startup to initialize the link.

      The config corresponds to the map that is under the link definition in yamcs.instance.yaml.

      Specified by:
      init in interface Link
      config - - the configuration - cannot be null (but can be empty)
    • getLinkStatus

      public Link.Status getLinkStatus()
      Description copied from interface: Link
      Returns the current link status.
      Specified by:
      getLinkStatus in interface Link
    • getDetailedStatus

      public String getDetailedStatus()
      Description copied from interface: Link
      Returns a short detail status (one-line)
      Specified by:
      getDetailedStatus in interface Link
    • enable

      public void enable()
      Description copied from interface: Link
      Reenable the data transit if disabled by the disable() method.
      Specified by:
      enable in interface Link
    • disable

      public void disable()
      Description copied from interface: Link
      Disable any data I/O through this link. Any connection to a server is closed. Can be reenabled using the enable method. Note that this method can be called before starting the service if it's configured as such in the configuration file
      Specified by:
      disable in interface Link
    • isDisabled

      public boolean isDisabled()
      Description copied from interface: Link
      return true if the link has been disabled by the user.

      See also Link.isEffectivelyDisabled()

      Specified by:
      isDisabled in interface Link
    • getDataInCount

      public long getDataInCount()
      Specified by:
      getDataInCount in interface Link
    • getDataOutCount

      public long getDataOutCount()
      Specified by:
      getDataOutCount in interface Link
    • resetCounters

      public void resetCounters()
      Specified by:
      resetCounters in interface Link
    • setParameterSink

      public void setParameterSink(ParameterSink ppListener)
      Specified by:
      setParameterSink in interface ParameterDataLink
    • setGenerationTime

      public void setGenerationTime(long genTime)
    • getConfig

      public YConfiguration getConfig()
      Specified by:
      getConfig in interface Link
      Returns:
      the config (args) used when creating the link
    • getName

      public String getName()
      Description copied from interface: Link
      Return the name of the link
      Specified by:
      getName in interface Link