public abstract class Event
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SEVERITY_DEBUG
Event severity is of type 'debug'.
|
static int |
SEVERITY_ERROR
Event severity is of type 'error'.
|
static int |
SEVERITY_INFO
Event severity is of type 'information'.
|
static java.lang.String |
TAG_DEBUG
Log tag for 'debug' severity events.
|
static java.lang.String |
TAG_ERROR
Log tag for 'error' severity events.
|
static java.lang.String |
TAG_INFO
Log tag for 'information' severity events.
|
static int |
TYPE_CONNECTION
Event is of type 'connection'.
|
static int |
TYPE_DATA_POINT
Event is of type 'data point'.
|
static int |
TYPE_DATA_PUSH
Event is of type 'data push'.
|
static int |
TYPE_DEVICE_REQUEST
Event is of type 'device request'.
|
static int |
TYPE_FILE_SYSTEM
Event is of type 'file system'.
|
static int |
TYPE_FIRMWARE
Event is of type 'firmware update'.
|
static int |
TYPE_RCI
Event is of type 'RCI'.
|
Constructor and Description |
---|
Event(int type)
Class constructor.
|
Event(int type,
int severity)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getEventLogString()
Retrieves the event string to be logged.
|
int |
getEventSeverity()
Retrieves the event severity.
|
int |
getEventType()
Retrieves the event type.
|
abstract java.lang.String |
getEventTypeTag()
Retrieves the event type tag to be logged.
|
void |
setSeverity(int severity)
Sets the event severity.
|
java.lang.String |
toString() |
public static final int SEVERITY_DEBUG
public static final int SEVERITY_ERROR
public static final int SEVERITY_INFO
public static final java.lang.String TAG_DEBUG
public static final java.lang.String TAG_ERROR
public static final java.lang.String TAG_INFO
public static final int TYPE_CONNECTION
public static final int TYPE_DATA_POINT
public static final int TYPE_DATA_PUSH
public static final int TYPE_DEVICE_REQUEST
public static final int TYPE_FILE_SYSTEM
public static final int TYPE_FIRMWARE
public static final int TYPE_RCI
public Event(int type)
type
- Event type.public Event(int type, int severity)
type
- Event type.severity
- Event severity.public abstract java.lang.String getEventLogString()
public int getEventSeverity()
SEVERITY_INFO
,
SEVERITY_ERROR
,
SEVERITY_DEBUG
public int getEventType()
TYPE_CONNECTION
,
TYPE_DATA_POINT
,
TYPE_DATA_PUSH
,
TYPE_FILE_SYSTEM
,
TYPE_FIRMWARE
,
TYPE_RCI
public abstract java.lang.String getEventTypeTag()
public void setSeverity(int severity)
severity
- Event severity.SEVERITY_INFO
,
SEVERITY_ERROR
,
SEVERITY_DEBUG
public java.lang.String toString()
toString
in class java.lang.Object
© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.