|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jlab.coda.et.AttachmentData
This class holds all information about an attachment. It parses the information from a stream of data sent by an ET system.
| Field Summary | |
(package private) int |
blocked
Flag indicating if this attachment is blocked waiting to read events. |
(package private) long |
eventsDump
Number of events dumped (recycled by returning to GRAND_CENTRAL) through the station. |
(package private) long |
eventsGet
Number of events gotten from the station. |
(package private) long |
eventsMake
Number of new events gotten from the station. |
(package private) int |
eventsOwned
The number of events owned by this attachment |
(package private) long |
eventsPut
Number of events put back into the station. |
(package private) java.lang.String |
host
Name of the host running this attachment. |
(package private) int |
num
Attachment's id number. |
(package private) int |
pid
Unix process id of the program that created this attachment (only relevant in C ET systems). |
(package private) int |
proc
Id number of ET process that created this attachment (only relevant in C ET systems). |
(package private) int |
quit
Flag indicating if this attachment has been told to quit trying to read events and return. |
(package private) int |
stat
Id number of the attachment's station. |
(package private) java.lang.String |
stationName
Name of the station this attachment is associated with. |
| Constructor Summary | |
AttachmentData()
|
|
| Method Summary | |
boolean |
blocked()
Indicates if this attachment is blocked waiting to read events. |
long |
getEventsDump()
Get the number of events dumped (recycled by returning to GRAND_CENTRAL) through the station. |
long |
getEventsGet()
Get the number of events gotten from the station. |
long |
getEventsMake()
Get the number of new events gotten from the station. |
int |
getEventsOwned()
Get the number of events owned by this attachment |
long |
getEventsPut()
Get the number of events put back into the station. |
java.lang.String |
getHost()
Get the name of the host running this attachment. |
int |
getId()
Get the attachment's id number. |
int |
getPid()
Get the Unix process id of the program that created this attachment (only relevant in C ET systems). |
int |
getProc()
Get the id number of ET process that created this attachment (only relevant in C ET systems). |
int |
getStationId()
Get the id number of the station to which this attachment belongs. |
java.lang.String |
getStationName()
Get the name of the station this attachment is associated with. |
boolean |
quitting()
Indicates if this attachment has been told to quit trying to read events and return. |
(package private) void |
read(java.io.DataInputStream dis)
Reads the attachment information from a data stream which is sent out by an ET system over the network. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
int num
Attachment.id,
AttachmentLocal.idint proc
int stat
Attachment.station,
AttachmentLocal.stationint pid
AttachmentLocal.pidint blocked
Constants.attBlocked if blocked and
Constants.attUnblocked otherwise.
This is not boolean for C ET system compatibility.
AttachmentLocal.waitingint quit
Constants.attQuit if it has been
told to quit and Constants.attContinue otherwise.
This is not boolean for C ET system compatibility.
AttachmentLocal.wakeUpint eventsOwned
long eventsPut
Attachment.getEventsPut(),
AttachmentLocal.eventsPutlong eventsGet
Attachment.getEventsGet(),
AttachmentLocal.eventsGetlong eventsDump
Attachment.getEventsDump(),
AttachmentLocal.eventsDumplong eventsMake
Attachment.getEventsMake(),
AttachmentLocal.eventsMakejava.lang.String host
AttachmentLocal.hostjava.lang.String stationName
| Constructor Detail |
public AttachmentData()
| Method Detail |
public int getId()
Attachment.id,
AttachmentLocal.idpublic int getProc()
public int getStationId()
Attachment.station,
AttachmentLocal.stationpublic int getPid()
AttachmentLocal.pidpublic boolean blocked()
AttachmentLocal.waitingpublic boolean quitting()
AttachmentLocal.wakeUppublic int getEventsOwned()
public long getEventsPut()
Attachment.getEventsPut(),
AttachmentLocal.eventsPutpublic long getEventsGet()
Attachment.getEventsGet(),
AttachmentLocal.eventsGetpublic long getEventsDump()
Attachment.getEventsDump(),
AttachmentLocal.eventsDumppublic long getEventsMake()
Attachment.getEventsMake(),
AttachmentLocal.eventsMakepublic java.lang.String getHost()
AttachmentLocal.hostpublic java.lang.String getStationName()
void read(java.io.DataInputStream dis)
throws java.io.IOException
dis - data input stream
java.io.IOException - if data stream read error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||