org.jlab.coda.et
Class ProcessData

java.lang.Object
  extended byorg.jlab.coda.et.ProcessData

public class ProcessData
extends java.lang.Object

This class holds all information about an ET process. It parses the information from a stream of data sent by an ET system. There are no processes in Java ET systems.


Field Summary
(package private)  int attachments
          Number of attachments this process created.
(package private)  int[] attIds
          An array of attachment id numbers.
(package private)  int heartbeat
          Heartbeat count.
(package private)  int num
          Unique id number.
(package private)  int pid
          Unix process id.
 
Constructor Summary
ProcessData()
           
 
Method Summary
 int[] getAttachmentIds()
          Get the array of attachment id numbers.
 int getAttachments()
          Get the number of attachments this process created.
 int getHeartbeat()
          Get the heartbeat count.
 int getId()
          Get the process' unique id number.
 int getPid()
          Get the Unix process id.
 void read(java.io.DataInputStream dis)
          Reads the process 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

num

int num
Unique id number.


heartbeat

int heartbeat
Heartbeat count.


pid

int pid
Unix process id.


attachments

int attachments
Number of attachments this process created.


attIds

int[] attIds
An array of attachment id numbers. Only the first "attachments" number of elements are meaningful.

Constructor Detail

ProcessData

public ProcessData()
Method Detail

getId

public int getId()
Get the process' unique id number.


getHeartbeat

public int getHeartbeat()
Get the heartbeat count.


getPid

public int getPid()
Get the Unix process id.


getAttachments

public int getAttachments()
Get the number of attachments this process created.


getAttachmentIds

public int[] getAttachmentIds()
Get the array of attachment id numbers.


read

public void read(java.io.DataInputStream dis)
          throws java.io.IOException
Reads the process information from a data stream which is sent out by an ET system over the network.

Parameters:
dis - data input stream
Throws:
java.io.IOException - if data stream read error