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