public class ArtemisParameterDataLink extends com.google.common.util.concurrent.AbstractService implements ParameterDataLink, org.apache.activemq.artemis.api.core.client.MessageHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
disabled |
protected org.slf4j.Logger |
log |
protected long |
totalPpCount |
| Constructor and Description |
|---|
ArtemisParameterDataLink(String instance,
String name,
String hornetAddress) |
| 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 |
setParameterSink(ParameterSink ppListener) |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringprotected volatile long totalPpCount
protected volatile boolean disabled
protected org.slf4j.Logger log
public ArtemisParameterDataLink(String instance, String name, String hornetAddress) throws ConfigurationException
ConfigurationExceptionpublic void setParameterSink(ParameterSink ppListener)
setParameterSink in interface ParameterDataLinkpublic 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.