|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.EventObject
org.mbari.siam.operations.portal.PortalEvent
public class PortalEvent
PortalEvent
| Field Summary | |
|---|---|
protected boolean |
_consumed
|
protected int |
_id
Event ID |
protected long |
_time
timestamp |
static int |
CONNECT_NODE_END
|
static int |
CONNECT_NODE_START
CONNECT_NODE event ID |
static int |
DEVICE_LIST_END
|
static int |
DEVICE_LIST_START
|
static int |
DISCONNECT_NODE_END
|
static int |
DISCONNECT_NODE_START
DISCONNECT_NODE event ID |
static int |
DISTRIBUTE_DATA_END
|
static int |
DISTRIBUTE_DATA_START
|
static int |
EXCEPTION
EXCEPTION event ID |
static int |
GET_DATA_END
END_DOWNLOAD event ID |
static int |
GET_DATA_START
START_DOWNLOAD event ID |
static int |
NODE_LIST_END
|
static int |
NODE_LIST_START
|
static int |
NULL_ID
|
static int |
PROCESS_NODE_END
|
static int |
PROCESS_NODE_START
|
static int |
PROCESS_PACKET_SET_END
|
static int |
PROCESS_PACKET_SET_START
|
static int |
PUBLISH_DATA_END
|
static int |
PUBLISH_DATA_START
|
static int |
RESET_WDT_END
|
static int |
RESET_WDT_START
RESET_WDT event ID |
static int |
RETRIEVE_DISTRIBUTE_DATA_END
|
static int |
RETRIEVE_DISTRIBUTE_DATA_START
|
static int |
RX_PACKET_SET_END
|
static int |
RX_PACKET_SET_START
RX_PACKET_SET event ID |
static int |
SAVE_DATA_END
|
static int |
SAVE_DATA_START
|
static int |
SEND_COMMANDS_END
|
static int |
SEND_COMMANDS_START
|
static int |
SESSION_END
SESSION_END event ID |
static int |
SESSION_START
SESSION_START event ID |
static int |
START_SESSION_END
|
static int |
START_SESSION_START
|
static int |
SYNC_NTP_END
|
static int |
SYNC_NTP_START
|
static int |
UNSPECIFIED_END
|
static int |
UNSPECIFIED_START
|
static int |
WAKE_SUBNODE_END
|
static int |
WAKE_SUBNODE_START
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
PortalEvent()
Constructs a PortalEvent with the specified source and type |
|
PortalEvent(java.lang.Object source)
Constructs a PortalEvent with the specified source and type |
|
PortalEvent(java.lang.Object source,
int id)
Constructs a PortalEvent with the specified source and type |
|
PortalEvent(java.lang.Object source,
int id,
DevicePacketSet packetSet)
Constructs a PortalEvent with the specified source and type and PacketSet |
|
PortalEvent(java.lang.Object source,
int id,
java.lang.Exception exception)
Constructs a PortalEvent with the specified source and type and Exception |
|
PortalEvent(java.lang.Object source,
int id,
java.lang.String message)
Constructs a PortalEvent with the specified source and type and message |
|
| Method Summary | |
|---|---|
protected void |
consume()
Consume event |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
java.lang.Exception |
getException()
getException |
int |
getID()
Returns the event type |
java.lang.String |
getMessage()
get the message attached to this event |
DevicePacketSet |
getPacketSet()
get the DevicePacketSet attached to this event |
long |
getTime()
Returns the event timestamp |
protected boolean |
isConsumed()
Returns current value of consumed member |
java.lang.String |
paramString()
Returns a string representing the state of this event |
void |
setException(java.lang.Exception exception)
getException |
void |
setPacketSet(DevicePacketSet packetSet)
Attach a DevicePacketSet to this event |
java.lang.String |
toString()
Returns a string representation this event object |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NULL_ID
protected int _id
protected long _time
protected boolean _consumed
public static final int SESSION_START
public static final int SESSION_END
public static final int EXCEPTION
public static final int CONNECT_NODE_START
public static final int CONNECT_NODE_END
public static final int RESET_WDT_START
public static final int RESET_WDT_END
public static final int SYNC_NTP_START
public static final int SYNC_NTP_END
public static final int DEVICE_LIST_START
public static final int DEVICE_LIST_END
public static final int RX_PACKET_SET_START
public static final int RX_PACKET_SET_END
public static final int GET_DATA_START
public static final int GET_DATA_END
public static final int SAVE_DATA_START
public static final int SAVE_DATA_END
public static final int DISTRIBUTE_DATA_START
public static final int DISTRIBUTE_DATA_END
public static final int PUBLISH_DATA_START
public static final int PUBLISH_DATA_END
public static final int NODE_LIST_START
public static final int NODE_LIST_END
public static final int DISCONNECT_NODE_START
public static final int DISCONNECT_NODE_END
public static final int WAKE_SUBNODE_START
public static final int WAKE_SUBNODE_END
public static final int START_SESSION_START
public static final int START_SESSION_END
public static final int PROCESS_NODE_START
public static final int PROCESS_NODE_END
public static final int PROCESS_PACKET_SET_START
public static final int PROCESS_PACKET_SET_END
public static final int RETRIEVE_DISTRIBUTE_DATA_START
public static final int RETRIEVE_DISTRIBUTE_DATA_END
public static final int SEND_COMMANDS_START
public static final int SEND_COMMANDS_END
public static final int UNSPECIFIED_START
public static final int UNSPECIFIED_END
| Constructor Detail |
|---|
public PortalEvent()
public PortalEvent(java.lang.Object source)
public PortalEvent(java.lang.Object source,
int id,
DevicePacketSet packetSet)
public PortalEvent(java.lang.Object source,
int id,
java.lang.Exception exception)
public PortalEvent(java.lang.Object source,
int id,
java.lang.String message)
public PortalEvent(java.lang.Object source,
int id)
| Method Detail |
|---|
public long getTime()
public int getID()
public java.lang.Exception getException()
public void setException(java.lang.Exception exception)
public void setPacketSet(DevicePacketSet packetSet)
public DevicePacketSet getPacketSet()
public java.lang.String getMessage()
public java.lang.String paramString()
public java.lang.String toString()
toString in class java.util.EventObjectprotected void consume()
protected boolean isConsumed()
protected void finalize()
finalize in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||