public class ControllerPlan extends TieSimpleObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DESCRIPTION_ATTRIBUTE
The name of the Attribute representing
The description of the ControllerPlan.
|
static String |
NAME_ATTRIBUTE
The name of the Attribute representing
The name of the ControllerPlan.
|
static String |
NODECAPABILITYBYPOSITION_ATTRIBUTE
The name of the Attribute representing
The capability of Node required for each of the expected Nodes,
arranged in the array by Node position.
|
static String |
NODECOUNT_ATTRIBUTE
The name of the Attribute representing
The number of Nodes expected by the plan.
|
static String |
NODELABELBYPOSITION_ATTRIBUTE
The name of the Attribute representing
the labels used to identify an assigned Node by its position.
|
static String |
PLANTABLELIST_ATTRIBUTE
The name of the Attribute representing
Reference to object holding the details describing the plan.
|
static String |
UUID_ATTRIBUTE
The name of the Attribute representing the UUID.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, PROPERTYBUNDLE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
ControllerPlan(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a ControllerPlan object.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssignment(AttributeValueTable assignment)
Adds an assignment to the map.
|
static ControllerPlan[] |
findAll(LibrarySession session)
Returns the set of defined ControllerPlans.
|
static ControllerPlan |
findByName(LibrarySession session,
String name)
Returns the a ControllerPlan matching the
specified name.
|
List<AttributeValueTable> |
getAssignments()
Gets the set of assignment definitions for this plan.
|
String |
getDescription()
Gets The description of the ControllerPlan.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySession session)
Returns the LibraryObjectLookupCache used by find
ControllerPlan instances by name.
|
String[] |
getNodeCapabilityByPosition()
Gets the capability of Node required for each of the expected Nodes,
arranged in the array by Node position.
|
int |
getNodeCount()
Gets the number of Nodes expected by the plan.
|
String[] |
getNodeLabelByPosition()
Gets the labels used to identify an assigned Node by its position.
|
SimplePropertyTable |
getObjectPropertyTable()
Gets the SimplePropertyTable representing this object's metadata.
|
SimplePropertyTableList |
getPlanTableList()
Gets Reference to object holding the details describing the plan.
|
String |
getRecoveryPeriod()
Gets the recovery time period, which is the duration to wait before
returning back to a "fully started" state after one or more assigned
Nodes are no longer assigned.
|
String |
getStartupPeriod()
Gets the startup time period, which is the duration to wait
while assigning Nodes before automatically changing to a
"fully started" state.
|
String |
getUuid()
Gets the value of the UUID attribute.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
boolean |
isEveryAssignmentFinal()
Gets an indicator of whether every assignment entry should be
considered as being defined as "final", meaning the classification
hierarchy will not be checked further if no Node is defined
at the lowest defined level.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a object.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
void |
setEveryAssignmentFinal(boolean val)
Sets an indicator of whether every assignment entry should be
considered as being defined as "final", meaning the classification
hierarchy will not be checked further if no Node is defined
at the lowest defined level.
|
void |
setRecoveryPeriod(String val)
Sets the recovery time period, which is the duration to wait before
returning back to a "fully started" state after one or more assigned
Nodes are no longer assigned.
|
void |
setStartupPeriod(String val)
Sets the startup time period, which is the duration to wait
while assigning Nodes before automatically changing to a
"fully started" state.
|
free, handleCreate, isValidEventType
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, hasPropertyBundleAttribute, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, postUpdate, preCreate, prePostAuditEvent, preUpdate, 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 UUID_ATTRIBUTE
public static final String NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String NODECOUNT_ATTRIBUTE
public static final String NODECAPABILITYBYPOSITION_ATTRIBUTE
public static final String NODELABELBYPOSITION_ATTRIBUTE
public static final String PLANTABLELIST_ATTRIBUTE
protected ControllerPlan(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
LibraryObject
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public String getUuid() throws IfsException
IfsException
- if the operation failspublic String getDescription() throws IfsException
IfsException
- if the operation failspublic int getNodeCount() throws IfsException
IfsException
- if the operation failspublic String[] getNodeCapabilityByPosition() throws IfsException
IfsException
- if the operation failspublic String[] getNodeLabelByPosition() throws IfsException
IfsException
- if the operation failspublic SimplePropertyTableList getPlanTableList() throws IfsException
IfsException
- if the operation failspublic SimplePropertyTable getObjectPropertyTable() throws IfsException
Is stored as the "Object Property Table of the SimplePropertyTableList.
IfsException
- if the operation failspublic String getStartupPeriod() throws IfsException
IfsException
- if the operation failspublic void setStartupPeriod(String val) throws IfsException
val
- the startup time periodIfsException
- if the operation failspublic String getRecoveryPeriod() throws IfsException
IfsException
- if the operation failspublic void setRecoveryPeriod(String val) throws IfsException
val
- the recovery time periodIfsException
- if the operation failspublic boolean isEveryAssignmentFinal() throws IfsException
IfsException
- if the operation failspublic void setEveryAssignmentFinal(boolean val) throws IfsException
val
- whether every assignemnt should be treated as finalIfsException
- if the operation failspublic List<AttributeValueTable> getAssignments() throws IfsException
assList
- the set assignment value tablesIfsException
- if the operation failspublic void addAssignment(AttributeValueTable assignment) throws IfsException
assignment
- the assignment value tableIfsException
- if the operation failspublic static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static ControllerPlan[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static ControllerPlan findByName(LibrarySession session, String name) throws IfsException
ControllerPlan names are case sensitive, so this operations requires an exact match with respect to case.
session
- the session contextname
- the ControllerPlan nameIfsException
- if the operation fails.protected void postCreate(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform operations after an object is created.
Subclasses are expected to invoke super.postCreate
.
postCreate
in class LibraryObject
lodef
- object definition that was used to create the objectIfsException
- if operation fails.protected void preFree(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.Copyright © 2023. All rights reserved.