@NotThreadSafe public final class XMLPointValuesPortClient extends StreamedMessagesPortClient
Modifier and Type | Field and Description |
---|---|
static String |
DELETED_STATE
Deleted state.
|
CLIENT_ATTRIBUTE, DONE_ELEMENT, EXCEPTION_ATTRIBUTE, FAILED_ELEMENT, FLUSH_ATTRIBUTE, FLUSH_ELEMENT, ID_ATTRIBUTE, LOGIN_ELEMENT, MESSAGES_ELEMENT, PASSWORD_ATTRIBUTE, REF_ATTRIBUTE, USER_ATTRIBUTE
Constructor and Description |
---|
XMLPointValuesPortClient(String client)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection.
|
void |
open(String addressString,
Optional<SecurityContext> securityContext)
Opens a connection to the XML Port.
|
void |
sendValue(PointValue pointValue)
Sends a point value.
|
void |
sendValue(String point,
String stamp,
Optional<String> state,
Optional<String> value)
Sends a point value.
|
boolean |
setUp(Optional<KeyedGroups> configProperties,
Optional<KeyedValues> moduleProperties)
Sets up this.
|
void |
tearDown()
Tears down what has been set up.
|
addMessage, flush, isOpen, login, login, sendMessages
public static final String DELETED_STATE
public XMLPointValuesPortClient(@Nonnull String client)
client
- The client identification.public void close()
close
in class StreamedMessagesPortClient
public void open(String addressString, Optional<SecurityContext> securityContext) throws ServiceNotAvailableException
open
in class StreamedMessagesPortClient
addressString
- The address for the port (host:port).securityContext
- An optional security context.ServiceNotAvailableException
- When the service is not available.public void sendValue(@Nonnull PointValue pointValue) throws IOException
pointValue
- The point value.IOException
- When appropriate.public void sendValue(@Nonnull String point, @Nonnull String stamp, @Nonnull Optional<String> state, @Nonnull Optional<String> value) throws IOException
point
- The point name.stamp
- The time stamp.state
- The optional value state.value
- The optional value.IOException
- When appropriate.@CheckReturnValue public boolean setUp(@Nonnull Optional<KeyedGroups> configProperties, @Nonnull Optional<KeyedValues> moduleProperties)
configProperties
- The optional configuration properties.moduleProperties
- The optional module properties.public void tearDown()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.