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, waitresendAllProperties, sendAggregate, sendEmptyCache, sendIndividualValue, sendIntrospectionprotected 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 AstarteProtocolpublic 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
AstarteTransportExceptionpublic abstract boolean isConnected()
public void sendIndividualValue(AstarteInterface astarteInterface, java.lang.String path, java.lang.Object value) throws AstarteTransportException
sendIndividualValue in interface AstarteProtocolAstarteTransportExceptionpublic void sendAggregate(AstarteAggregateDatastreamInterface astarteInterface, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> value) throws AstarteTransportException
sendAggregate in interface AstarteProtocolAstarteTransportExceptionprotected void savePropertyToStorage(java.lang.String interfaceName,
java.lang.String path,
java.lang.Object value)
throws AstartePropertyStorageException
AstartePropertyStorageExceptionprotected void removePropertyFromStorage(java.lang.String interfaceName,
java.lang.String path)
throws AstartePropertyStorageException
AstartePropertyStorageException