public class ServerState extends TieRuntimeState
RuntimeState.Status
Modifier and Type | Field and Description |
---|---|
static String |
ASSIGNED_ATTRIBUTE
Name of the Assigned Attribute.
|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
NODESTATE_ATTRIBUTE
Name of the NodeState Attribute.
|
static String |
RUNTIMECLASSIFICATION_ATTRIBUTE
Name of the RuntimeClassification Attribute.
|
static String |
SERVERSPECIFICATION_ATTRIBUTE
Name of the ServerSpecification Attribute.
|
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 |
ServerState(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a ServerState object.
|
Modifier and Type | Method and Description |
---|---|
static ServerState |
create(String name,
String scName,
ServerSpecification spec,
NodeState ns,
boolean assigned,
String classif)
Create a ServerState based on the specified inputs.
|
ServerState |
createCopy(NodeState ns)
Create a ServerState based on the target object,
using the specified NodeState as the managing Node.
|
protected String |
getConfigurationOverrideAuditEventKey()
Gets the Audit Event key to use for posting configuration overrides.
|
NodeState |
getNodeState()
Returns the NodeState for the node associated with the server
that is reflected by this instance.
|
String |
getRuntimeClassification()
Returns the runtime classification fragment used by the Controller to
assign this instance.
|
ServerSpecification |
getServerSpecification()
Returns the ServerSpecification that was used to created this instance,
as indicated by the Controller.
|
ServiceState |
getServiceState()
Returns the ServiceState for the service associated with the server
that is reflected by this instance.
|
boolean |
isAssigned()
Gets indication as to whether this instance was assigned by the Controller.
|
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 |
postChangeClusteringStatus(String newStatus)
Posts an event indicating the Server's clustering status has changed.
|
void |
postDisposeServerRequest()
Posts a request to Dispose the Server.
|
void |
postRestartServerRequest()
Posts a request to Restart the Server.
|
void |
postResumeServerRequest()
Posts a request to Resume the Server.
|
void |
postStartServerRequest()
Posts a request to Start the Server.
|
void |
postStopServerRequest()
Posts a request to Stop the Server.
|
void |
postSuspendServerRequest()
Posts a request to Suspend the Server.
|
void |
setNodeState(NodeState ns)
Sets the NodeState that manages this instance.
|
addStateProperty, getAuditEvents, getConfigurationBundle, getConfigurationName, getConfigurationOverrideBundle, getConfigurationOverridePropertyValue, getConfigurationPropertyValue, getControllerAlert, getControllerReply, getControllerRequest, getCreateDate, getDisposeDate, getManagingNodeState, getRuntimeStateBundle, getRuntimeStatePropertyValue, getRuntimeStates, getStateProperty, getStatePropertyTable, getStatePropertyTableSnapshot, getStatus, getStatusCode, getStatusDate, getStatusName, hasNameAttribute, 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, updateForSimpleControllerJob, 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 NODESTATE_ATTRIBUTE
public static final String SERVERSPECIFICATION_ATTRIBUTE
public static final String ASSIGNED_ATTRIBUTE
public static final String RUNTIMECLASSIFICATION_ATTRIBUTE
protected ServerState(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 ServerState create(String name, String scName, ServerSpecification spec, NodeState ns, boolean assigned, String classif) throws IfsException
name
- the name to use for the new ServerStatescName
- the ServerConfiguration namespec
- the ServerSpecification (if any)ns
- the Node to assignassigned
- whether the ServerState was assigned by the Controllerclassif
- the RuntimeClassification value used to assignIfsException
- if the operation failspublic ServerState createCopy(NodeState ns) throws IfsException
ns
- the Node to manage the instanceIfsException
- if the operation failspublic ServiceState getServiceState() throws IfsException
IfsException
- if operation failspublic NodeState getNodeState() throws IfsException
getNodeState
in class RuntimeState
IfsException
- if operation failspublic ServerSpecification getServerSpecification() throws IfsException
IfsException
- if operation failspublic boolean isAssigned() throws IfsException
isAssigned
in class RuntimeState
IfsException
- if operation failspublic String getRuntimeClassification() throws IfsException
getRuntimeClassification
in class RuntimeState
IfsException
- if the operation fails.public void setNodeState(NodeState ns) throws IfsException
This is issued by the Node that takes over management of this Server.
ns
- the managing NodeStateIfsException
- if operation failsprotected String getConfigurationOverrideAuditEventKey() throws IfsException
getConfigurationOverrideAuditEventKey
in class RuntimeState
IfsException
- if the operation failspublic void postStartServerRequest() throws IfsException
IfsException
- if the operation failspublic void postStopServerRequest() throws IfsException
IfsException
- if the operation failspublic void postRestartServerRequest() throws IfsException
IfsException
- if the operation failspublic void postSuspendServerRequest() throws IfsException
IfsException
- if the operation failspublic void postResumeServerRequest() throws IfsException
IfsException
- if the operation failspublic void postDisposeServerRequest() throws IfsException
IfsException
- if the operation failspublic void postChangeClusteringStatus(String newStatus) throws IfsException
newStatus
- the new clustering statusIfsException
- 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 failsCopyright © 2023. All rights reserved.