|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jlab.coda.et.SystemData
This class holds all system level information about an ET system. It parses the information from a stream of data sent by an ET system.
| Field Summary | |
(package private) int |
alive
Flag which specifying whether the ET system is alive. |
(package private) int |
attachments
Count of the current number of attachments. |
(package private) int |
attachmentsMax
Maximum number of attachments allowed in the ET system. |
(package private) int |
endian
Endian of host running the ET system. |
(package private) java.lang.String |
etName
The ET system (file) name. |
(package private) int |
events
Total number of events in a system. |
(package private) int |
eventSize
Size of "normal" events in bytes. |
(package private) int |
eventsOwned
Number of events owned by the system (as opposed to attachments). |
(package private) int |
heartbeat
Heartbeat count of the ET system process. |
(package private) java.lang.String[] |
interfaceAddresses
Dotted-decimal IP addresses of network interfaces on the host. |
(package private) int |
interfaceCount
Number of network interfaces on the host computer. |
(package private) int |
mainPid
Unix pid of the ET system process. |
(package private) java.lang.String[] |
multicastAddresses
Dotted-decimal multicast addresses the UDP server listens on. |
(package private) int |
multicastCount
Number of multicast addresses the UDP server listens on. |
(package private) int |
multicastPort
Port number of the ET UDP multicast listening thread. |
(package private) int |
mutex
System mutex status. |
(package private) int |
processes
Count of the current number of processes. |
(package private) int |
processesMax
Maximum number of processes allowed in the ET system. |
(package private) int |
selects
The number of ints in a station's select array. |
(package private) int |
share
Flag specifying whether the operating system can share mutexes between processes. |
(package private) int |
statAddMutex
Add-station mutex status. |
(package private) int |
stations
Count of the current number of stations in the linked list (are either active or idle). |
(package private) int |
stationsMax
Maximum number of station allowed in the ET system. |
(package private) int |
statMutex
Station mutex status. |
(package private) int |
tcpPort
Port number of the ET TCP server. |
(package private) int |
temps
Count of the current amount of temporary events. |
(package private) int |
tempsMax
Maximum number of temporary events allowed in the ET system. |
(package private) int |
udpPort
Port number of the ET UDP broadcast listening thread. |
| Constructor Summary | |
SystemData()
|
|
| Method Summary | |
boolean |
alive()
Specifies whether the ET system is alive. |
int |
getAttachments()
Get the current number of attachments. |
int |
getAttachmentsMax()
Get the maximum number of attachments allowed in the ET system. |
int |
getEndian()
Get the endian value of the host running the ET system. |
java.lang.String |
getEtName()
Get the ET system (file) name. |
int |
getEvents()
Get the total number of events in a system. |
int |
getEventSize()
Get the size of "normal" events in bytes. |
int |
getEventsOwned()
Get the number of events owned by the system (not by attachments). |
int |
getHeartbeat()
Get the heartbeat count of the ET system process. |
java.lang.String[] |
getInterfaceAddresses()
Get the dotted-decimal IP addresses of network interfaces on the host. |
int |
getInterfaces()
Get the number of network interfaces on the host computer. |
int |
getMainPid()
Get the Unix pid of the ET system process. |
java.lang.String[] |
getMulticastAddresses()
Get the dotted-decimal multicast addresses the UDP server listens on. |
int |
getMulticastPort()
Get the port number of the ET UDP multicast listening thread. |
int |
getMulticasts()
Get the number of multicast addresses the UDP server listens on. |
int |
getMutex()
Get the system mutex status. |
int |
getProcesses()
Get the current number of processes. |
int |
getProcessesMax()
Get the maximum number of processes allowed in the ET system. |
int |
getSelects()
Get the number of ints in a station's select array. |
int |
getShare()
Get the value specifying whether the operating system can share mutexes between processes. |
int |
getStatAddMutex()
Get the add-station mutex status. |
int |
getStations()
Get the current number of stations in the linked list (either active or idle). |
int |
getStationsMax()
Get the maximum number of station allowed in the ET system. |
int |
getStatMutex()
Get the station mutex status. |
int |
getTcpPort()
Get the port number of the ET TCP server. |
int |
getTemps()
Get the current number of temporary events. |
int |
getTempsMax()
Get the maximum number of temporary events allowed in the ET system. |
int |
getUdpPort()
Get the port number of the ET UDP broadcast listening thread. |
(package private) void |
read(java.io.DataInputStream dis)
Reads the system level 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 alive
int heartbeat
int temps
int stations
SystemCreate.stationsint attachments
SystemCreate.attachmentsint processes
int eventsOwned
int mutex
Constants.mutexLocked if
locked and Constants.mutexUnlocked otherwise. This is only
relevant in C ET systems, since in Java, mutexes cannot be tested without
possibility of blocking. This is not boolean for C ET system compatibility.
SystemCreate#systemLock.int statMutex
Constants.mutexLocked if
locked and Constants.mutexUnlocked otherwise. This is only
relevant in C ET systems, since in Java, mutexes cannot be tested without
possibility of blocking. This is not boolean for C ET system compatibility.
SystemCreate#stationLock.int statAddMutex
Constants.mutexLocked
if locked and Constants.mutexUnlocked otherwise. This is only
relevant in C ET systems as this mutex is not used in Java systems.
int endian
Constants.endianBig or Constants.endianLittle.
int share
Constants.mutexShare if they can be
shared and Constants.mutexNoShare otherwise. This is not
relevant in Java ET systems.
int mainPid
int selects
Constants.stationSelectIntsint events
SystemConfig.numEvents,
SystemCreate.eventsint eventSize
SystemConfig.eventSizeint tempsMax
int stationsMax
SystemConfig.stationsMaxint attachmentsMax
SystemConfig.attachmentsMaxint processesMax
int tcpPort
SystemConfig.serverPortint udpPort
SystemConfig.udpPortint multicastPort
SystemConfig.multicastPortint interfaceCount
int multicastCount
java.lang.String[] interfaceAddresses
java.lang.String[] multicastAddresses
SystemConfig.getMulticastStrings(),
SystemConfig.getMulticastAddrs(),
SystemConfig.addMulticastAddr(java.lang.String),
SystemConfig.removeMulticastAddr(java.lang.String)java.lang.String etName
SystemCreate.SystemCreate(java.lang.String, org.jlab.coda.et.SystemConfig),
SystemCreate.name| Constructor Detail |
public SystemData()
| Method Detail |
public boolean alive()
public int getHeartbeat()
public int getTemps()
public int getStations()
public int getAttachments()
public int getProcesses()
public int getEventsOwned()
public int getMutex()
Constants.mutexLocked
if locked and Constants.mutexUnlocked otherwise. This is only
relevant in C ET systems as this mutex is not used in Java systems.
public int getStatMutex()
Constants.mutexLocked
if locked and Constants.mutexUnlocked otherwise. This is only
relevant in C ET systems as this mutex is not used in Java systems.
public int getStatAddMutex()
Constants.mutexLocked
if locked and Constants.mutexUnlocked otherwise. This is only
relevant in C ET systems as this mutex is not used in Java systems.
public int getEndian()
Constants.endianBig or
Constants.endianLittle.
public int getShare()
Constants.mutexShare
if they can be shared and Constants.mutexNoShare otherwise.
It is not relevant in Java ET systems.
public int getMainPid()
public int getSelects()
Constants.stationSelectIntspublic int getEvents()
SystemConfig.numEvents,
SystemCreate.eventspublic int getEventSize()
SystemConfig.eventSizepublic int getTempsMax()
public int getStationsMax()
SystemConfig.stationsMaxpublic int getAttachmentsMax()
SystemConfig.attachmentsMaxpublic int getProcessesMax()
public int getTcpPort()
SystemConfig.serverPortpublic int getUdpPort()
SystemConfig.udpPortpublic int getMulticastPort()
SystemConfig.multicastPortpublic int getInterfaces()
public int getMulticasts()
public java.lang.String[] getInterfaceAddresses()
public java.lang.String[] getMulticastAddresses()
SystemConfig.getMulticastStrings(),
SystemConfig.getMulticastAddrs(),
SystemConfig.addMulticastAddr(java.lang.String),
SystemConfig.removeMulticastAddr(java.lang.String)public java.lang.String getEtName()
SystemCreate.SystemCreate(java.lang.String, org.jlab.coda.et.SystemConfig),
SystemCreate.name
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 | ||||||||