public abstract class DeviceRequestEvent extends Event
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceRequestEvent.DeviceRequestAnswerEvent
Specific device request event implementation indicating a device request answer event.
|
static class |
DeviceRequestEvent.DeviceRequestErrorEvent
Specific device request event implementation indicating a device request
error event.
|
static class |
DeviceRequestEvent.DeviceRequestTargetEvent
Specific device request event implementation indicating a device request target event.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEVICE_REQUEST_ANSWER
Device request answer event.
|
static int |
DEVICE_REQUEST_ERROR
Device request error event.
|
static int |
DEVICE_REQUEST_REQUEST
Device request event.
|
SEVERITY_DEBUG, SEVERITY_ERROR, SEVERITY_INFO, TAG_DEBUG, TAG_ERROR, TAG_INFO, TYPE_CONNECTION, TYPE_DATA_POINT, TYPE_DATA_PUSH, TYPE_DEVICE_REQUEST, TYPE_FILE_SYSTEM, TYPE_FIRMWARE, TYPE_RCI| Modifier and Type | Method and Description |
|---|---|
int |
getDevicequestEventType()
Retrieves the device request type event.
|
java.lang.String |
getEventTypeTag()
Retrieves the event type tag to be logged.
|
java.lang.String |
getTarget()
Retrieves the device request event target.
|
static DeviceRequestEvent |
newDeviceRequestAnswerEvent(java.lang.String target,
byte[] data)
Creates a new device request answer event for the given target with the given data.
|
static DeviceRequestEvent |
newDeviceRequestAnswerEvent(java.lang.String target,
java.lang.String data)
Creates a new device request answer event for the given target with the given data.
|
static DeviceRequestEvent |
newDeviceRequestErrorEvent(java.lang.String target)
Creates a new device request error event for the given target.
|
static DeviceRequestEvent |
newDeviceRequestEvent(java.lang.String target,
byte[] data)
Creates a new device request event for the given target and data.
|
static DeviceRequestEvent |
newDeviceRequestEvent(java.lang.String target,
java.lang.String data)
Creates a new device request event for the given target and data.
|
java.lang.String |
toString() |
getEventLogString, getEventSeverity, getEventType, setSeveritypublic static final int DEVICE_REQUEST_ANSWER
public static final int DEVICE_REQUEST_ERROR
public static final int DEVICE_REQUEST_REQUEST
public int getDevicequestEventType()
DEVICE_REQUEST_ANSWER,
DEVICE_REQUEST_ERROR,
DEVICE_REQUEST_REQUESTpublic java.lang.String getEventTypeTag()
EventgetEventTypeTag in class Eventpublic java.lang.String getTarget()
public static DeviceRequestEvent newDeviceRequestAnswerEvent(java.lang.String target, byte[] data)
target - Target for which the device request answer event is sent.data - Device request event answer data as byte array.public static DeviceRequestEvent newDeviceRequestAnswerEvent(java.lang.String target, java.lang.String data)
target - Target for which the device request answer event is sent.data - Device request event answer data as string.public static DeviceRequestEvent newDeviceRequestErrorEvent(java.lang.String target)
target - Target for which the device request error event is sent.public static DeviceRequestEvent newDeviceRequestEvent(java.lang.String target, byte[] data)
target - Target for which the device request event is sent.data - Device request event data as byte array.public static DeviceRequestEvent newDeviceRequestEvent(java.lang.String target, java.lang.String data)
target - Target for which the device request event is sent.data - Device request event data as string.© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.