public abstract class AbstractKaaClient extends Object implements KaaClient
Abstract class that holds general elements of Kaa library.
This class creates and binds Kaa library modules. Public access to each
module is performed using KaaClient
interface.
Class contains abstract methods
createHttpClient(String, PrivateKey, PublicKey, PublicKey)
and createPersistentStorage()
which are used to
reference the platform-specific implementation of http client and Kaa's state
persistent storage.
Http client (AbstractHttpClient
) is used to provide basic
communication with Bootstrap and Operation servers using HTTP protocol.
KaaClient
,
AbstractHttpClient
,
PersistentStorage
Modifier and Type | Method and Description |
---|---|
protected abstract ConnectivityChecker |
createConnectivityChecker() |
abstract AbstractHttpClient |
createHttpClient(String url,
PrivateKey privateKey,
PublicKey publicKey,
PublicKey remotePublicKey) |
protected abstract PersistentStorage |
createPersistentStorage() |
protected abstract Base64 |
getBase64() |
KaaDataDemultiplexer |
getBootstrapDemultiplexer()
Retrieves data demultiplexer for communication with Bootstrap server.
|
KaaDataMultiplexer |
getBootstrapMultiplexer()
Retrieves data multiplexer for communication with Bootstrap server.
|
KaaChannelManager |
getChannelMananager()
Retrieves Kaa channel manager
|
PrivateKey |
getClientPrivateKey()
Retrieves the client's private key.
|
PublicKey |
getClientPublicKey()
Retrieves the client's public key.
|
ConfigurationManager |
getConfigurationManager()
Retrieves Kaa configuration manager.
|
ConfigurationPersistenceManager |
getConfigurationPersistenceManager()
Retrieves Kaa configuration persistence manager.
|
DeltaManager |
getDeltaManager()
Retrieves Kaa delta manager.
|
String |
getEndpointKeyHash()
Retrieves endpoint public key hash.
|
EndpointRegistrationManager |
getEndpointRegistrationManager()
Retrieves Kaa endpoint registration manager
|
EventFamilyFactory |
getEventFamilyFactory()
Retrieves Kaa event family factory.
|
EventListenersResolver |
getEventListenerResolver()
Retrieves Kaa event listeners resolver
|
LogCollector |
getLogCollector()
Retrieves Kaa log collector.
|
NotificationManager |
getNotificationManager()
Retrieves Kaa notification manager.
|
KaaDataDemultiplexer |
getOperationDemultiplexer()
Retrieves data demultiplexer for communication with Operation server.
|
KaaDataMultiplexer |
getOperationMultiplexer()
Retrieves data multiplexer for communication with Operation server.
|
ProfileManager |
getProfileManager()
Retrieves Kaa profile manager.
|
SchemaPersistenceManager |
getSchemaPersistenceManager()
Retrieves Kaa schema persistence manager.
|
public abstract AbstractHttpClient createHttpClient(String url, PrivateKey privateKey, PublicKey publicKey, PublicKey remotePublicKey)
protected abstract PersistentStorage createPersistentStorage()
protected abstract Base64 getBase64()
protected abstract ConnectivityChecker createConnectivityChecker()
public ProfileManager getProfileManager()
KaaClient
getProfileManager
in interface KaaClient
ProfileManager
object.public ConfigurationManager getConfigurationManager()
KaaClient
getConfigurationManager
in interface KaaClient
ConfigurationManager
object.public DeltaManager getDeltaManager()
KaaClient
getDeltaManager
in interface KaaClient
DeltaManager
object.public ConfigurationPersistenceManager getConfigurationPersistenceManager()
KaaClient
getConfigurationPersistenceManager
in interface KaaClient
ConfigurationPersistenceManager
object.public SchemaPersistenceManager getSchemaPersistenceManager()
KaaClient
getSchemaPersistenceManager
in interface KaaClient
SchemaPersistenceManager
object.public NotificationManager getNotificationManager()
KaaClient
getNotificationManager
in interface KaaClient
NotificationManager
object.public EndpointRegistrationManager getEndpointRegistrationManager()
KaaClient
getEndpointRegistrationManager
in interface KaaClient
EndpointRegistrationManager
objectpublic EventFamilyFactory getEventFamilyFactory()
KaaClient
getEventFamilyFactory
in interface KaaClient
EventFamilyFactory
object.public EventListenersResolver getEventListenerResolver()
KaaClient
getEventListenerResolver
in interface KaaClient
EventListenersResolver
objectpublic KaaChannelManager getChannelMananager()
KaaClient
getChannelMananager
in interface KaaClient
KaaChannelManager
objectpublic KaaDataMultiplexer getOperationMultiplexer()
KaaClient
Retrieves data multiplexer for communication with Operation server.
Required in user implementation of an operation data channel.
getOperationMultiplexer
in interface KaaClient
KaaDataMultiplexer
objectpublic KaaDataDemultiplexer getOperationDemultiplexer()
KaaClient
Retrieves data demultiplexer for communication with Operation server.
Required in user implementation of an operation data channel.
getOperationDemultiplexer
in interface KaaClient
KaaDataDemultiplexer
objectpublic KaaDataMultiplexer getBootstrapMultiplexer()
KaaClient
Retrieves data multiplexer for communication with Bootstrap server.
Required in user implementation of a bootstrap data channel.
getBootstrapMultiplexer
in interface KaaClient
KaaDataMultiplexer
objectpublic KaaDataDemultiplexer getBootstrapDemultiplexer()
KaaClient
Retrieves data demultiplexer for communication with Bootstrap server.
Required in user implementation of a bootstrap data channel.
getBootstrapDemultiplexer
in interface KaaClient
KaaDataDemultiplexer
objectpublic PublicKey getClientPublicKey()
KaaClient
Retrieves the client's public key.
Required in user implementation of an operation data channel. Public key hash (SHA-1) is used by servers as identification number to uniquely identify each connected endpoint.
getClientPublicKey
in interface KaaClient
public String getEndpointKeyHash()
KaaClient
Retrieves endpoint public key hash.
Required in EndpointRegistrationManager
implementation
to react on detach response from Operations server.
getEndpointKeyHash
in interface KaaClient
public PrivateKey getClientPrivateKey()
KaaClient
Retrieves the client's private key.
Required in user implementation of an operation data channel. Private key is used by encryption schema between endpoint and servers.
getClientPrivateKey
in interface KaaClient
public LogCollector getLogCollector()
KaaClient
Retrieves Kaa log collector.
getLogCollector
in interface KaaClient
Copyright © 2015. All rights reserved.