public interface DefaultCallbacksInterface extends CallbacksInterface
CallbacksInterface.| Modifier and Type | Method and Description |
|---|---|
default void |
advertiseResourceCallback(Resource resource)
A function that needs to be implemented by the subscriber to listen
to resource advertisement sent by
Device. |
default void |
commandStatusCallback(CommandResponse<?> command)
A function that needs to implemented by the subscriber to
response for sent
Command's. |
default void |
connectStatusCallback(Network network)
A function that needs to be implemented by subscribers to
get info regrading connection status of the
Network. |
default 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[]). |
default void |
deviceInfoCallback(Device device)
A function that needs to be implemented by subscriber to
listen updates regarding
Device. |
default void |
deviceManagementStatusCallback(Device device,
CommandResponse<?> executedCommand,
Resource[] resourcesImpacted)
A function that needs to be implemented by subscriber to listen
to responses of
Device.sendDeviceManagementCommand(Command, Device.DeviceManagementStatusListener). |
default void |
errorCallback(java.lang.Throwable tr)
A callback indicating an internal error.
|
default void |
infoRequestCallback(InfoRequest infoRequest)
A function that needs to be implemented by subscriber to listen
to
InfoRequest sent by Device. |
default void |
infoRequestStatusCallback(Command.State state,
InfoRequest infoRequest)
A function that needs to be implemented by subscriber to listen
to state of sent
InfoRequest. |
default 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. |
default void |
infoResponseStatusCallback(Command.State state,
InfoResponse infoResponse)
A function that needs to be implemented by subscriber to listen
to status of
InfoResponse. |
default void |
leaveNetworkStatusCallback(Network network,
Command.State status)
Command.State.SUCCESS and Command.State.FAILURE are only possible. |
default 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.
|
default void |
networkDataCallback(Network network)
A function that needs to be implemented by subscriber to listen to
updates of network.
|
default void |
networkListCallback(java.util.ArrayList<Network> networksList)
A function that needs to be implemented by subscriber to listen
update regarding
Network. |
default 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). |
default void |
networkMetadataCallback(Network network)
A callback that delivers metadata updates for a network.
|
default 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.
|
default 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[]). |
default void |
resourceAttributeCallback(Attribute attribute)
A function that needs to be implemented by the subscriber to
listen updates regarding updates in
Attribute's data. |
default void |
resourceCallback(Resource resource)
A function that needs to be implemented by subscriber to
listen updates regarding
Resource's info. |
default void |
resourceCapabilityCallback(Capability capability)
A function that needs to be implemented by subscriber to
listen updates regarding
Resource's capabilities. |
default void |
resourceExcludedCallback(Resource resource)
A function that needs to implemented by subscriber to listen
to update regarding
Resource's exclusion. |
default void |
resourceIncludedCallback(java.util.ArrayList<Resource> resources)
A function that needs to implemented by subscriber to listen
to update regarding
Resource's inclusion. |
default void |
ruleDeletedCallback(Network network,
int ruleId)
A function that needs to be implemented by the subscriber to listen updates
regarding
Rule's. |
default void |
ruleInfoCallback(Rule rule)
A function that needs to be implemented by the subscriber to listen updates
regarding
Rule's. |
default void |
sceneDeletedCallback(Network network,
int sceneId)
A function that needs to be implemented by the subscriber to listen updates
regarding
Scene's. |
default void |
sceneInfoCallback(Scene scene)
A function that needs to be implemented by the subscriber to listen updates
regarding
Scene's. |
default 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. |
default void |
zoneDeletedCallback(Network network,
int zoneId)
A function that needs to be implemented by the subscriber to listen updates
regarding
Zone deletions. |
default void |
zoneInfoCallback(Zone zone)
A function that needs to be implemented by the subscriber to listen updates
regarding
Zone's. |
default void connectStatusCallback(Network network)
CallbacksInterfaceNetwork.connectStatusCallback in interface CallbacksInterfacenetwork - Network whose connect status is updated.default void deviceInfoCallback(Device device)
CallbacksInterfaceDevice.deviceInfoCallback in interface CallbacksInterfacedevice - Device whose info is updated.default void resourceCallback(Resource resource)
CallbacksInterfaceResource's info.resourceCallback in interface CallbacksInterfaceresource - Resource whose info is updated.default void resourceCapabilityCallback(Capability capability)
CallbacksInterfaceResource's capabilities.resourceCapabilityCallback in interface CallbacksInterfacecapability - Capabilitydefault void resourceAttributeCallback(Attribute attribute)
CallbacksInterfaceAttribute's data.resourceAttributeCallback in interface CallbacksInterfaceattribute - Attribute whose info is updated.default void commandStatusCallback(CommandResponse<?> command)
CallbacksInterfaceCommand's.commandStatusCallback in interface CallbacksInterfacecommand - response sent by the Device.default void networkListCallback(java.util.ArrayList<Network> networksList)
CallbacksInterfaceNetwork.networkListCallback in interface CallbacksInterfacenetworksList - List of networks present.default void deviceManagementStatusCallback(Device device, CommandResponse<?> executedCommand, Resource[] resourcesImpacted)
CallbacksInterfaceDevice.sendDeviceManagementCommand(Command, Device.DeviceManagementStatusListener).deviceManagementStatusCallback in interface CallbacksInterfacedevice - Device on which commands was executed.executedCommand - response sent by Device.resourcesImpacted - Resource's which are impacted by the command sent.default void infoRequestCallback(InfoRequest infoRequest)
CallbacksInterfaceInfoRequest sent by Device.infoRequestCallback in interface CallbacksInterfaceinfoRequest - InfoRequest that is sent by Device.default void infoResponseStatusCallback(Command.State state, InfoResponse infoResponse)
CallbacksInterfaceInfoResponse.infoResponseStatusCallback in interface CallbacksInterfacestate - state sent by Device.infoResponse - InfoResponse.default void messageCallback(java.lang.String title,
java.lang.String message,
MessageType messageType)
CallbacksInterfacemessageCallback in interface CallbacksInterfacetitle - The title that can be show on UImessage - The message that can be shown on UImessageType - The message type indicating kind of messagedefault void advertiseResourceCallback(Resource resource)
CallbacksInterfaceDevice.advertiseResourceCallback in interface CallbacksInterfaceresource - Resource advertised by the Device.default void infoRequestStatusCallback(Command.State state, InfoRequest infoRequest)
CallbacksInterfaceInfoRequest.infoRequestStatusCallback in interface CallbacksInterfacestate - state sent by device.infoRequest - InfoRequest that is sent to device.default void infoResponseCallback(InfoRequest request, InfoResponse infoResponse)
CallbacksInterfaceInfoResponse sent by Device in repose to InfoRequest.infoResponseCallback in interface CallbacksInterfacerequest - InfoRequest Which triggered response from Device.infoResponse - InfoResponse sent by Device.default void resourceIncludedCallback(java.util.ArrayList<Resource> resources)
CallbacksInterfaceResource's inclusion.resourceIncludedCallback in interface CallbacksInterfaceresources - List of resource's that are included.default void resourceExcludedCallback(Resource resource)
CallbacksInterfaceResource's exclusion.resourceExcludedCallback in interface CallbacksInterfaceresource - resource that is included.default void tunnelStatusCallback(Capability tunnel, long tunnelHandle, CapabilityTunnel.State state, int port)
CallbacksInterfaceCapabilityTunnel.State.tunnelStatusCallback in interface CallbacksInterfacetunnel - The tunnel capability object.tunnelHandle - a long type handles status of tunnelstate - current status of tunnel.port - port over which transmission is happening.default void zoneInfoCallback(Zone zone)
CallbacksInterfaceZone's.zoneInfoCallback in interface CallbacksInterfacezone - Zone whose info is updated.default void zoneDeletedCallback(Network network, int zoneId)
CallbacksInterfaceZone deletions.zoneDeletedCallback in interface CallbacksInterfacenetwork - Network to which deleted zone belongs to.zoneId - ID of the deleted zone.default void sceneInfoCallback(Scene scene)
CallbacksInterfaceScene's.sceneInfoCallback in interface CallbacksInterfacescene - scene whose info is updated.default void sceneDeletedCallback(Network network, int sceneId)
CallbacksInterfaceScene's.sceneDeletedCallback in interface CallbacksInterfacenetwork - Network whose scene is deleted.sceneId - ID of deleted scene.default void ruleInfoCallback(Rule rule)
CallbacksInterfaceRule's.ruleInfoCallback in interface CallbacksInterfacerule - rule whose info is updated.default void ruleDeletedCallback(Network network, int ruleId)
CallbacksInterfaceRule's.ruleDeletedCallback in interface CallbacksInterfacenetwork - Network whose scene is deleted.ruleId - ID of deleted scene.default void nodeConnectionStatusCallback(Network network, long nodeId, NodeType nodeType, boolean isOnline)
CallbacksInterfacenodeConnectionStatusCallback in interface CallbacksInterfacenetwork - Network Whose node status is changed.nodeId - ID of the node.nodeType - Type of the node.isOnline - Flag representing if node is online.default void networkManagementCommandCallback(Network network, CommandResponse<?> command)
CallbacksInterfaceNetwork.sendNetworkManagementCommand(Command, Network.NetworkManagementStatusListener).networkManagementCommandCallback in interface CallbacksInterfacenetwork - Network on which commands was executed.command - response that's sent by Device.default void networkDataCallback(Network network)
CallbacksInterfacenetworkDataCallback in interface CallbacksInterfacenetwork - Network whose data is updated.default void leaveNetworkStatusCallback(Network network, Command.State status)
CallbacksInterfaceCommand.State.SUCCESS and Command.State.FAILURE are only possible.leaveNetworkStatusCallback in interface CallbacksInterfacenetwork - The network on which Network.leave(Network.LeaveStatusListener)
was called.status - The status for the command sent.default void errorCallback(java.lang.Throwable tr)
CallbacksInterfaceerrorCallback in interface CallbacksInterfacetr - The error which occurred.default void receiveDataCallback(Network network, long sourceNodeId, java.lang.String data)
CallbacksInterfaceNetwork.sendData(String, long[]).receiveDataCallback in interface CallbacksInterfacenetwork - The Network in which message was sent.sourceNodeId - The nodeId of the author of the message.data - The content of the message.default void contentInfoCallback(Network network, long sourceNodeId, long contentTime, java.lang.String data)
CallbacksInterfaceNetwork.sendContentInfo(long, String, long[]).contentInfoCallback in interface CallbacksInterfacenetwork - 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.default void networkMetadataCallback(Network network)
CallbacksInterfacenetworkMetadataCallback in interface CallbacksInterfacenetwork - Network object with updated metadata.