public abstract class AstarteTransport extends java.lang.Object implements AstarteProtocol
Modifier and Type | Field and Description |
---|---|
protected AstarteTransportEventListener |
m_astarteTransportEventListener |
protected AstarteFailedMessageStorage |
m_failedMessageStorage |
protected boolean |
m_introspectionSent |
protected AstarteMessageListener |
m_messageListener |
protected AstartePropertyStorage |
m_propertyStorage |
Modifier | Constructor and Description |
---|---|
protected |
AstarteTransport(AstarteProtocolType type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resendAllProperties, sendAggregate, sendEmptyCache, sendIndividualValue, sendIntrospection
protected boolean m_introspectionSent
protected AstartePropertyStorage m_propertyStorage
protected AstarteFailedMessageStorage m_failedMessageStorage
protected AstarteMessageListener m_messageListener
protected AstarteTransportEventListener m_astarteTransportEventListener
protected AstarteTransport(AstarteProtocolType type)
public AstarteProtocolType getAstarteProtocolType()
getAstarteProtocolType
in interface AstarteProtocol
public AstarteDevice getDevice()
public void setDevice(AstarteDevice device)
public AstarteMessageListener getMessageListener()
public void setMessageListener(AstarteMessageListener messageListener)
public AstartePropertyStorage getPropertyStorage()
public void setPropertyStorage(AstartePropertyStorage m_propertyStorage)
public AstarteFailedMessageStorage getFailedMessageStorage()
public void setFailedMessageStorage(AstarteFailedMessageStorage failedMessageStorage)
public AstarteTransportEventListener getAstarteTransportEventListener()
public void setAstarteTransportEventListener(AstarteTransportEventListener m_astarteTransportEventListener)
public abstract void connect() throws AstarteTransportException, AstarteCryptoException
public abstract void disconnect() throws AstarteTransportException
AstarteTransportException
public abstract boolean isConnected()
public void sendIndividualValue(AstarteInterface astarteInterface, java.lang.String path, java.lang.Object value) throws AstarteTransportException
sendIndividualValue
in interface AstarteProtocol
AstarteTransportException
public void sendAggregate(AstarteAggregateDatastreamInterface astarteInterface, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> value) throws AstarteTransportException
sendAggregate
in interface AstarteProtocol
AstarteTransportException
protected void savePropertyToStorage(java.lang.String interfaceName, java.lang.String path, java.lang.Object value) throws AstartePropertyStorageException
AstartePropertyStorageException
protected void removePropertyFromStorage(java.lang.String interfaceName, java.lang.String path) throws AstartePropertyStorageException
AstartePropertyStorageException