|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.operations.utils.NodeUtility
org.mbari.siam.operations.utils.PublishToRBNB
public class PublishToRBNB
| Nested Class Summary | |
|---|---|
protected class |
PublishToRBNB.InstrumentDesc
Class to encapsulate one Instrument |
protected class |
PublishToRBNB.PubProperties
Class to encapsulate properties, either globally or particular to one device |
protected class |
PublishToRBNB.RecordDesc
Class to encapsulate one RecordType from one Instrument |
protected class |
PublishToRBNB.ShutdownThread
Thread passed to addShutdownHook to shutdown the application |
protected class |
PublishToRBNB.UpdateTask
TimerTask to update all instruments |
| Nested classes/interfaces inherited from class org.mbari.siam.operations.utils.NodeUtility |
|---|
NodeUtility.InvalidOption |
| Field Summary | |
|---|---|
protected java.util.Calendar |
_calendar
|
protected long[] |
_deviceIDs
|
protected long[] |
_excludeIDs
|
protected PublishToRBNB.PubProperties |
_globalProps
|
protected java.lang.String |
_home
|
protected java.util.Vector |
_instruments
|
protected static org.apache.log4j.Logger |
_log4j
|
protected Node |
_node
|
protected java.lang.String |
_propertyFile
|
protected SiamProperties |
_props
|
protected long |
_pubSize
|
protected java.lang.String |
_rbnbServer
|
protected long |
_runDuration
|
protected long |
_startTime
|
protected java.util.Timer |
_timer
|
protected PacketFilter[] |
filter
|
| Fields inherited from class org.mbari.siam.operations.utils.NodeUtility |
|---|
_nodeHost, _nodeURL |
| Constructor Summary | |
|---|---|
PublishToRBNB()
Constructor |
|
| Method Summary | |
|---|---|
protected long[] |
addOneLong(long[] array,
java.lang.String newStr)
Routine to add one long value to a long[] array |
protected void |
detachInstruments()
Call detach() for each InstrumentDesc |
protected long |
getDuration(java.lang.String s)
Get command-line arg expressed a duration, as nnn[s|m|h|d] [p] ' |
void |
getInstruments(Node node)
Get the SIAM Instruments to process |
protected long[] |
getLongArrayProperty(SiamProperties props,
java.lang.String name)
Kludge that calls _props.getIntegerArrayProperty, and copies to long[] array. |
protected boolean |
isExcluded(long id)
Return true if id is in _excludeIDs[] |
static void |
main(java.lang.String[] args)
Main() routine of application |
SiamProperties |
openPropertiesFile(java.lang.String[] args)
Find, open, and read the Properties file |
void |
printParms()
Print operational parameters to System.out |
void |
printUsage()
Print Usage message |
boolean |
processArgs(java.lang.String[] args)
Process the command-line arguments |
void |
processNode(Node node)
Process the data from the SIAM Node, publishing to the RBNB Host |
void |
readGlobalProperties()
Read the properties from the Properties file into the _globalProps object |
protected void |
updateInstruments(long duration)
Call update() for each InstrumentDesc |
| Methods inherited from class org.mbari.siam.operations.utils.NodeUtility |
|---|
getHostName, getNodeURL, processArguments, processArguments, processCustomOption, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
protected java.util.Calendar _calendar
protected Node _node
protected SiamProperties _props
protected PublishToRBNB.PubProperties _globalProps
protected long _startTime
protected long _runDuration
protected long _pubSize
protected java.lang.String _rbnbServer
protected java.lang.String _propertyFile
protected java.lang.String _home
protected long[] _deviceIDs
protected PacketFilter[] filter
protected long[] _excludeIDs
protected java.util.Vector _instruments
protected java.util.Timer _timer
| Constructor Detail |
|---|
public PublishToRBNB()
| Method Detail |
|---|
public void processNode(Node node)
throws java.lang.Exception
processNode in class NodeUtilityjava.lang.Exception
public void getInstruments(Node node)
throws java.lang.Exception
java.lang.Exceptionprotected void detachInstruments()
protected void updateInstruments(long duration)
throws java.lang.Exception
java.lang.Exceptionprotected boolean isExcluded(long id)
public SiamProperties openPropertiesFile(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.SecurityException
java.io.FileNotFoundException
java.io.IOException
java.lang.SecurityExceptionpublic void readGlobalProperties()
protected long[] getLongArrayProperty(SiamProperties props,
java.lang.String name)
public boolean processArgs(java.lang.String[] args)
protected long[] addOneLong(long[] array,
java.lang.String newStr)
throws java.lang.NumberFormatException
java.lang.NumberFormatException
protected long getDuration(java.lang.String s)
throws java.text.ParseException,
java.lang.NumberFormatException
java.text.ParseException
java.lang.NumberFormatExceptionpublic void printParms()
public void printUsage()
printUsage in class NodeUtilitypublic static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||