public abstract class ConnectionEvent extends Event
EventsListener| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionEvent.ConnectedEvent
Specific connection event indicating connection has been established.
|
static class |
ConnectionEvent.ConnectionErrorEvent
Specific connection event indicating a connection error.
|
static class |
ConnectionEvent.DisconnectedEvent
Specific connection event indicating connection has been disconnected.
|
static class |
ConnectionEvent.StartingConnectionEvent
Specific connection event indicating connection has been started.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_CONNECTED
Cloud Connector connection has established event.
|
static int |
CONNECTION_DISCONNECTED
Cloud Connector disconnected event.
|
static int |
CONNECTION_ERROR
Event indicating that there was an error with Device Cloud connection.
|
static int |
CONNECTION_STARTING
Cloud Connector connection is starting event.
|
static int |
ERROR_BAD_VERSION
Error: Cloud Connector version is bad.
|
static int |
ERROR_BAD_VERSION_COM
Error: Cloud Connector communication version is bad.
|
static int |
ERROR_CANNOT_RESOLVE_HOST
Error: Device Cloud host could not be resolved.
|
static int |
ERROR_CONNECTION_LOST
Error: Connection with Device Cloud lost.
|
static int |
ERROR_DESCRIPTOR_ERROR
Error: Device descriptor could not be generated.
|
static int |
ERROR_DEVICE_ID_NOT_RECEIVED
Error: Device ID not received from provisioning.
|
static int |
ERROR_INTERNET_NOT_AVAILABLE
Error: Internet connectivity not available.
|
static int |
ERROR_INVALID_AUTHORIZATION_TYPE
Error: Invalid authorization type.
|
static int |
ERROR_INVALID_BASIC_PASSWORD
Error: Invalid Basic authentication password.
|
static int |
ERROR_INVALID_DEVICE_TYPE
Error: Invalid Device type.
|
static int |
ERROR_INVALID_VENDOR_ID
Error: Vendor ID is not valid.
|
static int |
ERROR_NO_CONNECTION
Error: There is not an active Device Cloud connection.
|
static int |
ERROR_NO_ERROR
Error: Unknown.
|
static int |
ERROR_SECURITY_FAILURE
Error: There was a security failure trying to connect.
|
static int |
ERROR_SERVER_OVERLOAD
Error: Cloud connector server is overloaded.
|
static int |
ERROR_SERVER_UNAVAILABLE
Error: Device Cloud server is unavailable.
|
static int |
ERROR_UNABLE_TO_CONNECT
Error: Unable to connect to Device Cloud.
|
static int |
ERROR_WRONG_ID
Error: Device ID is wrong.
|
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 |
getConnectionEventType()
Retrieves the connection event type.
|
java.lang.String |
getEventTypeTag()
Retrieves the event type tag to be logged.
|
static ConnectionEvent |
newConnectedEvent()
Creates a new connected event.
|
static ConnectionEvent |
newConnectionErrorEvent(int errorType)
Creates a new connection error event.
|
static ConnectionEvent |
newDisconnectedEvent()
Creates a new disconnected event.
|
static ConnectionEvent |
newStartingConnectionEvent()
Creates a new starting connection event.
|
java.lang.String |
toString() |
getEventLogString, getEventSeverity, getEventType, setSeveritypublic static final int CONNECTION_CONNECTED
public static final int CONNECTION_DISCONNECTED
public static final int CONNECTION_ERROR
public static final int CONNECTION_STARTING
public static final int ERROR_BAD_VERSION
public static final int ERROR_BAD_VERSION_COM
public static final int ERROR_CANNOT_RESOLVE_HOST
public static final int ERROR_CONNECTION_LOST
public static final int ERROR_DESCRIPTOR_ERROR
public static final int ERROR_DEVICE_ID_NOT_RECEIVED
public static final int ERROR_INTERNET_NOT_AVAILABLE
public static final int ERROR_INVALID_AUTHORIZATION_TYPE
public static final int ERROR_INVALID_BASIC_PASSWORD
public static final int ERROR_INVALID_DEVICE_TYPE
public static final int ERROR_INVALID_VENDOR_ID
public static final int ERROR_NO_CONNECTION
public static final int ERROR_NO_ERROR
public static final int ERROR_SECURITY_FAILURE
public static final int ERROR_SERVER_OVERLOAD
public static final int ERROR_SERVER_UNAVAILABLE
public static final int ERROR_UNABLE_TO_CONNECT
public static final int ERROR_WRONG_ID
public int getConnectionEventType()
CONNECTION_STARTING,
CONNECTION_CONNECTED,
CONNECTION_DISCONNECTED,
CONNECTION_ERRORpublic java.lang.String getEventTypeTag()
EventgetEventTypeTag in class Eventpublic static ConnectionEvent newConnectedEvent()
public static ConnectionEvent newConnectionErrorEvent(int errorType)
errorType - Connection error type.public static ConnectionEvent newDisconnectedEvent()
public static ConnectionEvent newStartingConnectionEvent()
© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.