public class KaaClientPropertiesState extends Object implements KaaClientState
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_PRIVATE_KEY_DEFAULT |
static String |
CLIENT_PRIVATE_KEY_FILE_LOCATION |
static String |
CLIENT_PUBLIC_KEY_DEFAULT |
static String |
CLIENT_PUBLIC_KEY_FILE_LOCATION |
static String |
STATE_FILE_DEFAULT |
static String |
STATE_FILE_LOCATION |
Constructor and Description |
---|
KaaClientPropertiesState(PersistentStorage storage,
Base64 base64,
KaaClientProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
addTopic(org.kaaproject.kaa.common.endpoint.gen.Topic topic) |
int |
getAndIncrementEventSeqNum() |
int |
getAppStateSeqNumber() |
Map<EndpointAccessToken,EndpointKeyHash> |
getAttachedEndpointsList() |
int |
getConfigSeqNumber() |
org.kaaproject.kaa.common.hash.EndpointObjectHash |
getConfigurationHash() |
String |
getEndpointAccessToken() |
EndpointKeyHash |
getEndpointKeyHash() |
int |
getEventSeqNum() |
Map<String,Integer> |
getNfSubscriptions() |
int |
getNotificationSeqNumber() |
PrivateKey |
getPrivateKey() |
org.kaaproject.kaa.common.hash.EndpointObjectHash |
getProfileHash() |
PublicKey |
getPublicKey() |
List<org.kaaproject.kaa.common.endpoint.gen.Topic> |
getTopics() |
boolean |
isAttachedToUser() |
boolean |
isConfigurationVersionUpdated() |
boolean |
isRegistered() |
void |
persist() |
void |
removeTopic(String topicId) |
void |
setAppStateSeqNumber(int appStateSeqNumber) |
void |
setAttachedEndpointsList(Map<EndpointAccessToken,EndpointKeyHash> attachedEndpoints) |
void |
setAttachedToUser(boolean isAttached) |
void |
setConfigSeqNumber(int configSeqNumber) |
void |
setConfigurationHash(org.kaaproject.kaa.common.hash.EndpointObjectHash hash) |
void |
setEndpointAccessToken(String token) |
void |
setEventSeqNum(int newSeqNum) |
void |
setNotificationSeqNumber(int notificationSeqNumber) |
void |
setProfileHash(org.kaaproject.kaa.common.hash.EndpointObjectHash hash) |
void |
setRegistered(boolean registered) |
boolean |
updateTopicSubscriptionInfo(String topicId,
Integer sequenceNumber) |
public static final String STATE_FILE_LOCATION
public static final String CLIENT_PRIVATE_KEY_FILE_LOCATION
public static final String CLIENT_PUBLIC_KEY_FILE_LOCATION
public static final String STATE_FILE_DEFAULT
public static final String CLIENT_PRIVATE_KEY_DEFAULT
public static final String CLIENT_PUBLIC_KEY_DEFAULT
public KaaClientPropertiesState(PersistentStorage storage, Base64 base64, KaaClientProperties properties)
public boolean isConfigurationVersionUpdated()
isConfigurationVersionUpdated
in interface KaaClientState
public boolean isRegistered()
isRegistered
in interface KaaClientState
public void setRegistered(boolean registered)
setRegistered
in interface KaaClientState
public void persist()
persist
in interface KaaClientState
public PrivateKey getPrivateKey()
getPrivateKey
in interface KaaClientState
public PublicKey getPublicKey()
getPublicKey
in interface KaaClientState
public EndpointKeyHash getEndpointKeyHash()
getEndpointKeyHash
in interface KaaClientState
public int getAppStateSeqNumber()
getAppStateSeqNumber
in interface KaaClientState
public org.kaaproject.kaa.common.hash.EndpointObjectHash getConfigurationHash()
getConfigurationHash
in interface KaaClientState
public org.kaaproject.kaa.common.hash.EndpointObjectHash getProfileHash()
getProfileHash
in interface KaaClientState
public void setAppStateSeqNumber(int appStateSeqNumber)
setAppStateSeqNumber
in interface KaaClientState
public void setConfigurationHash(org.kaaproject.kaa.common.hash.EndpointObjectHash hash)
setConfigurationHash
in interface KaaClientState
public void setProfileHash(org.kaaproject.kaa.common.hash.EndpointObjectHash hash)
setProfileHash
in interface KaaClientState
public void addTopic(org.kaaproject.kaa.common.endpoint.gen.Topic topic)
addTopic
in interface KaaClientState
public void removeTopic(String topicId)
removeTopic
in interface KaaClientState
public boolean updateTopicSubscriptionInfo(String topicId, Integer sequenceNumber)
updateTopicSubscriptionInfo
in interface KaaClientState
public Map<String,Integer> getNfSubscriptions()
getNfSubscriptions
in interface KaaClientState
public List<org.kaaproject.kaa.common.endpoint.gen.Topic> getTopics()
getTopics
in interface KaaClientState
public void setAttachedEndpointsList(Map<EndpointAccessToken,EndpointKeyHash> attachedEndpoints)
setAttachedEndpointsList
in interface KaaClientState
public Map<EndpointAccessToken,EndpointKeyHash> getAttachedEndpointsList()
getAttachedEndpointsList
in interface KaaClientState
public void setEndpointAccessToken(String token)
setEndpointAccessToken
in interface KaaClientState
public String getEndpointAccessToken()
getEndpointAccessToken
in interface KaaClientState
public void setConfigSeqNumber(int configSeqNumber)
setConfigSeqNumber
in interface KaaClientState
public int getConfigSeqNumber()
getConfigSeqNumber
in interface KaaClientState
public void setNotificationSeqNumber(int notificationSeqNumber)
setNotificationSeqNumber
in interface KaaClientState
public int getNotificationSeqNumber()
getNotificationSeqNumber
in interface KaaClientState
public int getAndIncrementEventSeqNum()
getAndIncrementEventSeqNum
in interface KaaClientState
public int getEventSeqNum()
getEventSeqNum
in interface KaaClientState
public void setEventSeqNum(int newSeqNum)
setEventSeqNum
in interface KaaClientState
public boolean isAttachedToUser()
isAttachedToUser
in interface KaaClientState
public void setAttachedToUser(boolean isAttached)
setAttachedToUser
in interface KaaClientState
Copyright © 2015. All rights reserved.