public class YamcsClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
YamcsClient.ClientBuilder |
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_ADDRESS_PREFIX |
static String |
DATA_QUEUE_PREFIX |
org.apache.activemq.artemis.api.core.SimpleString |
dataAddress |
org.apache.activemq.artemis.api.core.client.ClientConsumer |
dataConsumer |
org.apache.activemq.artemis.api.core.SimpleString |
dataQueue |
static String |
RPC_ADDRESS_PREFIX |
static String |
RPC_QUEUE_PREFIX |
org.apache.activemq.artemis.api.core.SimpleString |
rpcAddress |
org.apache.activemq.artemis.api.core.client.ClientConsumer |
rpcConsumer |
org.apache.activemq.artemis.api.core.client.ClientProducer |
rpcProducer |
org.apache.activemq.artemis.api.core.SimpleString |
rpcQueue |
long |
rpcTimeout |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.protobuf.MessageLite |
executeRpc(org.apache.activemq.artemis.api.core.SimpleString toAddress,
String request,
com.google.protobuf.MessageLite body,
com.google.protobuf.MessageLite.Builder responseBuilder) |
org.apache.activemq.artemis.api.core.client.ClientProducer |
getDataProducer() |
YamcsSession |
getYamcsSession() |
com.google.protobuf.MessageLite |
receiveData(com.google.protobuf.MessageLite.Builder dataBuilder)
Receives and decodes data Returns null if the FINISH message is received
|
com.google.protobuf.MessageLite |
receiveImmediate(com.google.protobuf.MessageLite.Builder dataBuilder) |
void |
sendData(org.apache.activemq.artemis.api.core.SimpleString hornetAddress,
org.apache.activemq.artemis.api.core.client.ClientMessage msg)
Send message to the address using the data producer.
|
void |
sendData(org.apache.activemq.artemis.api.core.SimpleString toAddress,
org.yamcs.protobuf.Yamcs.ProtoDataType type,
com.google.protobuf.MessageLite data) |
void |
sendDataEnd(org.apache.activemq.artemis.api.core.SimpleString toAddress) |
void |
sendDataError(org.apache.activemq.artemis.api.core.SimpleString toAddress,
String message) |
void |
sendErrorReply(org.apache.activemq.artemis.api.core.SimpleString replyto,
String message) |
void |
sendErrorReply(org.apache.activemq.artemis.api.core.SimpleString replyto,
YamcsException e)
Sends a ActiveMQ message containing an YamcsException.
|
void |
sendEvent(org.apache.activemq.artemis.api.core.SimpleString toAddress,
String eventName,
com.google.protobuf.MessageLite data)
sends an event via the dataProducer
|
void |
sendReply(org.apache.activemq.artemis.api.core.SimpleString replyto,
String response,
com.google.protobuf.MessageLite body) |
void |
sendRequest(org.apache.activemq.artemis.api.core.SimpleString toAddress,
String request,
com.google.protobuf.MessageLite body) |
public static final String DATA_ADDRESS_PREFIX
public static final String DATA_QUEUE_PREFIX
public static final String RPC_ADDRESS_PREFIX
public static final String RPC_QUEUE_PREFIX
public org.apache.activemq.artemis.api.core.client.ClientConsumer dataConsumer
public org.apache.activemq.artemis.api.core.SimpleString dataQueue
public org.apache.activemq.artemis.api.core.SimpleString dataAddress
public org.apache.activemq.artemis.api.core.SimpleString rpcAddress
public org.apache.activemq.artemis.api.core.SimpleString rpcQueue
public org.apache.activemq.artemis.api.core.client.ClientConsumer rpcConsumer
public org.apache.activemq.artemis.api.core.client.ClientProducer rpcProducer
public long rpcTimeout
public void sendErrorReply(org.apache.activemq.artemis.api.core.SimpleString replyto,
String message)
throws ArtemisApiException
ArtemisApiExceptionpublic void sendErrorReply(org.apache.activemq.artemis.api.core.SimpleString replyto,
YamcsException e)
throws ArtemisApiException
replyto - e - ArtemisApiExceptionpublic void sendReply(org.apache.activemq.artemis.api.core.SimpleString replyto,
String response,
com.google.protobuf.MessageLite body)
throws ArtemisApiException
ArtemisApiExceptionpublic void sendRequest(org.apache.activemq.artemis.api.core.SimpleString toAddress,
String request,
com.google.protobuf.MessageLite body)
throws ArtemisApiException
ArtemisApiExceptionpublic com.google.protobuf.MessageLite executeRpc(org.apache.activemq.artemis.api.core.SimpleString toAddress,
String request,
com.google.protobuf.MessageLite body,
com.google.protobuf.MessageLite.Builder responseBuilder)
throws ArtemisApiException,
YamcsException
ArtemisApiExceptionYamcsExceptionpublic void close()
throws org.apache.activemq.artemis.api.core.ActiveMQException
org.apache.activemq.artemis.api.core.ActiveMQExceptionpublic void sendDataError(org.apache.activemq.artemis.api.core.SimpleString toAddress,
String message)
throws IOException,
ArtemisApiException
IOExceptionArtemisApiExceptionpublic void sendData(org.apache.activemq.artemis.api.core.SimpleString toAddress,
org.yamcs.protobuf.Yamcs.ProtoDataType type,
com.google.protobuf.MessageLite data)
throws ArtemisApiException
ArtemisApiExceptionpublic void sendDataEnd(org.apache.activemq.artemis.api.core.SimpleString toAddress)
throws ArtemisApiException
ArtemisApiExceptionpublic com.google.protobuf.MessageLite receiveData(com.google.protobuf.MessageLite.Builder dataBuilder)
throws YamcsException,
ArtemisApiException,
org.apache.activemq.artemis.api.core.ActiveMQException
YamcsExceptionArtemisApiExceptionorg.apache.activemq.artemis.api.core.ActiveMQExceptionpublic com.google.protobuf.MessageLite receiveImmediate(com.google.protobuf.MessageLite.Builder dataBuilder)
throws YamcsException,
ArtemisApiException
YamcsExceptionArtemisApiExceptionpublic void sendEvent(org.apache.activemq.artemis.api.core.SimpleString toAddress,
String eventName,
com.google.protobuf.MessageLite data)
throws org.apache.activemq.artemis.api.core.ActiveMQException
toAddress - eventName - name of the event to be encoded in the headerdata - org.apache.activemq.artemis.api.core.ActiveMQExceptionpublic YamcsSession getYamcsSession()
public void sendData(org.apache.activemq.artemis.api.core.SimpleString hornetAddress,
org.apache.activemq.artemis.api.core.client.ClientMessage msg)
throws ArtemisApiException
hornetAddress - msg - ArtemisApiExceptionpublic org.apache.activemq.artemis.api.core.client.ClientProducer getDataProducer()
Copyright © 2020 Space Applications Services. All rights reserved.