public final class IotIgniteManager extends ServiceInstance implements IIotIgniteManager, ServiceConnectionListener
Node's&Thing's to ArCloud. To getInstance use
IotIgniteManager.Builder.
IotIgniteManager instance = new IotIgniteManager.Builder
.setContext(myContext)
.setAppKey(myAppkey)
.setOnConnectionListener(myConnectionCallback).build()
| Modifier and Type | Class and Description |
|---|---|
class |
IotIgniteManager.AppLogTask |
static class |
IotIgniteManager.Builder
Builder class for getting instance of
IotIgniteManager. |
static class |
IotIgniteManager.NodeFactory
|
| Modifier and Type | Field and Description |
|---|---|
protected IAppListener.Stub |
remoteAppListener |
protected INodeListener.Stub |
remoteNodeListener |
agentService| Modifier and Type | Method and Description |
|---|---|
java.util.List<Node> |
getAllNodes()
Get all registered
Node's to context. |
static android.content.Context |
getAppContext()
Application
Context which app used by. |
java.lang.String |
getDeviceID()
Get device id.
|
int |
getIoTIgniteSDKVersion()
Get IoTIgnite SDK version.
|
java.util.List<Node> |
getMyNodes()
Get application's all registered
Node's to context. |
Node |
getNodeByID(java.lang.String nodeID) |
java.util.List<Node> |
getNodeByName(java.lang.String nodeName) |
static java.util.List<Node> |
getNodeList()
Returns local
Node list. |
static boolean |
isAuthenticated()
Returns authentication status of IotIgnite API.
|
protected boolean |
isNodeRegistered(Node node) |
protected boolean |
isNodeRegistered(java.lang.String nodeID) |
static boolean |
isRemoteServiceVersionSupported()
Returns Remote Service support status of IotIgnite Agent.
|
static boolean |
isSDKVersionSupported()
Returns SDK support status of IotIgnite API.
|
void |
onConnected()
Triggers application when IoTIgnite successfully authenticated and ready to use.
|
void |
onDestroy() |
void |
onDisconnected()
Trigger's application when Ignite connection has lost.
|
protected void |
registerAppListenerCb() |
protected boolean |
registerNode(Node node) |
protected boolean |
unregisterNode(Node node) |
protected INodeListener.Stub remoteNodeListener
protected IAppListener.Stub remoteAppListener
public static boolean isAuthenticated()
public static boolean isSDKVersionSupported()
public static boolean isRemoteServiceVersionSupported()
public static android.content.Context getAppContext()
Context which app used by. If you are using this for your apps
Context use Android's getApplicationContext(); instead.Context : Application Context.public static java.util.List<Node> getNodeList() throws AuthenticationException
Node list.Node list.AuthenticationExceptionprotected boolean registerNode(Node node) throws AuthenticationException
AuthenticationExceptionprotected boolean unregisterNode(Node node) throws AuthenticationException
AuthenticationExceptionpublic Node getNodeByID(java.lang.String nodeID) throws AuthenticationException
getNodeByID in interface IIotIgniteManagernodeID - : Unique id of Node.Node : Node object of specified ID.AuthenticationExceptionThing,
IotIgniteManagerpublic java.util.List<Node> getNodeByName(java.lang.String nodeName) throws AuthenticationException
getNodeByName in interface IIotIgniteManagerNode. Node name is not unique. User can have zero to many
Nodes with same name.AuthenticationExceptionThing,
IotIgniteManagerpublic java.util.List<Node> getAllNodes() throws AuthenticationException
IIotIgniteManagergetAllNodes in interface IIotIgniteManagerNode list.AuthenticationExceptionpublic java.util.List<Node> getMyNodes() throws AuthenticationException
IIotIgniteManagerNode's to context. List of Node objects. Returns empty list if there is
none.getMyNodes in interface IIotIgniteManagerNode list.AuthenticationExceptionpublic java.lang.String getDeviceID()
throws AuthenticationException
IIotIgniteManagergetDeviceID in interface IIotIgniteManagerAuthenticationExceptionpublic int getIoTIgniteSDKVersion()
IIotIgniteManagergetIoTIgniteSDKVersion in interface IIotIgniteManagerIoTIgniteBuild.VERSION_CODES#API_LEVEL_1protected void registerAppListenerCb()
protected boolean isNodeRegistered(Node node) throws AuthenticationException
AuthenticationExceptionprotected boolean isNodeRegistered(java.lang.String nodeID)
throws AuthenticationException
AuthenticationExceptionpublic void onConnected()
throws UnsupportedVersionException
onConnected in interface ServiceConnectionListenerUnsupportedVersionExceptionpublic void onDisconnected()
onDisconnected in interface ServiceConnectionListenerpublic void onDestroy()