|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.SensorsJMSPublisher
public class SensorsJMSPublisher
SensorsJMSPacketPublisher is the interface from SIAM to the SENSORS project's prototype for CyberInfrastructure. This prototype is part of the NSF funded SNMP project - Scripps-NCSA-MBARI Prototype.
This class instantiates one InstrumentProxy for each SIAM device ID that it finds. The InstrumentProxy is in jar file instrument-proxy.jar, which is generated from the sources found in CVS under sensors/sensors-jms.
| Nested Class Summary | |
|---|---|
protected class |
SensorsJMSPublisher.ProxyContainer
Class to store InstrumentProxy, indexed by ISI ID |
| Field Summary | |
|---|---|
protected static java.text.SimpleDateFormat |
_dateFormatter
|
protected NodeService |
_node
|
protected java.util.Vector |
_proxys
|
protected boolean |
_publish
|
protected java.lang.String |
MESSAGE_VARIABLE_NAME
|
protected java.lang.String |
METADATA_VARIABLE_NAME
|
protected java.lang.String |
NULL_UUID
|
protected java.lang.String |
SENSOR_VARIABLE_NAME
|
protected java.lang.String |
SUMMARY_VARIABLE_NAME
|
protected byte[] |
UUID_KEY
|
| Constructor Summary | |
|---|---|
SensorsJMSPublisher()
Default SensorsJMSPublisher doesn't publish |
|
SensorsJMSPublisher(boolean publish)
Create a SensorsJMSPublisher |
|
| Method Summary | |
|---|---|
protected org.mbari.instrument.InstrumentProxy |
getProxy(long isiId)
Find or create an InstrumentProxy for this ISI ID |
protected java.lang.String |
getUUID(long isiId)
Find the ISI ID for a given device (ISI) ID |
void |
printPacket(DevicePacket pkt)
Print the pkt to System.out |
void |
publishData(DevicePacket pkt)
Publish packet to JMS server. |
void |
serviceInstalled(ServiceEvent event)
Action performed when service installed |
void |
serviceRemoved(ServiceEvent e)
Action performed when service removed |
void |
serviceRequestComplete(ServiceEvent e)
Action performed when service request complete |
void |
serviceSampleLogged(LogSampleServiceEvent event)
Called whenever an InstrumentService logs a sample |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final byte[] UUID_KEY
protected final java.lang.String SENSOR_VARIABLE_NAME
protected final java.lang.String METADATA_VARIABLE_NAME
protected final java.lang.String MESSAGE_VARIABLE_NAME
protected final java.lang.String SUMMARY_VARIABLE_NAME
protected final java.lang.String NULL_UUID
protected static java.text.SimpleDateFormat _dateFormatter
protected java.util.Vector _proxys
protected boolean _publish
protected NodeService _node
| Constructor Detail |
|---|
public SensorsJMSPublisher(boolean publish)
publish - - true to publish to InstrumentProxy, false simply
outputs packets to System.outpublic SensorsJMSPublisher()
| Method Detail |
|---|
public void publishData(DevicePacket pkt)
pkt - DevicePacketpublic void printPacket(DevicePacket pkt)
pkt - DevicePacketpublic void serviceInstalled(ServiceEvent event)
ServiceListener
serviceInstalled in interface ServiceListenerpublic void serviceRemoved(ServiceEvent e)
ServiceListener
serviceRemoved in interface ServiceListenerpublic void serviceRequestComplete(ServiceEvent e)
ServiceListener
serviceRequestComplete in interface ServiceListenerpublic void serviceSampleLogged(LogSampleServiceEvent event)
protected java.lang.String getUUID(long isiId)
protected org.mbari.instrument.InstrumentProxy getProxy(long isiId)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||