Package org.yamcs.tests
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.yamcs.tctm.Link
Link.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disable any data I/O through this link.voidenable()Reenable the data transit if disabled by the disable() method.longlongReturns a short detail status (one-line)Returns the current link status.getName()Return the name of the linkvoidinit(String yamcsInstance, String linkName, YConfiguration config) Called at startup to initialize the link.voidinject(long generationTime, List<ParameterValue> pvList) booleanreturn true if the link has been disabled by the user.voidvoidsetGenerationTime(long genTime) voidsetParameterSink(ParameterSink ppListener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.tctm.Link
getDefaultSpec, getExtraInfo, getParent, getSpec, isEffectivelyDisabled, setParent, setupSystemParametersMethods inherited from interface org.yamcs.tctm.ParameterDataLink
isParameterDataLinkImplemented
-
Constructor Details
-
ParameterProvider
public ParameterProvider()
-
-
Method Details
-
init
Description copied from interface:LinkCalled at startup to initialize the link.The config corresponds to the map that is under the link definition in yamcs.instance.yaml.
-
getLinkStatus
Description copied from interface:LinkReturns the current link status.- Specified by:
getLinkStatusin interfaceLink
-
getDetailedStatus
Description copied from interface:LinkReturns a short detail status (one-line)- Specified by:
getDetailedStatusin interfaceLink
-
enable
public void enable()Description copied from interface:LinkReenable the data transit if disabled by the disable() method. -
disable
public void disable()Description copied from interface:LinkDisable 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 -
isDisabled
public boolean isDisabled()Description copied from interface:Linkreturn true if the link has been disabled by the user.See also
Link.isEffectivelyDisabled()- Specified by:
isDisabledin interfaceLink
-
getDataInCount
public long getDataInCount()- Specified by:
getDataInCountin interfaceLink
-
getDataOutCount
public long getDataOutCount()- Specified by:
getDataOutCountin interfaceLink
-
resetCounters
public void resetCounters()- Specified by:
resetCountersin interfaceLink
-
setParameterSink
- Specified by:
setParameterSinkin interfaceParameterDataLink
-
setGenerationTime
public void setGenerationTime(long genTime) -
getConfig
-
getName
Description copied from interface:LinkReturn the name of the link -
inject
-