public interface CallbacksInterface
CallbackMultiplexer
to notify its subscribers.| Modifier and Type | Method and Description |
|---|---|
void |
advertiseResourceCallback(Resource resource)
A function that needs to be implemented by the subscriber to listen
to resource advertisement sent by
Device. |
void |
commandStatusCallback(CommandResponse<?> response)
A function that needs to implemented by the subscriber to
response for sent
Command's. |
void |
connectStatusCallback(Network network)
A function that needs to be implemented by subscribers to
get info regrading connection status of the
Network. |
void |
contentInfoCallback(Network network,
long sourceNodeId,
long contentTime,
java.lang.String data)
A callback for receiver nodes that triggers upon receiving the data sent using
Network.sendContentInfo(long, String, long[]). |
void |
deviceInfoCallback(Device device)
A function that needs to be implemented by subscriber to
listen updates regarding
Device. |
void |
deviceManagementStatusCallback(Device device,
CommandResponse<?> commandResponse,
Resource[] resourcesImpacted)
A function that needs to be implemented by subscriber to listen
to responses of
Device.sendDeviceManagementCommand(Command, Device.DeviceManagementStatusListener). |
void |
errorCallback(java.lang.Throwable tr)
A callback indicating an internal error.
|
void |
infoRequestCallback(InfoRequest infoRequest)
A function that needs to be implemented by subscriber to listen
to
InfoRequest sent by Device. |
void |
infoRequestStatusCallback(Command.State state,
InfoRequest infoRequest)
A function that needs to be implemented by subscriber to listen
to state of sent
InfoRequest. |
void |
infoResponseCallback(InfoRequest request,
InfoResponse infoResponse)
A function that needs to be implemented by subscriber to listen
to
InfoResponse sent by Device in repose to InfoRequest. |
void |
infoResponseStatusCallback(Command.State state,
InfoResponse infoResponse)
A function that needs to be implemented by subscriber to listen
to status of
InfoResponse. |
void |
leaveNetworkStatusCallback(Network network,
Command.State status)
Command.State.SUCCESS and Command.State.FAILURE are only possible. |
void |
messageCallback(java.lang.String title,
java.lang.String message,
MessageType messageType)
A function that needs to be implemented by subscriber to listen
to messages that are passed back usually during resource addition.
|
void |
networkDataCallback(Network network)
A function that needs to be implemented by subscriber to listen to
updates of network.
|
void |
networkListCallback(java.util.ArrayList<Network> networksList)
A function that needs to be implemented by subscriber to listen
update regarding
Network. |
void |
networkManagementCommandCallback(Network network,
CommandResponse<?> command)
A function that needs to be implemented by subscriber to listen to
responses of
Network.sendNetworkManagementCommand(Command, Network.NetworkManagementStatusListener). |
void |
networkMetadataCallback(Network network)
A callback that delivers metadata updates for a network.
|
void |
nodeConnectionStatusCallback(Network network,
long nodeId,
NodeType nodeType,
boolean isOnline)
A function that needs to be implemented by the subscriber to listen updates
regarding node connection status.
|
void |
receiveDataCallback(Network network,
long sourceNodeId,
java.lang.String data)
A callback for receiver nodes that triggers upon receiving the message sent in a network using
Network.sendData(String, long[]). |
void |
resourceAttributeCallback(Attribute attribute)
A function that needs to be implemented by the subscriber to
listen updates regarding updates in
Attribute's data. |
void |
resourceCallback(Resource resource)
A function that needs to be implemented by subscriber to
listen updates regarding
Resource's info. |
void |
resourceCapabilityCallback(Capability capability)
A function that needs to be implemented by subscriber to
listen updates regarding
Resource's capabilities. |
void |
resourceExcludedCallback(Resource resource)
A function that needs to implemented by subscriber to listen
to update regarding
Resource's exclusion. |
void |
resourceIncludedCallback(java.util.ArrayList<Resource> resources)
A function that needs to implemented by subscriber to listen
to update regarding
Resource's inclusion. |
void |
ruleDeletedCallback(Network network,
int ruleId)
A function that needs to be implemented by the subscriber to listen updates
regarding
Rule's. |
void |
ruleInfoCallback(Rule rule)
A function that needs to be implemented by the subscriber to listen updates
regarding
Rule's. |
void |
sceneDeletedCallback(Network network,
int sceneId)
A function that needs to be implemented by the subscriber to listen updates
regarding
Scene's. |
void |
sceneInfoCallback(Scene scene)
A function that needs to be implemented by the subscriber to listen updates
regarding
Scene's. |
void |
tunnelStatusCallback(Capability tunnel,
long tunnelHandle,
CapabilityTunnel.State state,
int port)
A function that needs to implemented by subscriber to listen
to updates regarding
CapabilityTunnel.State. |
void |
zoneDeletedCallback(Network network,
int zoneId)
A function that needs to be implemented by the subscriber to listen updates
regarding
Zone deletions. |
void |
zoneInfoCallback(Zone zone)
A function that needs to be implemented by the subscriber to listen updates
regarding
Zone's. |
void connectStatusCallback(Network network)
Network.network - Network whose connect status is updated.void deviceInfoCallback(Device device)
Device.device - Device whose info is updated.void resourceCallback(Resource resource)
Resource's info.resource - Resource whose info is updated.void resourceCapabilityCallback(Capability capability)
Resource's capabilities.capability - Capabilityvoid resourceAttributeCallback(Attribute attribute)
Attribute's data.attribute - Attribute whose info is updated.void commandStatusCallback(CommandResponse<?> response)
Command's.response - response sent by the Device.void networkListCallback(java.util.ArrayList<Network> networksList)
Network.networksList - List of networks present.void deviceManagementStatusCallback(Device device, CommandResponse<?> commandResponse, Resource[] resourcesImpacted)
Device.sendDeviceManagementCommand(Command, Device.DeviceManagementStatusListener).void infoRequestCallback(InfoRequest infoRequest)
InfoRequest sent by Device.infoRequest - InfoRequest that is sent by Device.void infoResponseStatusCallback(Command.State state, InfoResponse infoResponse)
InfoResponse.state - state sent by Device.infoResponse - InfoResponse.void messageCallback(java.lang.String title,
java.lang.String message,
MessageType messageType)
title - The title that can be show on UImessage - The message that can be shown on UImessageType - The message type indicating kind of messagevoid advertiseResourceCallback(Resource resource)
Device.resource - Resource advertised by the Device.void infoRequestStatusCallback(Command.State state, InfoRequest infoRequest)
InfoRequest.state - state sent by device.infoRequest - InfoRequest that is sent to device.void infoResponseCallback(InfoRequest request, InfoResponse infoResponse)
InfoResponse sent by Device in repose to InfoRequest.request - InfoRequest Which triggered response from Device.infoResponse - InfoResponse sent by Device.void resourceIncludedCallback(java.util.ArrayList<Resource> resources)
Resource's inclusion.resources - List of resource's that are included.void resourceExcludedCallback(Resource resource)
Resource's exclusion.resource - resource that is included.void tunnelStatusCallback(Capability tunnel, long tunnelHandle, CapabilityTunnel.State state, int port)
CapabilityTunnel.State.tunnel - The tunnel capability object.tunnelHandle - a long type handles status of tunnelstate - current status of tunnel.port - port over which transmission is happening.void zoneInfoCallback(Zone zone)
Zone's.zone - Zone whose info is updated.void zoneDeletedCallback(Network network, int zoneId)
Zone deletions.network - Network to which deleted zone belongs to.zoneId - ID of the deleted zone.void sceneInfoCallback(Scene scene)
Scene's.scene - scene whose info is updated.void sceneDeletedCallback(Network network, int sceneId)
Scene's.network - Network whose scene is deleted.sceneId - ID of deleted scene.void ruleInfoCallback(Rule rule)
Rule's.rule - rule whose info is updated.void ruleDeletedCallback(Network network, int ruleId)
Rule's.network - Network whose scene is deleted.ruleId - ID of deleted scene.void nodeConnectionStatusCallback(Network network, long nodeId, NodeType nodeType, boolean isOnline)
network - Network Whose node status is changed.nodeId - ID of the node.nodeType - Type of the node.isOnline - Flag representing if node is online.void networkManagementCommandCallback(Network network, CommandResponse<?> command)
Network.sendNetworkManagementCommand(Command, Network.NetworkManagementStatusListener).network - Network on which commands was executed.command - response that's sent by Device.void networkDataCallback(Network network)
network - Network whose data is updated.void leaveNetworkStatusCallback(Network network, Command.State status)
Command.State.SUCCESS and Command.State.FAILURE are only possible.network - The network on which Network.leave(Network.LeaveStatusListener)
was called.status - The status for the command sent.void errorCallback(java.lang.Throwable tr)
tr - The error which occurred.void receiveDataCallback(Network network, long sourceNodeId, java.lang.String data)
Network.sendData(String, long[]).network - The Network in which message was sent.sourceNodeId - The nodeId of the author of the message.data - The content of the message.void contentInfoCallback(Network network, long sourceNodeId, long contentTime, java.lang.String data)
Network.sendContentInfo(long, String, long[]).network - The Network in which message was sent.sourceNodeId - The nodeId of the author of the message.contentTime - The time of sendingdata - The content of the message.void networkMetadataCallback(Network network)
network - Network object with updated metadata.