public class ArtemisTmDataLink extends com.google.common.util.concurrent.AbstractService implements TmPacketDataLink, org.apache.activemq.artemis.api.core.client.MessageHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
disabled |
protected org.slf4j.Logger |
log |
protected long |
packetcount |
| Constructor and Description |
|---|
ArtemisTmDataLink(String instance,
String name,
String artemisAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disable any data I/O through this link.
|
protected void |
doStart() |
protected void |
doStop() |
void |
enable()
Reenable the data transit if disabled by the disable() method.
|
long |
getDataCount() |
String |
getDetailedStatus() |
String |
getLinkStatus()
Returns one of "OK" or "UNAVAIL".
|
boolean |
isDisabled() |
void |
onMessage(org.apache.activemq.artemis.api.core.client.ClientMessage msg) |
void |
setTmSink(TmSink tmProcessor)
sets the tm processor that should get all the tm packets
|
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringprotected volatile long packetcount
protected volatile boolean disabled
protected org.slf4j.Logger log
public ArtemisTmDataLink(String instance, String name, String artemisAddress) throws ConfigurationException
ConfigurationExceptionpublic void setTmSink(TmSink tmProcessor)
TmPacketDataLinksetTmSink in interface TmPacketDataLinkpublic String getLinkStatus()
LinkgetLinkStatus in interface Linkpublic void disable()
Linkpublic void enable()
Linkpublic boolean isDisabled()
isDisabled in interface Linkpublic String getDetailedStatus()
getDetailedStatus in interface Linkpublic long getDataCount()
getDataCount in interface Linkpublic void onMessage(org.apache.activemq.artemis.api.core.client.ClientMessage msg)
onMessage in interface org.apache.activemq.artemis.api.core.client.MessageHandlerprotected void doStart()
doStart in class com.google.common.util.concurrent.AbstractServiceprotected void doStop()
doStop in class com.google.common.util.concurrent.AbstractServiceCopyright © 2017 Space Applications Services. All rights reserved.