public class DefaultBootstrapManager extends Object implements BootstrapManager
BootstrapManager
implementationConstructor 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
BootstrapManager
receiveOperationsServerList
in interface BootstrapManager
TransportException
public void useNextOperationsServer(org.kaaproject.kaa.common.bootstrap.gen.ChannelType type)
BootstrapManager
useNextOperationsServer
in interface BootstrapManager
type
- the channel's type (i.e. HTTP channel, HTTP long poll channel, etc.).ChannelType
public void setTransport(BootstrapTransport transport)
BootstrapManager
setTransport
in interface BootstrapManager
transport
- object to be set.BootstrapTransport
public List<org.kaaproject.kaa.common.bootstrap.gen.OperationsServer> getOperationsServerList()
BootstrapManager
getOperationsServerList
in interface BootstrapManager
public void useNextOperationsServerByDnsName(String name)
BootstrapManager
useNextOperationsServerByDnsName
in interface BootstrapManager
name
- endpoint's DNS.public void setChannelManager(KaaChannelManager manager)
BootstrapManager
setChannelManager
in interface BootstrapManager
manager
- the channel manager to be set.KaaChannelManager
public void onServerListUpdated(org.kaaproject.kaa.common.bootstrap.gen.OperationsServerList list)
BootstrapManager
onServerListUpdated
in interface BootstrapManager
list
- the operation server list.OperationsServerList
Copyright © 2014. All rights reserved.