public class ControllerLoadRatio extends TieSimpleObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
NAME_ATTRIBUTE
The name of the Attribute representing
The name of the ControllerLoadRatio.
|
static String |
NODECOUNT_ATTRIBUTE
The name of the Attribute representing
The number of Nodes being load balanced.
|
static String |
RATIOS_ATTRIBUTE
The array of relative ratios to use when assigning Nodes to Servers or Handlers.
|
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 |
ControllerLoadRatio(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a ControllerLoadRatio object.
|
Modifier and Type | Method and Description |
---|---|
static ControllerLoadRatio[] |
findAll(LibrarySession session)
Returns the set of defined ControllerLoadRatios.
|
static ControllerLoadRatio |
findByName(LibrarySession session,
String name)
Returns the a ControllerLoadRatio matching the
specified name.
|
static ControllerLoadRatio |
findOrCreate(LibrarySession sess,
String name)
Find or create a ControllerLoadRatio from its name.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySession session)
Returns the LibraryObjectLookupCache used by find
ControllerLoadRatio instances by name.
|
int |
getNodeCount()
Gets The number of Nodes being load balanced.
|
int[] |
getRatios()
Gets the array of relative ratios to use when assigning
Nodes to Servers or Handlers.
|
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.
|
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, postCreate, postEvent, postEvent, postFree, postUpdate, preCreate, preFree, 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 NODECOUNT_ATTRIBUTE
public static final String RATIOS_ATTRIBUTE
protected ControllerLoadRatio(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 int getNodeCount() throws IfsException
IfsException
- if the operation failspublic int[] getRatios() throws IfsException
IfsException
- if the operation failspublic static ControllerLoadRatio findOrCreate(LibrarySession sess, String name) throws IfsException
sess
- the session contextname
- the ControllerLoadRatio name,
reflecting node count and ratiosIfsException
- if the operation failspublic static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static ControllerLoadRatio[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static ControllerLoadRatio findByName(LibrarySession session, String name) throws IfsException
ControllerLoadRatio names are case sensitive, so this operations requires an exact match with respect to case.
session
- the session contextname
- the ControllerLoadRatio nameIfsException
- if the operation fails.Copyright © 2023. All rights reserved.