Class AbstractUDPProtocol<T extends AbstractNettyIOClientProtocol<T,U,W,X,V>,U extends IOAgent<U,T,V>,V extends org.openremote.model.asset.agent.AgentLink<?>,W,X extends UDPIOClient<W>>
java.lang.Object
org.openremote.agent.protocol.AbstractProtocol<U,X>
org.openremote.agent.protocol.io.AbstractIOClientProtocol<T,U,V,W,X>
org.openremote.agent.protocol.io.AbstractNettyIOClientProtocol<T,U,W,X,V>
org.openremote.agent.protocol.udp.AbstractUDPProtocol<T,U,V,W,X>
- All Implemented Interfaces:
org.openremote.model.asset.agent.Protocol<U>
- Direct Known Subclasses:
UDPProtocol
public abstract class AbstractUDPProtocol<T extends AbstractNettyIOClientProtocol<T,U,W,X,V>,U extends IOAgent<U,T,V>,V extends org.openremote.model.asset.agent.AgentLink<?>,W,X extends UDPIOClient<W>>
extends AbstractNettyIOClientProtocol<T,U,W,X,V>
This is an abstract UDP client protocol for communicating with UDP servers; concrete implementations must implement
AbstractNettyIOClientProtocol.getEncoderDecoderProvider() to provide encoders/decoders for messages of type <T>.-
Field Summary
Fields inherited from class org.openremote.agent.protocol.io.AbstractIOClientProtocol
client, LOGFields inherited from class org.openremote.agent.protocol.AbstractProtocol
agent, assetService, datapointService, dynamicAttributes, executorService, linkedAttributes, messageBrokerContext, predictedDatapointService, producerTemplate, timerServiceFields inherited from interface org.openremote.model.asset.agent.Protocol
ACTUATOR_TOPIC, ACTUATOR_TOPIC_TARGET_PROTOCOL, DYNAMIC_TIME_PLACEHOLDER_REGEXP, DYNAMIC_VALUE_PLACEHOLDER, DYNAMIC_VALUE_PLACEHOLDER_REGEXP, SENSOR_QUEUE, SENSOR_QUEUE_SOURCE_PROTOCOL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openremote.agent.protocol.io.AbstractNettyIOClientProtocol
createIoClient, getEncoderDecoderProviderMethods inherited from class org.openremote.agent.protocol.io.AbstractIOClientProtocol
createWriteMessage, doLinkedAttributeWrite, doStart, doStop, getGenericStringEncodersAndDecoders, getProtocolInstanceUri, onConnectionStatusChanged, onMessageReceivedMethods inherited from class org.openremote.agent.protocol.AbstractProtocol
doLinkAttribute, doUnlinkAttribute, getAgent, getLinkedAttributes, linkAttribute, processLinkedAttributeWrite, sendAttributeEvent, sendAttributeEvent, setConnectionStatus, start, stop, toString, unlinkAttribute, updateAgentAttribute, updateLinkedAttribute, updateLinkedAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openremote.model.asset.agent.Protocol
getProtocolName, prefixLogMessage
-
Constructor Details
-
AbstractUDPProtocol
-
-
Method Details
-
doCreateIoClient
Description copied from class:AbstractIOClientProtocolShould return an instance ofIOClientfor the linkedAgent.- Specified by:
doCreateIoClientin classAbstractIOClientProtocol<T extends AbstractNettyIOClientProtocol<T,U, W, X, V>, U extends IOAgent<U, T, V>, W, X extends UDPIOClient<W>, V extends org.openremote.model.asset.agent.AgentLink<?>> - Throws:
Exception
-