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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Disable any data I/O through this link.void
enable()
Reenable the data transit if disabled by the disable() method.long
long
Returns a short detail status (one-line)Returns the current link status.getName()
Return the name of the linkvoid
init
(String yamcsInstance, String linkName, YConfiguration config) Called at startup to initialize the link.boolean
return true if the link has been disabled by the user.void
void
setGenerationTime
(long genTime) void
setParameterSink
(ParameterSink ppListener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.tctm.Link
getDefaultSpec, getExtraInfo, getParent, getSpec, isEffectivelyDisabled, setParent, setupSystemParameters
Methods inherited from interface org.yamcs.tctm.ParameterDataLink
isParameterDataLinkImplemented
-
Constructor Details
-
ParameterProvider
public ParameterProvider()
-
-
Method Details
-
init
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.
-
getLinkStatus
Description copied from interface:Link
Returns the current link status.- Specified by:
getLinkStatus
in interfaceLink
-
getDetailedStatus
Description copied from interface:Link
Returns a short detail status (one-line)- Specified by:
getDetailedStatus
in interfaceLink
-
enable
public void enable()Description copied from interface:Link
Reenable the data transit if disabled by the disable() method. -
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 -
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 interfaceLink
-
getDataInCount
public long getDataInCount()- Specified by:
getDataInCount
in interfaceLink
-
getDataOutCount
public long getDataOutCount()- Specified by:
getDataOutCount
in interfaceLink
-
resetCounters
public void resetCounters()- Specified by:
resetCounters
in interfaceLink
-
setParameterSink
- Specified by:
setParameterSink
in interfaceParameterDataLink
-
setGenerationTime
public void setGenerationTime(long genTime) -
getConfig
-
getName
Description copied from interface:Link
Return the name of the link
-