Package com.nt.udc.ndk.node
Class DCNode
java.lang.Object
com.nt.udc.ndk.node.DCNode
- All Implemented Interfaces:
AdminIfc
,ConfigIfc
,LoggerIfc
,NodeHealthIfc
,NodeStateManagementIfc
,PropertyIfc
,StateManagementIfc
- Direct Known Subclasses:
EINode
,MXAggregatorNode
,OINode
,PartitionedDCNode
,ProcessorNode
public abstract class DCNode
extends Object
implements AdminIfc, ConfigIfc, LoggerIfc, NodeHealthIfc, PropertyIfc, NodeStateManagementIfc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected File
protected ConfigIfc
An instance of a ConfigIfc class.protected String
protected File
protected File
protected String
protected ArrayList
<DCStreamHandler> static final long
protected DCStreamHandler
The DCStreamHandler class manages all access to all streams/files that are used to transfer data between nodes.protected Timer
protected boolean
protected boolean
protected NARStreamHandler
protected long
protected long
protected long
protected long
protected String
static final String
protected File
protected Logger
An instance of a LoggerIfc class that will be used to write data to the log file.protected String
protected String
protected DCNodePerformance
protected String
static final String
static final String
protected long
Time in millis that the node startedprotected static String
static final String
static final String
static final String
static final String
protected long
Time interval at which the node will check for data.protected boolean
Indicates whether the node is being reconfiguredprotected boolean
protected File
protected boolean
Indicates whether the node is runningprotected StateManager
protected File
static final String
protected File
Fields inherited from interface com.nt.udc.ndk.node.LoggerIfc
FC_CONFIGURATION, FC_CONNECTIVITY, FC_INITIALIZATION, FC_INTERNALERROR, FC_INVALIDDATA, FC_NODE_CONTROL, FC_RESOURCES, FC_SECURITY, FC_SERVER_CONTROL, FC_UNDEFINED, SF_CONF_CHANGE_ERROR, SF_CONF_CONFIG_FAIL, SF_CONF_ERR_NODE_CONF, SF_CONF_INV_FTP_CONF, SF_CONF_INV_NODE_CONF, SF_CONF_INV_PARAM, SF_CONF_INV_PARAM_VAL, SF_CONF_INV_REM_DIR, SF_CONF_MISSING_PARM, SF_CONF_MISSING_PARM2, SF_CONF_NM_CONF_ERROR, SF_CONF_NO_CONFIG, SF_CONF_NO_FTP_INT, SF_CONF_NODE_CREATION, SF_CONF_NODE_START, SF_CONF_NPL_CRITICAL, SF_CONF_NPL_ERROR, SF_CONF_READ_ERROR, SF_CONF_READ_PROPS, SF_CONF_SAVE_ERROR, SF_CONF_SOCKET_INIT, SF_CONF_VER_VALIDATION, SF_CONN_DB_CON_ERR, SF_CONN_DB_CON_LOST, SF_CONN_DEGRADED_ERR, SF_CONN_ECE_CON_ERR, SF_CONN_ERR_NODEINFO, SF_CONN_ERR_RCV_DATA, SF_CONN_ERR_SEND_ACK, SF_CONN_ERROR_TACHYON_USAGE, SF_CONN_FAILED_TO_RECEIVE_RESPONSE, SF_CONN_FILE_READ_ERR, SF_CONN_FTP_ERROR, SF_CONN_FTP_ERROR2, SF_CONN_FTP_LOGIN, SF_CONN_INTERFACING_CON_ERR, SF_CONN_INVALID_TACHYON_RECORD, SF_CONN_LDAP_CONNECT, SF_CONN_LOST_NM, SF_CONN_NM_API_ERR, SF_CONN_PDU_NULL, SF_CONN_POLL_ERR, SF_CONN_SNMP_SESS_OPEN_FAIL, SF_CONN_TIMED_OUT, SF_DATA_AGGR_ERROR, SF_DATA_ATTR_CREATE, SF_DATA_ATTR_PARSE, SF_DATA_ATTR_SHIFT, SF_DATA_CANNOT_ENCODE, SF_DATA_CANT_ACK, SF_DATA_CANT_ENCODE, SF_DATA_CONV_STR_TO_N, SF_DATA_CONV_TO_STR, SF_DATA_CONVERT_ATTR, SF_DATA_DATA_EXPIRED, SF_DATA_DATA_MISSING, SF_DATA_DATA_PROC_ERR, SF_DATA_ENCODE_ERR, SF_DATA_ERR_CREATE, SF_DATA_ERR_SEND_ACK, SF_DATA_ERROR_IN_NPL, SF_DATA_ERROR_ON_ACK, SF_DATA_FILE_DATA, SF_DATA_FILE_PROC_ERR, SF_DATA_FORMAT_ERROR, SF_DATA_IE_INVALID, SF_DATA_IE_MISSING, SF_DATA_INPUT_INVALID, SF_DATA_INV_ATT_TYPE, SF_DATA_INV_ATTR_NPL, SF_DATA_INV_RECORD, SF_DATA_INV_TRAF_VOL, SF_DATA_JDBC_DRIVER_ERR, SF_DATA_KEY_CREATE, SF_DATA_MISSING_ATTRS, SF_DATA_MSG_TOO_SMALL, SF_DATA_MSG_TYPE, SF_DATA_NAR_IS_NULL, SF_DATA_NO_DATA_FILE, SF_DATA_NO_OPT_IE, SF_DATA_REC_INCOMP, SF_DATA_RECORD_PROC, SF_DATA_RECORD_SAVE, SF_DATA_SRC_READ_ERR, SF_DATA_UNABLE_COMPLETE, SF_DATA_UNEXP_NAR, SF_DATA_UNEXPECTED, SF_DATA_VAL_NOT_FOUND, SF_DATA_WRONG_DECODER, SF_INIT_DB_CON_ERR, SF_INIT_DIR_CON_ERR, SF_INIT_IO_ERR, SF_INIT_LDM, SF_INIT_LDM_RUN, SF_INIT_NODE_CONFIG, SF_INIT_NODE_CREATION, SF_INIT_NODE_INIT, SF_INIT_NODE_START, SF_INIT_RDM, SF_INIT_RDM_RUN, SF_INIT_REG_ERROR, SF_INIT_RULE_LOAD_ERR, SF_INIT_SOCKET_CREATE, SF_INIT_SOCKET_INIT, SF_INT_ERR_ETRACE, SF_INT_ERR_EXCEPTION, SF_INT_ERR_EXPIRE_ERR, SF_INT_ERR_FIELD_NULL, SF_INT_ERR_PROC_ERR, SF_INT_ERR_SHUTDOWN, SF_NC_ERR_IN_NODE, SF_NC_ERR_MNG_SERVER, SF_NC_ERR_NODE_STATE, SF_NC_ERR_PROC_DATA, SF_NC_ERR_RESTARTING, SF_NC_ERR_STARTING, SF_NC_ERR_STOPPING, SF_NC_ERR_UNHEALTHY, SF_NC_NODE_CONF_ERROR, SF_NC_NODE_SHUTDOWN, SF_RES_CPU_MAJOR, SF_RES_CPU_MINOR, SF_RES_CPU_USAGE_ERR, SF_RES_DISK_CRITICAL, SF_RES_DISK_MINOR, SF_RES_DISK_STATUS, SF_RES_DISK_USAGE, SF_RES_ERR_DATA_READ, SF_RES_ERR_DATA_REM, SF_RES_ERR_DB_CLOSE, SF_RES_ERR_DB_OP, SF_RES_ERR_DEL_ENTRY, SF_RES_ERR_DIR_CLOSE, SF_RES_ERR_DIR_CREATE, SF_RES_ERR_DIR_DELETE, SF_RES_ERR_DIR_OPEN, SF_RES_ERR_DIR_PROC, SF_RES_ERR_DIR_READ, SF_RES_ERR_DIR_WRITE, SF_RES_ERR_ENT_CREATE, SF_RES_ERR_FILE_CLOSE, SF_RES_ERR_FILE_CREAT, SF_RES_ERR_FILE_DEL, SF_RES_ERR_FILE_MOVE, SF_RES_ERR_FILE_NAME, SF_RES_ERR_FILE_OPEN, SF_RES_ERR_FILE_PROC, SF_RES_ERR_FILE_READ, SF_RES_ERR_FILE_REN, SF_RES_ERR_FILE_WRITE, SF_RES_ERR_IN_TRANS, SF_RES_ERR_INST_CLASS, SF_RES_ERR_INST_REC, SF_RES_ERR_IO_ERR, SF_RES_ERR_OPEN_TRANS, SF_RES_ERR_READ_DU, SF_RES_ERR_SOCK_CLOSE, SF_RES_ERR_SOCK_CREAT, SF_RES_ERR_SOCK_OPEN, SF_RES_ERR_SOCK_WRITE, SF_RES_ERR_TABLE_ACC, SF_RES_ERR_TABLE_CLOS, SF_RES_ERR_TABLE_OPEN, SF_RES_ERR_TIMER_SCHED, SF_RES_ERR_USING_Q, SF_RES_IS_NULL, SF_RES_MEM_MAJOR, SF_RES_MEM_WARNING, SF_RES_NO_LICENSE, SF_RES_NODE_STATE_R, SF_RES_NODE_STATE_W, SF_SEC_NO_USER_AUTH, SF_SEC_USER_AUTH_FAIL, SF_SEC_USER_CFG_FAIL, SF_SRV_CNTRL, SF_UND_INTERRUPTED, SF_UND_SHUTDOWN_ERR
Fields inherited from interface com.nt.udc.ndk.node.PropertyIfc
ENVIRONMENT, RUNTIME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNodeEventListener
(NodeEventListener nodeEventListener) void
backup()
Empty implementationvoid
Clears the status table for the nodevoid
RMI method that clears the worst status currently in existence for the node.void
clearStatus
(String faultCategory, String specificFault) Clears all log messages with a given fault category, and specific fault type.void
createCounters
(String nodeID) Retrieves record statistics for this node.Returns the node's backup directory.Returns the node's configuration Object.abstract String
Returns the node's configuration directory.Returns the node's configuration file.Returns the DCStreamHandler object that this node is using for inter-node communication.getDCStreamHandler
(int i) final String
Returns the node's home directory.Get the input record Statistics Monitor.Retrieves a configuration value for this node for the given keyReturns the node's log directory.Returns the node's logger.abstract String
abstract String
final String
Returns Node's IDReturns the Node's StateManager object.Get the output record Statistics Monitor.Returns the stream handler's node performance objectgetProperty
(String type, String key) Retrieves the property value for the specified type and key.String[]
getPropertyKeys
(String type) Retrieve a list of 'property keys' for the given type subset.String[]
Retrieve a list of 'property type' subsets.Returns the node's scratch directory.Returns the type of state management this node is using.Returns the Node's StateManager object.RMI call that returns the most recent worst status that currently exists for the node.Returns the node's stream handler.getStreamHandler
(int i) Returns the node's suspense directory.void
void
Default behaviour is to check the NARFileManager's input to see if anything has changed, and either raise or clear the Silent Input alarm.long
boolean
boolean
This method is part of the NodeHealthIfc interface.boolean
boolean
Returns whether the derived node can save and restore its state.boolean
Returns whether the node state is used (and whether the node can be recovered.)boolean
RMI call that indicates if a reconfigure operation is pending in an DC process.protected boolean
Indicates whether the node is being reconfigured for warm restart.boolean
protected boolean
Indicates whether the node is running, by returning the value ofshutdown
boolean
Returns whether the node state is used (and whether the node can be recovered.)void
logCritical
(String faultCategory, String specificFault, String additionalFaultText, Exception exception) Logs a Critical Error message (which is indicated with a red alarm) with the given text.void
void
Do NOT use this method for Release 3.3 or later.void
Logs an informational message (no alarm is generated)void
logMajor
(String faultCategory, String specificFault, String additionalFaultText, Exception exception) Logs a Major Error message (which is indicated with a Orange alarm) with the given text.void
logMinor
(String faultCategory, String specificFault, String additionalFaultText, Exception exception) Logs a Minor Error message (which is indicated with a yellow alarm) with the given text.void
Logs a trace message (no alarm is generated).void
logWarning
(String message, boolean autoClear, Exception exception) Do NOT use this method for Release 3.3 or later.void
logWarning
(String faultCategory, String specificFault, String additionalFaultText, Exception exception) Logs a Warning message (which is indicated with a blue alarm) with the given text.void
Call that reconfigures a DC node process.void
This method is part of the NodeHealthIfc interface.void
rejectTransaction
(String transactionId) void
Tells the Node to restore its state from disk.void
Tells the Node to save its state to disk.void
Tells the Node to save its state to disk.void
Sets the node's configuration Object.void
setDCStreamHandler
(DCStreamHandler handler) Sets the DCStreamHandler object that this node is using for inter-node communication.void
setDCStreamHandler
(DCStreamHandler handler, int i) protected void
setIsReconfiguringFlag
(boolean value) Set value ofreconfiguring
flag to true or false.void
Sets a configuration value for this node with the given keyvoid
setProperty
(String type, String key, String value) Set the property value for the specified type and key.protected void
This method allows the node to set it's SNMP Trap Generator, so that when severe messages are sent to the logger they can be sent to SNMP Trap Hosts that are listening.void
Sets the node's stream handler.void
setStreamHandler
(DCStreamHandler sh, int i) void
shutdown()
Performs all necessary functions to stop this node and any processes that it has created.protected void
Shutdown the DCStreamHandler.protected void
This method is should be overridden if a particular derived node needs to do some processing just prior to the node being shut down.void
startup()
Call that starts a node.void
This method is part of the NodeHealthIfc interface.boolean
-
Field Details
-
DEFAULT_PROCESSING_INTERVAL
public static final long DEFAULT_PROCESSING_INTERVAL- See Also:
-
OCOMC_POD_NAME
- See Also:
-
KUBERNETES_POD_NAME
- See Also:
-
OCOMC_NODE_ID
- See Also:
-
OCOMC_REPLICA_INDEX
- See Also:
-
OCOMC_STS_NAME
- See Also:
-
logger
An instance of a LoggerIfc class that will be used to write data to the log file. -
config
An instance of a ConfigIfc class. When instantiated, this class reads the configuration file that is sent as an argument to this program and stores all the configuration parameters in the file. The generated configuation table is sent to all other data collector functions as constructor parameters. -
fileMngr
The DCStreamHandler class manages all access to all streams/files that are used to transfer data between nodes.
Currently, this provides file management capabilities. -
dcHandls
-
processingInterval
protected long processingIntervalTime interval at which the node will check for data. Default is 20 seconds. -
udcHome
-
configFile
-
configDir
-
scratchDir
-
backupDir
-
logDir
-
suspenseDir
-
nodeid
-
majorType
-
minorType
-
configClass
-
configGUIClass
-
shutdown
protected boolean shutdownIndicates whether the node is running -
nodeStartTime
protected long nodeStartTimeTime in millis that the node started -
reconfiguring
protected boolean reconfiguringIndicates whether the node is being reconfigured -
node_pm
-
NODEINIT
-
NODERECONFIG
-
savingStateOn
protected boolean savingStateOn -
stateManager
-
nodeStateFileName
-
inputMonitoringEnabled
protected boolean inputMonitoringEnabled -
inputMonitoringSilenceInterval
protected long inputMonitoringSilenceInterval -
generalMonitoringTimer
-
inputMonitoringAlarmRaised
protected boolean inputMonitoringAlarmRaised -
inputMonitoringPreviousCount
protected long inputMonitoringPreviousCount -
inputMonitoringNARFileMgr
-
inputMonitoringPollingInterval
protected long inputMonitoringPollingInterval -
inputMonitoringSilenceCounter
protected long inputMonitoringSilenceCounter -
inputMonitoringSilenceIntervalText
-
TRANSACTION_NAR_ID
- See Also:
-
-
Constructor Details
-
DCNode
public DCNode()Default Constructor; instantiates objects necessary to define the DCNodeTypeIfc methods. -
DCNode
Constructor for the class used to instantiate all objects needed by this node. Sets up directory space for this node under the following directories belowudcHome
:
invalid input: ' ' /backup
invalid input: ' ' /config
invalid input: ' ' /log
invalid input: ' ' /scratch- Parameters:
args
- Values are as follows:
arg[0] Numeric identifier for this node.
arg[1] Directory location for the UDC installation (udcHome). All sub-directories created for the node will reside below this directory.
arg[2] Location of this node's Configuration file- Throws:
NodeStartException
-
-
Method Details
-
createCounters
-
initialize
- Specified by:
initialize
in interfaceAdminIfc
- Throws:
NodeStartException
-
addNodeEventListener
-
getNodeEventListeners
-
getDCNodeType
-
getLogger
Returns the node's logger. -
setConfig
Sets the node's configuration Object. -
getConfig
Returns the node's configuration Object. -
setStreamHandler
Sets the node's stream handler. -
setStreamHandler
-
getStreamHandler
Returns the node's stream handler. -
getStreamHandler
-
getHomeDir
Returns the node's home directory. -
getConfigFile
Returns the node's configuration file. -
getConfigDir
Returns the node's configuration directory. -
getScratchDir
Returns the node's scratch directory. -
getBackupDir
Returns the node's backup directory. -
getSuspenseDir
Returns the node's suspense directory. -
getLogDir
Returns the node's log directory. -
backup
public void backup()Empty implementation -
getNodeId
Returns Node's ID- Returns:
null
-
getPerformanceMetrics
Returns the stream handler's node performance object- Specified by:
getPerformanceMetrics
in interfaceAdminIfc
- Returns:
- DCNodePerformanceIfc object
-
shutdown
public void shutdown()Performs all necessary functions to stop this node and any processes that it has created. -
clearStatus
public void clearStatus()Clears the status table for the node- Specified by:
clearStatus
in interfaceAdminIfc
- Specified by:
clearStatus
in interfaceLoggerIfc
-
clearStatus
RMI method that clears the worst status currently in existence for the node. -
getStatus
RMI call that returns the most recent worst status that currently exists for the node. -
reconfigure
Call that reconfigures a DC node process. This method performs node reconfiguration processing specific to a DCNode object. Derived classes that need to perform their own reconfiguration processing should overridereconfigure()
and then call this method from there. This method sets a flag indicating this node is in the reconfiguration state. The most derived class should use thesetIsReconfiguringFlag
method just before returning from itsreconfigure()
method to set the reconfiguration state to false.- Specified by:
reconfigure
in interfaceAdminIfc
- Throws:
NodeStartException
-
startup
Call that starts a node. This method performs startup processing specific to a DCNode object. Derived classes that need to perform their own startup processing should overridestartup()
and then call this method first from there.- Specified by:
startup
in interfaceAdminIfc
- Throws:
NodeStartException
-
isReconfigPending
public boolean isReconfigPending()RMI call that indicates if a reconfigure operation is pending in an DC process. Empty method.- Returns:
false
-
getItem
Retrieves a configuration value for this node for the given key -
setItem
Sets a configuration value for this node with the given key -
getProperty
Retrieves the property value for the specified type and key.- Specified by:
getProperty
in interfacePropertyIfc
- Parameters:
type
- A String indicating the subset to which the property belongs (i.e. environment, runtime, etc.)key
- A String indicating the specific property to be retrieved- Returns:
- The value of the specified property, or
null
if the property has not been set
-
getPropertyTypes
Retrieve a list of 'property type' subsets.- Specified by:
getPropertyTypes
in interfacePropertyIfc
- Returns:
- A String[] of the various 'types' of properties
-
getPropertyKeys
Retrieve a list of 'property keys' for the given type subset.- Specified by:
getPropertyKeys
in interfacePropertyIfc
- Returns:
- A String[] containing the various 'keys' for the given type
-
setProperty
Set the property value for the specified type and key.- Specified by:
setProperty
in interfacePropertyIfc
- Parameters:
type
- A String indicating the subset the property to which the property belongs (i.e. init, runtime, etc.)key
- A String indicating the specific property to be setvalue
- The value of the property to be set. Anull
value will cause the current property to be unset.- Throws:
IllegalArgumentException
- if type or key is null
-
logError
Description copied from interface:LoggerIfc
Do NOT use this method for Release 3.3 or later. Logs an Error message (which is indicated with a red alarm) with the given text and clearing capabilities.- Specified by:
logError
in interfaceLoggerIfc
- Parameters:
message
- Desired text for the error message to be written into the log file.autoClear
- iftrue
, this message will clear any previous alarm in the system, otherwise a red alarm and an error message will be logged.exception
- The exception which causes this alarm.- See Also:
-
logWarning
Description copied from interface:LoggerIfc
Do NOT use this method for Release 3.3 or later. Logs a Warning message (which is indicated with a yellow alarm) with the given text and clearing capabilities- Specified by:
logWarning
in interfaceLoggerIfc
- Parameters:
message
- Desired text for the error message to be written into the log file.autoClear
- iftrue
, this message will clear any previous alarm in the system, otherwise a yellow alarm and an warning message will be logged.exception
- The exception which causes this alarm.- See Also:
-
logInfo
Description copied from interface:LoggerIfc
Logs an informational message (no alarm is generated) -
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceLoggerIfc
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceLoggerIfc
-
logDebug
-
logTrace
Description copied from interface:LoggerIfc
Logs a trace message (no alarm is generated). This message will only be written out if the debugLevel is set appropriately via the node's configuration at runtime. -
logCritical
public void logCritical(String faultCategory, String specificFault, String additionalFaultText, Exception exception) Description copied from interface:LoggerIfc
Logs a Critical Error message (which is indicated with a red alarm) with the given text. The Critical severity level indicates that a service affecting condition has occurred and an immediate corrective action is required. Such a severity can be reported, for example, when a managed object becomes totally out of service and its capability must be restored.- Specified by:
logCritical
in interfaceLoggerIfc
- Parameters:
faultCategory
- A general category of the error. One of Initialization, Configuration, Connectivity Invalid data, Resources, Internal ErrorspecificFault
- A clearly worded description of this fault condition, with NO variable component (i.e. node names, port numbers, time stamps, etc.).additionalFaultText
- Any desirable additional text. The variable information.exception
- exception which causes this critical issue.
-
logMajor
public void logMajor(String faultCategory, String specificFault, String additionalFaultText, Exception exception) Description copied from interface:LoggerIfc
Logs a Major Error message (which is indicated with a Orange alarm) with the given text. The Major severity level indicates that a service affecting condition has developed and an urgent corrective action is required. Such a severity can be reported, for example, when there is a severe degradation in the capability of the managed object and its full capability must be restored.- Specified by:
logMajor
in interfaceLoggerIfc
- Parameters:
faultCategory
- A general category of the error. One of Initialization, Configuration, Connectivity Invalid data, Resources, Internal ErrorspecificFault
- A clearly worded description of this fault condition, with NO variable component (i.e. node names, port numbers, time stamps, etc.).additionalFaultText
- Any desirable additional text. The variable information.exception
- Exception which causes this major issue.
-
logMinor
public void logMinor(String faultCategory, String specificFault, String additionalFaultText, Exception exception) Description copied from interface:LoggerIfc
Logs a Minor Error message (which is indicated with a yellow alarm) with the given text. The Minor severity level indicates the existence of a non-service affecting fault condition and that corrective action should be taken in order to prevent a more serious (for example, service affecting) fault. Such a severity can be reported, for example, when the detected alarm condition is not currently degrading the capacity of the managed object.- Specified by:
logMinor
in interfaceLoggerIfc
- Parameters:
faultCategory
- A general category of the error. One of Initialization, Configuration, Connectivity Invalid data, Resources, Internal ErrorspecificFault
- A clearly worded description of this fault condition, with NO variable component (i.e. node names, port numbers, time stamps, etc.).additionalFaultText
- Any desirable additional text. The variable information.exception
- Exception which causes this minor issue
-
logWarning
public void logWarning(String faultCategory, String specificFault, String additionalFaultText, Exception exception) Description copied from interface:LoggerIfc
Logs a Warning message (which is indicated with a blue alarm) with the given text. The Warning severity level indicates the detection of a potential or impending service affecting fault, before any significant effects have been felt. Action should be taken to further diagnose (if necessary) and correct the problem in order to prevent it from becoming a more serious service affecting fault.- Specified by:
logWarning
in interfaceLoggerIfc
- Parameters:
faultCategory
- A general category of the error. One of Initialization, Configuration, Connectivity Invalid data, Resources, Internal ErrorspecificFault
- A clearly worded description of this fault condition, with NO variable component (i.e. node names, port numbers, time stamps, etc.).additionalFaultText
- Any desirable additional text. The variable information.exception
- Exception which causes this warning
-
clearStatus
Description copied from interface:LoggerIfc
Clears all log messages with a given fault category, and specific fault type.- Specified by:
clearStatus
in interfaceLoggerIfc
-
getMajorType
-
getMinorType
-
getConfigDataGuiClass
-
getConfigDataClass
- Returns:
- "
com.nt.udc.ndk.gui.DCNodeConfigData
"
-
getDisplayString
- Returns:
- Values of
getMajorType()
andgetMinorType()
separated by a colon.
-
getNodeClass
- Returns:
- Value of
getClass().getName()
-
warmRestartImplemented
public boolean warmRestartImplemented()- Returns:
- boolean indicating if the node implements a warm restart capability
-
setDCStreamHandler
Sets the DCStreamHandler object that this node is using for inter-node communication.- Parameters:
handler
- DCStreamHandler that this node should use
-
setDCStreamHandler
-
getDCStreamHandler
Returns the DCStreamHandler object that this node is using for inter-node communication.- Returns:
- DCStreamHandler that this node should use
-
getDCStreamHandler
-
saveState
Tells the Node to save its state to disk.- Specified by:
saveState
in interfaceStateManagementIfc
- Parameters:
stateFinishedCallback
- An Object to notify when the state has been successfully saved.
-
saveState
public void saveState()Tells the Node to save its state to disk.- Specified by:
saveState
in interfaceStateManagementIfc
-
restoreState
public void restoreState()Tells the Node to restore its state from disk.- Specified by:
restoreState
in interfaceStateManagementIfc
-
isNodeStateUsed
public boolean isNodeStateUsed()Returns whether the node state is used (and whether the node can be recovered.)- Specified by:
isNodeStateUsed
in interfaceNodeStateManagementIfc
- Returns:
- true, if node state is being used
-
isStateUsed
public boolean isStateUsed()Returns whether the node state is used (and whether the node can be recovered.)- Specified by:
isStateUsed
in interfaceStateManagementIfc
- Returns:
- true, if node state is being used
-
getStateManagementType
Returns the type of state management this node is using.- Specified by:
getStateManagementType
in interfaceStateManagementIfc
- Returns:
- appropriate StateManagementType
-
getNodeStateManager
Returns the Node's StateManager object.- Specified by:
getNodeStateManager
in interfaceNodeStateManagementIfc
- Returns:
- StateManager object
-
getStateManager
Returns the Node's StateManager object.- Specified by:
getStateManager
in interfaceStateManagementIfc
- Returns:
- StateManager object
-
isNodeStateImplemented
public boolean isNodeStateImplemented()Returns whether the derived node can save and restore its state.- Returns:
- true, if node implements node state save and restore
-
isShutdown
protected boolean isShutdown()Indicates whether the node is running, by returning the value ofshutdown
- Returns:
- True, if the node has been stopped.
-
shuttingDown
protected void shuttingDown()This method is should be overridden if a particular derived node needs to do some processing just prior to the node being shut down. Default implementation does nothing. -
setSNMPTrapGenerator
This method allows the node to set it's SNMP Trap Generator, so that when severe messages are sent to the logger they can be sent to SNMP Trap Hosts that are listening.- Parameters:
stg
- TheSnmp_Trap_APIInterface implementation that is being used to send SNMP traps.
-
isReconfiguring
protected boolean isReconfiguring()Indicates whether the node is being reconfigured for warm restart.- Returns:
- True, if the node is being reconfigured for warm restart.
-
setIsReconfiguringFlag
protected void setIsReconfiguringFlag(boolean value) Set value ofreconfiguring
flag to true or false. This method is provided to allow derived classes to have control over when the node is in the state of being reconfigured. -
shutdownDCStreamHandler
protected void shutdownDCStreamHandler()Shutdown the DCStreamHandler. The DCStreamHandler should continue to run until all data has been received, and processed, from the FieldProcessor. -
isHealthy
public boolean isHealthy()This method is part of the NodeHealthIfc interface. It is to be sub-classed by children to account for node-specific criteria of determining a node's state of health.- Specified by:
isHealthy
in interfaceNodeHealthIfc
- Returns:
- true if the node is fully functional (healthy), false otherwise
-
registerThreadForHealthMonitoring
This method is part of the NodeHealthIfc interface. It is called to register a node for health monitoring.- Specified by:
registerThreadForHealthMonitoring
in interfaceNodeHealthIfc
-
unregisterThreadFromHealthMonitoring
This method is part of the NodeHealthIfc interface. It is called to unregister a node from health monitoring.- Specified by:
unregisterThreadFromHealthMonitoring
in interfaceNodeHealthIfc
-
inputMonitoringCallback
public void inputMonitoringCallback()Default behaviour is to check the NARFileManager's input to see if anything has changed, and either raise or clear the Silent Input alarm. May be overridden by subclasses to do something else. -
inputMonitoringPollInputCounter
public long inputMonitoringPollInputCounter() -
getInputStatsProcessor
Get the input record Statistics Monitor.- Returns:
-
getOutputStatsProcessor
Get the output record Statistics Monitor.- Returns:
-
getStoredStatsProcessor
-
getDuplicateStatsProcessor
-
getDiscardedStatsProcessor
-
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.
-
rejectTransaction
-
isRejectTransaction
public boolean isRejectTransaction() -
getRejectTransactionId
-