SystemEventType

public class SystemEventType

This class identifies the possible event types of a SystemEvent.

Every type gives full information of what happened, divided by priority, and with an user-friendly description.

Every possible event is already created and is reused to improve performance. The objects can be compared directly.

See also: SystemEvent

Fields

CACHE_CLEARED

public static final SystemInfoEventType CACHE_CLEARED

A constant describing a Cache Cleared event. This event is triggered by a call to KallistoManager.refreshCache().

REBOOT

public static final SystemInfoEventType REBOOT

A constant describing a Reboot event. This event is triggered by a call to KallistoManager.reboot(Kallisto).

SCAN_CHANGED

public static final SystemInfoEventType SCAN_CHANGED

A constant describing a Scan Changed event. This event is triggered by a call to KallistoManager.updateScannerConfiguration(ScannerConfiguration) or KallistoManager.updateScannerFilter(ScannerFilter).

SCAN_FOUND_DEVICE

public static final SystemInfoEventType SCAN_FOUND_DEVICE

A constant describing a Found Device event. This event is triggered following a SCAN_STARTED event when a new Kallisto device is found.

SCAN_LOST_DEVICE

public static final SystemInfoEventType SCAN_LOST_DEVICE

A constant describing a Lost Device event. This event is triggered following a SCAN_STARTED when the scan is stopped and a Kallisto device disappeared.

SCAN_STARTED

public static final SystemInfoEventType SCAN_STARTED

A constant describing a Scan Started event. This event is triggered when the scanner worker starts scanning for new devices.

Depending of the de.sensry.kallisto.bluetooth.scanner.ScannerConfiguration, a SCAN_STOPPED will be triggered following this event.

SCAN_STOPPED

public static final SystemInfoEventType SCAN_STOPPED

A constant describing a Scan Stopped event. The scanner worker stopped scanning for new devices.

STACK_BLOWN

public static final SystemErrorEventType STACK_BLOWN

A constant describing a Stack Blown event. This event is generated when the Bluetooth adapter is turned off.

If there are any devices under use, LINK_LOSS events will be triggered for each device.

The system will try to turn on the Bluetooth adapter in order to continue working.

Following this event, one of STACK_OK or STACK_IRREPARABLE will be triggered.

STACK_IRREPARABLE

public static final SystemErrorEventType STACK_IRREPARABLE

A constant describing a Stack Irreparable event. This event is generated when the Bluetooth adapter can’t be turned on following a STACK_BLOWN event. This means something is wrong with the adapter and the system can’t continue.

Following this event, the remote service will start cleaning up procedures and stop itself since there is no recovery possible and no new request will be possible. A KallistoManager.SERVICE_DISCONNECTED broadcast will be sent shortly after.

STACK_OK

public static final SystemInfoEventType STACK_OK

A constant describing a Stack Ok event. This event is triggered following a STACK_BLOWN event when the system can turn the Bluetooth adapter back on.

TYPE_ERROR

public static final int TYPE_ERROR

A constant describing a error type of event.

TYPE_INFO

public static final int TYPE_INFO

A constant describing an information type of event.

code

public final int code

Event code. An integer value.

description

public final String description

Human readable description of the event.

type

public final int type

Event type. Can be either TYPE_INFO or TYPE_ERROR.

Methods

equals

public boolean equals(Object o)

Compares the passed object with this SystemEventType.

Parameters
  • o – The object to be compared.

Returns

true if the object is equal to this SystemEventType.