public class MqttWrapper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MqttWrapper.SecsFormat00PayloadDecoder
Decode a JSON SecsFormat00 input.
|
static class |
MqttWrapper.TriggerPayloadDecoder
Decode a (potentially) JSON trigger input.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
PUBLISH_ONLY_TAG_NAMES
The array of classes that need to be published but not subscribed.
|
static java.lang.String[] |
UPDATE_CLASSNAMES
The array of classes that need to be periodically updated.
|
Constructor and Description |
---|
MqttWrapper()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canReload()
This server responds false to indicate that the OPC Server cannot be reloaded without a MIX restart.
|
java.lang.String |
containsCaseInsensitive(java.lang.String portName,
java.util.List<java.lang.String> ports)
Check to see if the list contains the string regardless of case.
|
void |
destroy()
Destroy the server.
|
MqttDeviceServer |
getMqttDeviceServer()
Return the device server.
|
static MqttWrapper |
getWrapper()
Return the wrapper creating as necessary.
|
static MqttWrapper |
getWrapper(PersistenceInterface persistence)
Return the wrapper creating as necessary.
|
void |
init()
Create the server.
|
void |
populateServer()
Add all existing tags to the wrapper.
|
void |
populateServer(java.lang.Object dataSourceContainer)
Recursively add all existing tags in the given container to the wrapper.
|
void |
populateServer(java.lang.Object dataSourceContainer,
java.lang.String pathToServer)
Iterate through the instance in the container and sub-containers and fill the OPC Server.
|
void |
start()
After creating the server, tags should be added to the server.
|
void |
stop()
Stop the server.
|
public static final java.lang.String[] PUBLISH_ONLY_TAG_NAMES
public static final java.lang.String[] UPDATE_CLASSNAMES
public boolean canReload()
public java.lang.String containsCaseInsensitive(java.lang.String portName, java.util.List<java.lang.String> ports)
portName
- the string to checkports
- the list of port namespublic void destroy() throws BadParameterException
BadParameterException
public MqttDeviceServer getMqttDeviceServer()
public static MqttWrapper getWrapper()
public static MqttWrapper getWrapper(PersistenceInterface persistence)
public void init() throws BadParameterException
BadParameterException
- thrown if the server cannot be createdpublic void populateServer()
public void populateServer(java.lang.Object dataSourceContainer)
public void populateServer(java.lang.Object dataSourceContainer, java.lang.String pathToServer)
public void start() throws BadParameterException, VIBUpdateFailedException
public void stop() throws BadParameterException
BadParameterException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.