public class DefaultLogTransport extends AbstractKaaTransport implements LogTransport
clientState
Constructor and Description |
---|
DefaultLogTransport() |
Modifier and Type | Method and Description |
---|---|
org.kaaproject.kaa.common.endpoint.gen.LogSyncRequest |
createLogRequest()
Creates the Log request that consists of current log records.
|
protected org.kaaproject.kaa.common.TransportType |
getTransportType() |
void |
onLogResponse(org.kaaproject.kaa.common.endpoint.gen.LogSyncResponse response)
Updates the state of the Log collector according to the given response.
|
void |
setLogProcessor(LogProcessor processor)
Sets the given Log processor.
|
setChannelManager, setClientState, sync, syncAck, syncAck, syncAckByType, syncAll, syncByType, syncByType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setChannelManager, setClientState, sync
public void setLogProcessor(LogProcessor processor)
LogTransport
setLogProcessor
in interface LogTransport
processor
- the Log processor to be set.public org.kaaproject.kaa.common.endpoint.gen.LogSyncRequest createLogRequest()
LogTransport
createLogRequest
in interface LogTransport
LogSyncRequest
public void onLogResponse(org.kaaproject.kaa.common.endpoint.gen.LogSyncResponse response)
LogTransport
onLogResponse
in interface LogTransport
response
- the response from the server.LogSyncResponse
protected org.kaaproject.kaa.common.TransportType getTransportType()
getTransportType
in class AbstractKaaTransport
Copyright © 2014. All rights reserved.