public class DefaultBootstrapManager extends Object implements BootstrapManager
BootstrapManager implementation| Constructor and Description |
|---|
DefaultBootstrapManager(BootstrapTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
List<org.kaaproject.kaa.common.bootstrap.gen.OperationsServer> |
getOperationsServerList()
Retrieves current list of servers.
|
void |
onServerListUpdated(org.kaaproject.kaa.common.bootstrap.gen.OperationsServerList list)
Updates the operation server list.
|
void |
receiveOperationsServerList()
Receives the latest list of servers from the bootstrap server.
|
void |
setChannelManager(KaaChannelManager manager)
Sets Channel manager.
|
void |
setTransport(BootstrapTransport transport)
Sets bootstrap transport object.
|
void |
useNextOperationsServer(org.kaaproject.kaa.common.bootstrap.gen.ChannelType type)
Notifies Channel manager about new server meets given parameters.
|
void |
useNextOperationsServerByDnsName(String name)
Update the Channel Manager with endpoint's properties retrieved by its DNS.
|
public DefaultBootstrapManager(BootstrapTransport transport)
public void receiveOperationsServerList()
throws TransportException
BootstrapManagerreceiveOperationsServerList in interface BootstrapManagerTransportExceptionpublic void useNextOperationsServer(org.kaaproject.kaa.common.bootstrap.gen.ChannelType type)
BootstrapManageruseNextOperationsServer in interface BootstrapManagertype - the channel's type (i.e. HTTP channel, HTTP long poll channel, etc.).ChannelTypepublic void setTransport(BootstrapTransport transport)
BootstrapManagersetTransport in interface BootstrapManagertransport - object to be set.BootstrapTransportpublic List<org.kaaproject.kaa.common.bootstrap.gen.OperationsServer> getOperationsServerList()
BootstrapManagergetOperationsServerList in interface BootstrapManagerpublic void useNextOperationsServerByDnsName(String name)
BootstrapManageruseNextOperationsServerByDnsName in interface BootstrapManagername - endpoint's DNS.public void setChannelManager(KaaChannelManager manager)
BootstrapManagersetChannelManager in interface BootstrapManagermanager - the channel manager to be set.KaaChannelManagerpublic void onServerListUpdated(org.kaaproject.kaa.common.bootstrap.gen.OperationsServerList list)
BootstrapManageronServerListUpdated in interface BootstrapManagerlist - the operation server list.OperationsServerListCopyright © 2014. All rights reserved.