Package com.nt.udc.osanode
Class OSANode
java.lang.Object
com.nt.udc.osanode.OSANode
- All Implemented Interfaces:
AdminIfc
,OSARemoteAdminIfc
- Direct Known Subclasses:
OSAOiNode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
Clears the status table for this nodevoid
protected boolean
Retrieves record statistics for this node.protected OSAR[]
getOSARs()
Returnsnull
Retrieves the most recent, worst status for this nodevoid
boolean
protected boolean
void
reconfig()
void
CallsOSARemoteAdminIfc.reconfig()
void
shutdown()
Stops node processingprotected void
void
startup()
Call that starts a node.protected boolean
protected boolean
storeOSARs
(OSAR[] osars)
-
Field Details
-
logger
-
config
-
narRouter
-
processingInterval
protected long processingInterval -
configFile
-
configDir
-
inputDir
-
outputDir
-
scratchDir
-
backupDir
-
logDir
-
nodeid
-
shutdown
protected boolean shutdown -
NODEINIT
-
NODERECONFIG
-
-
Constructor Details
-
OSANode
- Throws:
NodeStartException
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initialize
in interfaceAdminIfc
-
isShutdown
protected boolean isShutdown() -
getOSARs
-
deleteOSARs
protected boolean deleteOSARs() -
storeOSAR
-
storeOSARs
-
shutdown
public void shutdown()Description copied from interface:AdminIfc
Stops node processing- Specified by:
shutdown
in interfaceAdminIfc
- Specified by:
shutdown
in interfaceOSARemoteAdminIfc
-
shuttingDown
protected void shuttingDown() -
clearStatus
-
clearStatus
public void clearStatus()Description copied from interface:AdminIfc
Clears the status table for this node- Specified by:
clearStatus
in interfaceAdminIfc
- Specified by:
clearStatus
in interfaceOSARemoteAdminIfc
-
getStatus
Description copied from interface:AdminIfc
Retrieves the most recent, worst status for this node- Specified by:
getStatus
in interfaceAdminIfc
- Specified by:
getStatus
in interfaceOSARemoteAdminIfc
- Returns:
- StatusMessage reflecting the most recent, worst status for this node.
-
checkInputDir
protected boolean checkInputDir() -
reconfig
public void reconfig()- Specified by:
reconfig
in interfaceOSARemoteAdminIfc
-
isReconfigPending
public boolean isReconfigPending()- Specified by:
isReconfigPending
in interfaceOSARemoteAdminIfc
-
reconfigure
CallsOSARemoteAdminIfc.reconfig()
- Specified by:
reconfigure
in interfaceAdminIfc
- Throws:
NodeStartException
-
startup
Call that starts a node. Default implementation is empty.- Specified by:
startup
in interfaceAdminIfc
- Throws:
NodeStartException
-
getPerformanceMetrics
Returnsnull
- Specified by:
getPerformanceMetrics
in interfaceAdminIfc
- Returns:
- Object representing the performance information for this node
-
getAndResetRecordStatistics
Description copied from interface:AdminIfc
Retrieves record statistics for this node. (Record statistics are different from performance information, in that the record statistics get reset to 0 periodically, usually every hour.)- Specified by:
getAndResetRecordStatistics
in interfaceAdminIfc
- Returns:
- An object that contains the statistics for the previous polling period.
-