public class DefaultBootstrapManager extends Object implements BootstrapManager
BootstrapManager
implementationConstructor and Description |
---|
DefaultBootstrapManager(BootstrapTransport transport) |
Modifier and Type | Method and Description |
---|---|
void |
onProtocolListUpdated(List<org.kaaproject.kaa.common.endpoint.gen.ProtocolMetaData> list)
Updates the operation server list.
|
void |
receiveOperationsServerList()
Receives the latest list of servers from the bootstrap server.
|
void |
setChannelManager(KaaInternalChannelManager manager)
Sets Channel manager.
|
void |
setTransport(BootstrapTransport transport)
Sets bootstrap transport object.
|
void |
useNextOperationsServer(TransportProtocolId transportId)
Force switch to the next operations server that support given
TransportProtocolId |
void |
useNextOperationsServerByAccessPointId(int accessPointId)
Update the Channel Manager with endpoint's properties retrieved by its DNS.
|
public DefaultBootstrapManager(BootstrapTransport transport)
public void receiveOperationsServerList() throws TransportException
BootstrapManager
receiveOperationsServerList
in interface BootstrapManager
TransportException
public void useNextOperationsServer(TransportProtocolId transportId)
BootstrapManager
TransportProtocolId
useNextOperationsServer
in interface BootstrapManager
transportId
- of the transport protocol.TransportProtocolId
public void setTransport(BootstrapTransport transport)
BootstrapManager
setTransport
in interface BootstrapManager
transport
- object to be set.BootstrapTransport
public void useNextOperationsServerByAccessPointId(int accessPointId)
BootstrapManager
useNextOperationsServerByAccessPointId
in interface BootstrapManager
public void setChannelManager(KaaInternalChannelManager manager)
BootstrapManager
setChannelManager
in interface BootstrapManager
manager
- the channel manager to be set.KaaChannelManager
public void onProtocolListUpdated(List<org.kaaproject.kaa.common.endpoint.gen.ProtocolMetaData> list)
BootstrapManager
onProtocolListUpdated
in interface BootstrapManager
list
- the operation server list.OperationsServerList
Copyright © 2015. All rights reserved.