public class NodeState extends TieRuntimeState
RuntimeState.Status
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
LASTACKNOWLEDGEDATE_ATTRIBUTE
The name of the Attribute that holds
the date of the last acknowledge by the running Node.
|
static String |
RUNTIME_PROPERTY_ASSIGNABLE |
static String |
RUNTIME_PROPERTY_EVENTHANDLERAGENT |
static String |
RUNTIME_PROPERTY_EXPLICITLYIDLESERVERNAMES |
static String |
RUNTIME_PROPERTY_FORCEDEXIT |
static String |
RUNTIME_PROPERTY_SUPPORTEDNODECAPABILITIES |
static String |
SERVICESTATE_ATTRIBUTE
Name of the ServiceState Attribute.
|
CONFIGURATIONBUNDLE_ATTRIBUTE, CONFIGURATIONNAME_ATTRIBUTE, CONFIGURATIONOVERRIDEBUNDLE_ATTRIBUTE, CONTROLLERALERT_ATTRIBUTE, CONTROLLERREPLY_ATTRIBUTE, CONTROLLERREQUEST_ATTRIBUTE, CREATEDATE_ATTRIBUTE, DISPOSEDATE_ATTRIBUTE, MANAGINGNODESTATE_ATTRIBUTE, NAME_ATTRIBUTE, RUNTIMESTATEBUNDLE_ATTRIBUTE, STATEPROPERTYTABLE_ATTRIBUTE, STATUS_ATTRIBUTE, STATUSCODE_DISPOSED, STATUSCODE_FINALIZED, STATUSCODE_RUNNING, STATUSCODE_STARTING, STATUSCODE_STOPPED, STATUSCODE_STOPPING, STATUSCODE_SUSPENDED, STATUSCODE_UNKNOWN, STATUSDATE_ATTRIBUTE
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
NodeState(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a NodeState object.
|
Modifier and Type | Method and Description |
---|---|
void |
addExplicitlyIdleServerName(String serverName)
Adds the specified managed Server name to the list of
explicitly idle Server names.
|
static NodeState |
create(NodeConfiguration nc,
ServiceState serviceState,
String nodeName,
Long newNodeStateId)
Create a NodeState based on the specified inputs.
|
protected String |
getConfigurationOverrideAuditEventKey()
Gets the Audit Event key to use for posting configuration overrides.
|
String |
getDefaultLogLevel()
Gets the default log level in effect for the running Node.
|
Level |
getEffectiveLogLevel(String loggerName)
Gets the effective log level in effect for the running Node for the
specified class or package name.
|
String |
getEffectiveLogLevelName(String loggerName)
Gets the name of the effective log level in effect for the running Node
for the specified class or package name.
|
ServerState |
getEventHandlerAgentState()
Gets the ServerState that reflects the EventHandlerAgent, which
manages the Handlers.
|
String[] |
getExplicitlyIdleServerNames()
Gets the array of explicitly idle Server names.
|
HandlerState[] |
getHandlerStates()
Selects the set of HandlerState instances managed by this NodeState.
|
Date |
getLastAcknowledgeDate()
Returns the date of the last acknowledge by the running Node.
|
String[] |
getLogLevelOverrides()
Gets the log level overrides in effect for the running Node.
|
static NodeState[] |
getNodeStates(LibrarySession session)
Selects the set of NodeState instances that are active.
|
ServerState[] |
getServerStates()
Selects the set of active ServerState instances managed by this NodeState.
|
ServiceState |
getServiceState()
Returns the ServiceState for the service associated with the node
that is reflected by this instance.
|
String[] |
getSupportedNodeCapabilities()
Gets the array of Node capabilities supported by this instance's Node.
|
long |
getTimeSinceLastAcknowledge()
Returns the elapsed time (in ms) since the last acknowledge
by the running Node.
|
boolean |
isAssignable()
Gets indication as to whether this Node is assignable by the
Controller for Servers/Handlers that are assigned.
|
protected boolean |
isValidEventType(AuditEvent event)
Checks to see if the event type in the process of being posted on the
target LibraryObject is consistent with the target.
|
void |
postDisposeNodeRequest()
Posts a request to dispose the Node.
|
void |
postLoadServerRequest(String serverName,
String scName,
AttributeValueTable overrides)
Deprecated.
9.3.4.0 use ServerSpecification to add new Servers to a running system
|
void |
postRestartNodeRequest()
Posts a request to restart the Node.
|
void |
postStartNodeRequest()
Posts a request to Start the Node.
|
void |
postStopNodeRequest()
Posts a request to Stop the Node.
|
void |
removeExplicitlyIdleServerName(String serverName)
Remove the specified managed Server name from the list of
explicitly idle Server names.
|
void |
setAssignable(boolean val)
Sets indication as to whether this Node is assignable by the
Controller for Servers/Handlers that are assigned.
|
void |
setEventHandlerAgentState(ServerState ss)
Gets the ServerState that reflects the EventHandlerAgent, which
manages the Handlers.
|
void |
setExitedForcibly(boolean val)
Sets indication as to whether this Node was forced to exit
due to some irregularity.
|
void |
setExplicitlyIdleServerNames(String[] serverNames)
Sets the array of explicitly idle Server names.
|
void |
setLastAcknowledgeDate()
Updates the date of the last acknowledge by the running Node
to the cuurrent time, adjusted by the DBMS clock offset.
|
void |
setSupportedNodeCapabilities(String[] nodeCaps)
Sets the array of Node capabilities supported by this instance's Node.
|
void |
updateForSimpleControllerJob(ControllerJob job)
Update the instance's ControllerRequest to place a simple ControllerJob.
|
boolean |
wasExitedForcibly()
Gets indication as to whether this Node was forced to exit
due to some irregularity.
|
addStateProperty, getAuditEvents, getConfigurationBundle, getConfigurationName, getConfigurationOverrideBundle, getConfigurationOverridePropertyValue, getConfigurationPropertyValue, getControllerAlert, getControllerReply, getControllerRequest, getCreateDate, getDisposeDate, getManagingNodeState, getNodeState, getRuntimeClassification, getRuntimeStateBundle, getRuntimeStatePropertyValue, getRuntimeStates, getStateProperty, getStatePropertyTable, getStatePropertyTableSnapshot, getStatus, getStatusCode, getStatusDate, getStatusName, hasNameAttribute, isAssigned, isControllerReplyActive, isControllerRequestActive, isDisposed, isFinalized, isRunning, isStopped, isStopping, postAuditEvent, postAuditEvent, postAuditEvent, postAuditEvent, postAuditEvent, postConfigurationOverrideRequest, preFree, putConfigurationOverrideProperty, putConfigurationProperty, putRuntimeStateProperty, removeAllConfigurationOverrideProperties, removeAllConfigurationProperties, removeAllRuntimeStateProperties, removeAllStateProperties, removeConfigurationOverrideProperty, removeConfigurationProperty, removeRuntimeStateProperty, removeStateProperty, setConfigurationBundle, setConfigurationOverrideBundle, setStatus, setStatusCode, setStatusDisposed, setStatusFinalized, setStatusRunning, setStatusStarting, setStatusStopped, setStatusStopping, setStatusSuspended, updateControllerReplyForAcknowledge, updateControllerReplyForNonAcknowledge, updateForSimpleControllerAlert, updateForSimpleControllerAlert, updateForSimpleControllerReply, updateForSimpleControllerRequest, updateForSimpleControllerRequest
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String SERVICESTATE_ATTRIBUTE
public static final String LASTACKNOWLEDGEDATE_ATTRIBUTE
public static final String RUNTIME_PROPERTY_EVENTHANDLERAGENT
public static final String RUNTIME_PROPERTY_SUPPORTEDNODECAPABILITIES
public static final String RUNTIME_PROPERTY_EXPLICITLYIDLESERVERNAMES
public static final String RUNTIME_PROPERTY_ASSIGNABLE
public static final String RUNTIME_PROPERTY_FORCEDEXIT
protected NodeState(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic static NodeState create(NodeConfiguration nc, ServiceState serviceState, String nodeName, Long newNodeStateId) throws IfsException
nc
- the NodeConfigurationserviceState
- the associated ServiceStatenodeName
- the name of the nodeserviceId
- the Service IDnewNodeStateId
- the ID to use for the NodeState (optional)IfsException
- if the operation failspublic ServiceState getServiceState() throws IfsException
IfsException
- if operation failspublic Date getLastAcknowledgeDate() throws IfsException
IfsException
- if the operation failspublic long getTimeSinceLastAcknowledge() throws IfsException
IfsException
- if the operation failspublic static NodeState[] getNodeStates(LibrarySession session) throws IfsException
The NodeState objects will be sorted by ID.
session
- session contextIfsException
- if operation failspublic ServerState[] getServerStates() throws IfsException
The ServerState objects will be sorted by ID.
IfsException
- if operation failspublic HandlerState[] getHandlerStates() throws IfsException
The HandlerState objects will be sorted by ID.
IfsException
- if operation failspublic void setLastAcknowledgeDate() throws IfsException
IfsException
- if the operation failspublic ServerState getEventHandlerAgentState() throws IfsException
IfsException
- if the operation failspublic void setEventHandlerAgentState(ServerState ss) throws IfsException
ss
- the ServerState, or none if one is not registeredIfsException
- if the operation failspublic String[] getSupportedNodeCapabilities() throws IfsException
IfsException
- if the operation failspublic void setSupportedNodeCapabilities(String[] nodeCaps) throws IfsException
nodeCaps
- the set of supported Node typesIfsException
- if the operation failspublic String[] getExplicitlyIdleServerNames() throws IfsException
IfsException
- if the operation failspublic void setExplicitlyIdleServerNames(String[] serverNames) throws IfsException
serverNames
- the set of explicitly idle Server namesIfsException
- if the operation failspublic void addExplicitlyIdleServerName(String serverName) throws IfsException
serverName
- the idle Server name to addIfsException
- if the operation failspublic void removeExplicitlyIdleServerName(String serverName) throws IfsException
serverName
- the idle Server name to removeIfsException
- if the operation failspublic boolean isAssignable() throws IfsException
IfsException
- if the operation failspublic void setAssignable(boolean val) throws IfsException
val
- the indicationIfsException
- if the operation failspublic boolean wasExitedForcibly() throws IfsException
IfsException
- if the operation failspublic void setExitedForcibly(boolean val) throws IfsException
val
- the indicationIfsException
- if the operation failspublic void updateForSimpleControllerJob(ControllerJob job) throws IfsException
Overridden by NodeState to handle an optional Job setting to toggle the Assignable state of the NodeState prior to issuing the Simple ControllerJob.
updateForSimpleControllerJob
in class RuntimeState
job
- the ControllerJobIfsException
- if the operation failsprotected String getConfigurationOverrideAuditEventKey() throws IfsException
getConfigurationOverrideAuditEventKey
in class RuntimeState
IfsException
- if the operation failspublic void postLoadServerRequest(String serverName, String scName, AttributeValueTable overrides) throws IfsException
serverName
- the name for the new ServerscName
- the name of the ServerConfiguration to useoverrides
- the configuration overrides to useIfsException
- if the operation failspublic void postRestartNodeRequest() throws IfsException
IfsException
- if the operation failspublic void postDisposeNodeRequest() throws IfsException
IfsException
- if the operation failspublic void postStartNodeRequest() throws IfsException
IfsException
- if the operation failspublic void postStopNodeRequest() throws IfsException
IfsException
- if the operation failsprotected boolean isValidEventType(AuditEvent event) throws IfsException
isValidEventType
in class LibraryObject
event
- the event being posted on this objectIfsException
- if the operation failspublic String[] getLogLevelOverrides() throws IfsException
Uses the String[] stored in the RuntimeState PropertyBundle via the property "IFS.LOG.LogLevelOverrides". Each String in the returned array uses the syntax: "classOrPackage : level". For example: "oracle.ifs.core.runtime : FINE".
IfsException
- if the operation failspublic String getDefaultLogLevel() throws IfsException
Uses the String stored in the RuntimeState PropertyBundle via the property "IFS.LOG.DefaultLogLevel". The String returned is the name of a log level, e.g. "INFO".
IfsException
- if the operation failspublic Level getEffectiveLogLevel(String loggerName) throws IfsException
loggerName
- the logger name (class or package name);
must not be nullIfsException
- if the operation failspublic String getEffectiveLogLevelName(String loggerName) throws IfsException
loggerName
- the logger name (class or package name);
must not be nullIfsException
- if the operation failsCopyright © 2023. All rights reserved.