public abstract class OSANode extends java.lang.Object implements OSARemoteAdminIfc
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
backupDir |
protected Config |
config |
protected java.io.File |
configDir |
protected java.io.File |
configFile |
protected java.io.File |
inputDir |
protected java.io.File |
logDir |
protected Logger |
logger |
protected OSARFileMngr |
narRouter |
protected java.lang.String |
nodeid |
static java.lang.String |
NODEINIT |
static java.lang.String |
NODERECONFIG |
protected java.io.File |
outputDir |
protected long |
processingInterval |
protected java.io.File |
scratchDir |
protected boolean |
shutdown |
| Constructor and Description |
|---|
OSANode(java.lang.String[] args) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkInputDir() |
void |
clearStatus()
Clears the status table for this node
|
void |
clearStatus(StatusMessage sm) |
protected boolean |
deleteOSARs() |
ReadOnlyStatisticsMonitorIfc |
getAndResetRecordStatistics()
Retrieves record statistics for this node.
|
protected OSAR[] |
getOSARs() |
DCNodePerformanceIfc |
getPerformanceMetrics()
Returns
null |
StatusMessage |
getStatus()
Retrieves the most recent, worst status for this node
|
void |
initialize() |
boolean |
isReconfigPending() |
protected boolean |
isShutdown() |
void |
reconfig() |
void |
reconfigure()
Calls
OSARemoteAdminIfc.reconfig() |
void |
shutdown()
Stops node processing
|
protected void |
shuttingDown() |
void |
startup()
Call that starts a node.
|
protected boolean |
storeOSAR(OSAR osar) |
protected boolean |
storeOSARs(OSAR[] osars) |
protected Logger logger
protected Config config
protected OSARFileMngr narRouter
protected long processingInterval
protected java.io.File configFile
protected java.io.File configDir
protected java.io.File inputDir
protected java.io.File outputDir
protected java.io.File scratchDir
protected java.io.File backupDir
protected java.io.File logDir
protected java.lang.String nodeid
protected boolean shutdown
public static final java.lang.String NODEINIT
public static final java.lang.String NODERECONFIG
public OSANode(java.lang.String[] args)
throws NodeStartException
NodeStartExceptionpublic void initialize()
initialize in interface AdminIfcprotected boolean isShutdown()
protected OSAR[] getOSARs()
protected boolean deleteOSARs()
protected boolean storeOSAR(OSAR osar)
protected boolean storeOSARs(OSAR[] osars)
public void shutdown()
AdminIfcshutdown in interface AdminIfcshutdown in interface OSARemoteAdminIfcprotected void shuttingDown()
public void clearStatus(StatusMessage sm)
public void clearStatus()
AdminIfcclearStatus in interface AdminIfcclearStatus in interface OSARemoteAdminIfcpublic StatusMessage getStatus()
AdminIfcgetStatus in interface AdminIfcgetStatus in interface OSARemoteAdminIfcprotected boolean checkInputDir()
public void reconfig()
reconfig in interface OSARemoteAdminIfcpublic boolean isReconfigPending()
isReconfigPending in interface OSARemoteAdminIfcpublic void reconfigure()
throws NodeStartException
OSARemoteAdminIfc.reconfig()reconfigure in interface AdminIfcNodeStartExceptionpublic void startup()
throws NodeStartException
startup in interface AdminIfcNodeStartExceptionpublic DCNodePerformanceIfc getPerformanceMetrics()
nullgetPerformanceMetrics in interface AdminIfcpublic ReadOnlyStatisticsMonitorIfc getAndResetRecordStatistics()
AdminIfcgetAndResetRecordStatistics in interface AdminIfc