|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Thread
org.mbari.siam.registry.RegistryEntry
public class RegistryEntry
RegistryEntry encapsulates one registrant in the InstrumentRegistry. It includes the ability to receive callbacks when the Instrument that it represents posts new data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected java.util.Vector |
_dataListeners
|
protected java.util.Vector |
_dataPackets
|
protected long |
_isiId
|
protected static org.apache.log4j.Logger |
_log4j
|
protected PacketParser |
_parser
|
protected int |
_pktsDropped
|
protected java.lang.String |
_regName
|
protected boolean |
_running
|
protected DeviceService |
_service
|
protected java.lang.String |
_serviceName
|
protected static int |
LOG_MODULUS
|
protected static int |
MAX_QUEUE_SIZE
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
RegistryEntry(DeviceService service,
java.lang.String regName)
Constructor |
|
| Method Summary | |
|---|---|
void |
addDataListener(InstrumentDataListener listener)
Add a InstrumentDataListener |
void |
callDataListeners(SensorDataPacket newData)
Call back the InstrumentDataListeners |
void |
close()
close() method forces the thread to exit |
boolean |
equals(long isiId)
Object equals for InstrumentRegistry.find(long) |
boolean |
equals(java.lang.Object obj)
Object equals for Vector.contains(), or if String, for InstrumentRegistry.find(String) |
boolean |
equals(java.lang.String lookupName)
Object equals for InstrumentRegistry.find(String) |
long |
getId()
Get the ISI ID for this entry's service |
DeviceService |
getService()
Get the DeviceService represented by this entry |
int |
hashCode()
hashCode() for Vector operations |
int |
numDataListeners()
Return number of InstrumentDataLiseners |
java.lang.String |
registryName()
Return registry name that will satisfy InstrumentRegistry.find(String) |
void |
removeDataListener(InstrumentDataListener listener)
Remove a InstrumentDataListener |
void |
run()
run() method for thread. |
java.lang.String |
serviceName()
Return name of the DeviceService |
void |
setPacketParser(PacketParser parser)
Set the PacketParser to use for callDataListeners() |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
protected static final int MAX_QUEUE_SIZE
protected static final int LOG_MODULUS
protected DeviceService _service
protected java.lang.String _regName
protected long _isiId
protected java.lang.String _serviceName
protected PacketParser _parser
protected java.util.Vector _dataListeners
protected java.util.Vector _dataPackets
protected boolean _running
protected int _pktsDropped
| Constructor Detail |
|---|
public RegistryEntry(DeviceService service,
java.lang.String regName)
| Method Detail |
|---|
public DeviceService getService()
public long getId()
getId in class java.lang.Threadpublic void addDataListener(InstrumentDataListener listener)
public void removeDataListener(InstrumentDataListener listener)
public int numDataListeners()
public void setPacketParser(PacketParser parser)
public void callDataListeners(SensorDataPacket newData)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void close()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean equals(java.lang.String lookupName)
public boolean equals(long isiId)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String registryName()
public java.lang.String serviceName()
public java.lang.String toString()
toString in class java.lang.Thread
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||