public class ServerSpecification extends TieSystemObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DESCRIPTION_ATTRIBUTE
The description of this ServerSpecification.
|
static String |
NAME_ATTRIBUTE
The name of this ServerSpecification.
|
static String |
RUNTIMECLASSIFICATION_ATTRIBUTE
The hierarchical identifier describing the type of this server
for runtime management purposes.
|
static String |
SERVERCONFIGURATION_ATTRIBUTE
The ServerConfiguration that defines the configuration for this server.
|
static String |
SERVERSTATE_ATTRIBUTE
The current ServerState reflecting the runtime state for the server.
|
static String |
SETTINGS_ATTRIBUTE
The name of the Attribute representing
the settings used to describe the ServerSpecification.
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
ServerSpecification(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs an ServerSpecification object.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates this instance.
|
void |
addSetting(String key,
AttributeValue value)
Adds a setting (SimpleProperty) for this object.
|
void |
deactivate()
Deactivates this instance.
|
static ServerSpecification[] |
findAll(LibrarySession session)
Returns the set of defined ServerSpecifications.
|
static ServerSpecification |
findByName(LibrarySession session,
String name)
Returns the a ServerSpecification matching the
specified name.
|
String |
getDescription()
Returns the description of this ServerSpecification.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySession session)
Returns the LibraryObjectLookupCache used by find
ServerSpecification instances by name.
|
String |
getRuntimeClassification()
Returns the hierarchical identifier describing the type of this server
for runtime management purposes.
|
ServerConfiguration |
getServerConfiguration()
Returns the ServerConfiguration that defines the configuration for this server.
|
ServerState |
getServerState()
Returns the ServerState for this ServerSpecification.
|
SimpleProperty[] |
getSettings()
Gets the settings used to describe the instance.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a SystemObject.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
protected void |
preUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the update of
a PublicObject.
|
void |
setServerState(ServerState ss)
Sets the ServerState
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postUpdate, preCreate, 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, isValidEventType, 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 NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String RUNTIMECLASSIFICATION_ATTRIBUTE
public static final String SERVERCONFIGURATION_ATTRIBUTE
public static final String SERVERSTATE_ATTRIBUTE
public static final String SETTINGS_ATTRIBUTE
protected ServerSpecification(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 getDescription() throws IfsException
IfsException
- if the operation fails.public String getRuntimeClassification() throws IfsException
IfsException
- if the operation failspublic ServerState getServerState() throws IfsException
Can be null if the Server is not currently running.
IfsException
- if the operation fails.public ServerConfiguration getServerConfiguration() throws IfsException
IfsException
- if the operation fails.public SimpleProperty[] getSettings() throws IfsException
IfsException
- if the operation failspublic void setServerState(ServerState ss) throws IfsException
ss
- the ServerStateIfsException
- if the operation failspublic void addSetting(String key, AttributeValue value) throws IfsException
key
- the setting property's keyvalue
- the setting property's valueIfsException
- if the operation failspublic void activate() throws IfsException
IfsException
- if the operation fails.public void deactivate() throws IfsException
IfsException
- if the operation fails.protected void postCreate(LibraryObjectDefinition lodef) throws IfsException
SystemObject
This assumes that a transaction context has already been established.
postCreate
in class SystemObject
lodef
- object definition that was used to create the objectIfsException
- if operation failsprotected void preUpdate(LibraryObjectDefinition lodef) throws IfsException
SystemObject
Set an option that indicates that Categories are NOT to be created from within S_SystemObject.
preUpdate
in class SystemObject
lodef
- definition used to define how the target object
will be updatedIfsException
- if operation failsprotected 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.public static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static ServerSpecification[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static ServerSpecification findByName(LibrarySession session, String name) throws IfsException
ServerSpecification names are case sensitive, so this operations requires an exact match with respect to case.
session
- the session contextname
- the ServerSpecification nameIfsException
- if the operation fails.Copyright © 2023. All rights reserved.