|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jlab.coda.et.EventList
This class defines a linked list of events for use as either a station's input or output list in a station.
| Field Summary | |
(package private) java.util.LinkedList |
events
Linked list of events. |
(package private) long |
eventsIn
Number of events put into this list. |
(package private) long |
eventsOut
Number of events taken out of this list. |
(package private) long |
eventsTry
Number of events tried to put into this list when used with prescaling. |
(package private) boolean |
locked
Flag telling if the list is locked by a user reading events from it. |
| Constructor Summary | |
(package private) |
EventList()
Creates a new EventList object. |
| Method Summary | |
(package private) void |
get(java.util.ArrayList eventsToGo)
Used only by conductor to get all events from a station's output list. |
(package private) Event[] |
get(AttachmentLocal att,
int mode,
int microSec,
int quantity)
For an attachment (in TcpServer thread) to get an array of events. |
(package private) void |
put(java.util.ArrayList newEvents)
For user to put all events into station's output list. |
(package private) void |
put(Event[] newEvents)
For user to put all events into station's output list. |
(package private) void |
putAll(java.util.List newEvents)
Put all events into the list regardless of how many are already in it. |
(package private) void |
putInGC(Event[] newEvents)
Synchronized version of putInLow for user to dump events into GRAND_CENTRAL station. |
(package private) void |
putInGC(java.util.List newEvents)
Synchronized version of putInLow for user to dump events into GRAND_CENTRAL station. |
(package private) void |
putInLow(java.util.List newEvents)
Put all events into a station's input list as low priority. |
(package private) void |
wakeUp(AttachmentLocal att)
Wake up an attachment waiting to read events from this list. |
(package private) void |
wakeUpAll()
Wake up all attachments waiting to read events from this list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.util.LinkedList events
long eventsIn
long eventsOut
long eventsTry
volatile boolean locked
| Constructor Detail |
EventList()
| Method Detail |
void wakeUp(AttachmentLocal att)
att - attachment to be woken upvoid wakeUpAll()
void putInLow(java.util.List newEvents)
newEvents - list of events to putvoid putInGC(Event[] newEvents)
newEvents - array of events to putvoid putInGC(java.util.List newEvents)
newEvents - list of events to putvoid putAll(java.util.List newEvents)
newEvents - list of events to putvoid put(Event[] newEvents)
newEvents - array of events to putvoid put(java.util.ArrayList newEvents)
newEvents - list of events to putvoid get(java.util.ArrayList eventsToGo)
eventsToGo - list of event to get
Event[] get(AttachmentLocal att,
int mode,
int microSec,
int quantity)
throws EtEmptyException,
EtWakeUpException,
EtTimeoutException
att - attachmentmode - wait modemicroSec - time in microseconds to wait if timed wait modequantity - number of events desired
EtEmptyException - if the mode is asynchronous and the station's input list is empty
EtTimeoutException - if the mode is timed wait and the time has expired
EtWakeUpException - if the attachment has been commanded to wakeup,
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||