|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.edge.common.Event
This class represents an generic sensor event. <p/>
Field Summary | |
static int |
CONTAINER Event subtype here refers to how event is generated from a moving tag. |
static java.lang.String |
DEVICE_EVENTRECEIVING_FAILURE Event type here refers to error occurance during the process of receiving any raw event. |
static java.lang.String |
DEVICE_INIT_FAILURE Event data here refers to error occurance during the process of initializing device. |
static java.lang.String |
DEVICE_OPERATION Event subtype here refers to error occurance during the process of initializing device. |
static java.lang.String |
DEVICE_START_FAILURE Event type here refers to error occurance during the process of starting device. |
static java.lang.String |
DEVICE_STOP_FAILURE Event type here refers to error occurance during the process of receiving any raw event. |
static int |
DISPATCHER_FAILED Event subtype here refers to an event pushed only by the EventDispatcher when a dispatcher fails after being online. |
static int |
DISPATCHER_ONLINE Event subtype here refers to an event pushed only by the EventDispatcher when a dispatcher comes online. |
static java.lang.String |
DISPATCHER_START Event subtype here refers to error occurance during the process of initializing device. |
static int |
EDGE_SERVER_SHUTDOWN Event subtype here refers to an event pushed only by the EventDispatcher when a dispatcher fails after being online. |
static int |
EDGE_SERVER_STARTUP Event subtype here refers to an event pushed only by the EventDispatcher when a dispatcher fails after being online. |
static int |
ERROR_CONFIRMATION Event subtype here refers to an event to report a error confirmation. |
static int |
ERROR_REPORT Event subtype here refers to an event to report an error. |
static java.lang.String |
FILTER_CHECKTAG_FAILURE Event subtype here refers to the event generated within a check tag filter that fails to identify the specified tag. |
static java.lang.String |
FILTER_MONITOR_EVENT_DIFF_COUNT Event subtype here refers to the event generated within a check tag filter that fails to identify the specified tag. |
static int |
FUNC_NOT_SUPPORT Event subtype here refers to an event to report an unsupported function being called. |
static int |
HUMIDITY Event type here refers to humidity event. |
static int |
INFIELD Event subtype here refers to how event is generated from a moving tag. |
static int |
INSTRUCTION Event type for instructions |
static int |
MESSAGE_EVENT Event type here refers to observation event. |
static int |
MULTIPLE_INFIELD Event subtype here refers to how event is generated from a moving tag. |
static int |
MULTIPLE_OUTOFFIELD Event subtype here refers to how event is generated from a moving tag. |
static int |
MULTIPLE_PASS Event subtype here refers to how event is generated from a moving tag. |
static int |
NOTIFICATION Event subtype here refers to an event to notify some normal message. |
static int |
OBSERVATION Event type here refers to observation event. |
static int |
OUTOFFIELD Event subtype here refers to how event is generated from a moving tag. |
static int |
PASS Event subtype here refers to how event is generated from a moving tag. |
static int |
PHYSICAL_CONTACT Event type here refers to real time location event. |
static int |
RTLS Event type here refers to real time location event. |
static int |
START Event subtype for checking device status |
static int |
START_DISPATCH Event subtype here refers to an event to start a dispatch at edge server side. |
static int |
STATUSCHECK Event subtype for checking device status |
static int |
STOP Event subtype for checking device status |
static int |
STOP_DISPATCH Event subtype here refers to an event to stop a dispatch at edge server side. |
static int |
SUCCESS_CONFIRMATION Event subtype here refers to an event to report a error confirmation. |
static int |
tcSize Window size for each type category |
static int |
TEMPERATURE Event type here refers to temperature event. |
static int |
tiInstruction Type id for RFID observations |
static int |
tiRFID Type id for RFID observations |
static int |
UNKNOWN Event subtype here refers to how event is generated. |
static int |
WEIGHT Event type here refers to weight event. |
Constructor Summary | |
Event() Default constructor. |
|
Event(EdgeEvent ev) Used for conversion of EdgeEvent ADT type to an event. |
|
Event(java.io.RandomAccessFile raf) Used by the disk FIFO for queuing events. |
Method Summary | |
boolean |
equals(Event ev) This will do a field by field comparison between two events to see if they are equal. |
java.lang.String[] |
getAssociatedData() Get associated data. |
java.lang.String[] |
getAssociatedTagIds() Get associated tag ids. |
int |
getBytesRead() Returns the number of bytes read from the File to load this event. |
java.lang.String |
getCorrelationId() Get correlation id to support two-way communication between edge server and client through event object. |
java.lang.String |
getData() Get event data. |
java.lang.String |
getDeviceName() Get device name. |
java.lang.String |
getSerialzedDataStr() Get id string in serialized form. |
java.lang.String |
getSerialzedIdStr() Get id string in serialized form. |
java.lang.String |
getSiteName() Get site name. |
java.lang.String |
getSourceName() Get event name. |
int |
getSubtype() Get event type. |
java.lang.String |
getTagId() Get tag id. |
java.util.Date |
getTime() Get event time. |
int |
getType() Get event type. |
static void |
main(java.lang.String[] args) |
void |
output(java.io.PrintStream PW) Outputs a human-readable form of this Event to a PrintStream. |
static java.lang.String |
padString(java.lang.String topad) |
static int |
pickle(Event ev, java.io.RandomAccessFile os) Pickles (serializes) an Event to the given RandomAccessFile at the files current position |
static int |
readInt(byte[] b, int offset) Reads an int from a byte array, used during de-pickling |
static long |
readLong(byte[] b, int offset) Reads an long from a byte array, used during de-pickling |
void |
removeAssociatedData(int Index) Remove an associated data. |
void |
removeAssociatedTagId(int Index) Remove an associated tag id. |
void |
setAssociatedData(java.lang.String[] Data) Set associated data. |
void |
setAssociatedTagIds(java.lang.String[] TagIds) Set associated tag ids. |
void |
setCorrelationId(java.lang.String correlationId) Set correlation id to support two-way communication between edge server and client through event object. |
void |
setData(java.lang.String Data) Set event data. |
void |
setDeviceName(java.lang.String DeviceName) Set device name. |
void |
setSiteName(java.lang.String SiteName) Set site name. |
void |
setSourceName(java.lang.String name) Set event name. |
void |
setSubtype(int EventSubtype) Set event subtype. |
void |
setTagId(java.lang.String TagId) Set tag id. |
void |
setTime(java.util.Date EventTime) Set event time. |
void |
setType(int EventType) Set event type. |
java.lang.String |
toString() |
static int |
unpickle(Event ev, java.io.RandomAccessFile is) Unpickles (deserializes) an Event object from a RandomAccessFile starting from the current position of the file |
static void |
writeInt(byte[] b, int offset, int i) Writes a int to a byte array at the given offset |
static void |
writeLong(byte[] b, int offset, long l) Writes a long to a byte array at the given offset |
static void |
writeString(byte[] b, byte[] s, int offset) Writes a string to a byte array at the given offset |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CONTAINER
public static final java.lang.String DEVICE_EVENTRECEIVING_FAILURE
public static final java.lang.String DEVICE_INIT_FAILURE
public static final java.lang.String DEVICE_OPERATION
public static final java.lang.String DEVICE_START_FAILURE
public static final java.lang.String DEVICE_STOP_FAILURE
public static final int DISPATCHER_FAILED
public static final int DISPATCHER_ONLINE
public static final java.lang.String DISPATCHER_START
public static final int EDGE_SERVER_SHUTDOWN
public static final int EDGE_SERVER_STARTUP
public static final int ERROR_CONFIRMATION
public static final int ERROR_REPORT
public static final java.lang.String FILTER_CHECKTAG_FAILURE
public static final java.lang.String FILTER_MONITOR_EVENT_DIFF_COUNT
public static final int FUNC_NOT_SUPPORT
public static final int HUMIDITY
public static final int INFIELD
public static final int INSTRUCTION
public static final int MESSAGE_EVENT
public static final int MULTIPLE_INFIELD
public static final int MULTIPLE_OUTOFFIELD
public static final int MULTIPLE_PASS
public static final int NOTIFICATION
public static final int OBSERVATION
public static final int OUTOFFIELD
public static final int PASS
public static final int PHYSICAL_CONTACT
public static final int RTLS
public static final int START
public static final int START_DISPATCH
public static final int STATUSCHECK
public static final int STOP
public static final int STOP_DISPATCH
public static final int SUCCESS_CONFIRMATION
public static final int tcSize
public static final int TEMPERATURE
public static final int tiInstruction
public static final int tiRFID
public static final int UNKNOWN
public static final int WEIGHT
Constructor Detail |
public Event()
public Event(EdgeEvent ev) throws java.sql.SQLException
public Event(java.io.RandomAccessFile raf) throws java.io.IOException
raf
- The RandomAccessFile that contains the queue positioned at the front of the eventjava.io.IOException
Method Detail |
public boolean equals(Event ev)
ev
- The Event object to compare this event againstpublic java.lang.String[] getAssociatedData()
public java.lang.String[] getAssociatedTagIds()
public int getBytesRead()
public java.lang.String getCorrelationId()
public java.lang.String getData()
public java.lang.String getDeviceName()
public java.lang.String getSerialzedDataStr()
public java.lang.String getSerialzedIdStr()
public java.lang.String getSiteName()
public java.lang.String getSourceName()
public int getSubtype()
public java.lang.String getTagId()
public java.util.Date getTime()
public int getType()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void output(java.io.PrintStream PW)
PW
- The PrintStream to write to.public static java.lang.String padString(java.lang.String topad)
public static int pickle(Event ev, java.io.RandomAccessFile os) throws java.io.IOException
ev
- The Event object to pickleos
- The file to write tojava.io.IOException
public static int readInt(byte[] b, int offset)
b
- the byte array containing the int to readoffset
- the offset from the beginning of the array from which to read the intpublic static final long readLong(byte[] b, int offset)
b
- the byte array containing the long to readoffset
- the offset from the beginning of the array from which to read the longpublic void removeAssociatedData(int Index)
Index
- associated data indexpublic void removeAssociatedTagId(int Index)
Index
- associated tag id indexpublic void setAssociatedData(java.lang.String[] Data)
Data
- associated datapublic void setAssociatedTagIds(java.lang.String[] TagIds)
TagIds
- associated tag idspublic void setCorrelationId(java.lang.String correlationId)
correlationId
- correlation idpublic void setData(java.lang.String Data)
Data
- event datapublic void setDeviceName(java.lang.String DeviceName)
DeviceName
- device namepublic void setSiteName(java.lang.String SiteName)
SiteName
- site namepublic void setSourceName(java.lang.String name)
name
- event namepublic void setSubtype(int EventSubtype)
EventSubtype
- event subtypepublic void setTagId(java.lang.String TagId)
TagId
- tag idpublic void setTime(java.util.Date EventTime)
EventTime
- event timepublic void setType(int EventType)
EventType
- event typepublic java.lang.String toString()
public static int unpickle(Event ev, java.io.RandomAccessFile is) throws java.io.IOException
ev
- The Event object to populate with the values read from the file.is
- File to read fromjava.io.IOException
public static void writeInt(byte[] b, int offset, int i)
b
- The byte array to write tooffset
- The offset at which to write the inti
- The int to writepublic static void writeLong(byte[] b, int offset, long l)
b
- The byte array to write tooffset
- The offset at which to write the longl
- The long to writepublic static void writeString(byte[] b, byte[] s, int offset)
b
- The byte array to write tooffset
- The offset at which to write the strings
- The bytes of the string to write to write
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |