ConfigurationMBean
, DescriptorBean
, javax.management.DynamicMBean
, javax.management.MBeanRegistration
, javax.management.NotificationBroadcaster
, SettableBean
, WebLogicMBean
public interface DynamicServersMBean extends ConfigurationMBean
Contains the properties used to control how dynamic servers are created. These properties allow you to control if listens ports are calculated, how servers are assigned to machines, and the number of dynamic servers to create.
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_ADMINISTRATION_PORT_RANGE_BASE |
|
static int |
DEFAULT_LISTEN_PORT_RANGE_BASE |
|
static int |
DEFAULT_NAP_LISTEN_PORT_RANGE_BASE |
|
static int |
DEFAULT_SSL_LISTEN_PORT_RANGE_BASE |
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method | Description |
---|---|---|
int |
getDynamicClusterCooloffPeriodSeconds() |
Get the cool-off period (in seconds) used by the Elasticity Framework while performing scale up
or scale down operations.
|
int |
getDynamicClusterShutdownTimeoutSeconds() |
Get the timeout period (in seconds) used by the Elasticity Framework while gracefully shutting down a
server.
|
int |
getDynamicClusterSize() |
Get the current size of the dynamic cluster (the number of dynamic server instances allowed
to be created).
|
java.lang.String[] |
getDynamicServerNames() |
Return an array of all the dynamic server names
|
java.lang.String |
getMachineMatchExpression() |
Get the machine tag expression to use when selecting machine names.
|
java.lang.String |
getMachineMatchType() |
Get the machine tag expression to use when selecting machine names.
|
java.lang.String |
getMachineNameMatchExpression() |
The expression is used when determining machines to use for server assignments.
|
int |
getMaxDynamicClusterSize() |
Get the upper bound on the DynamicClusterSize that the Elasticity Framework is allowed to
assign to DynamicClusterSize.
|
int |
getMaximumDynamicServerCount() |
Deprecated.
12.2.1.0.0 Use getDynamicClusterSize()
|
int |
getMinDynamicClusterSize() |
Get the minimum number of running server instances that the Elasticity Framework will attempt to
keep in the dynamic cluster.
|
java.lang.String |
getServerNamePrefix() |
The server name prefix is used to specify the naming convention when creating server names.
|
int |
getServerNameStartingIndex() |
Get the starting index to use in server names.
|
ServerTemplateMBean |
getServerTemplate() |
The server template used to create dynamic servers.
|
boolean |
isCalculatedListenPorts() |
Specifies whether listen ports are calculated.
|
boolean |
isCalculatedMachineNames() |
The CalculatedMachineNames attribute controls how server instances in a dynamic cluster
are assigned to a machine.
|
boolean |
isIgnoreSessionsDuringShutdown() |
Indicates if the Elasticity Framework should ignore inflight HTTP sessions while shutting down
servers.
|
boolean |
isWaitForAllSessionsDuringShutdown() |
Indicates if the Elasticity Framework should wait for all (persisted and non-persisted)
HTTP sessions during inflight work handling while shutting down servers.
|
void |
setCalculatedListenPorts(boolean calculatePorts) |
Set whether listen ports are calculated using the instance id.
|
void |
setCalculatedMachineNames(boolean calculateMachineNames) |
Set whether machine names are calculated.
|
void |
setDynamicClusterCooloffPeriodSeconds(int cooloffPeriod) |
Set the cool-off period (in seconds) used by the Elasticity Framework while performing scale up
or scale down operations.
|
void |
setDynamicClusterSize(int size) |
Set the current size of the dynamic cluster.
|
void |
setIgnoreSessionsDuringShutdown(boolean ignoreSessions) |
Set to
true if the Elasticity Framework should ignore inflight HTTP sessions during server shutdown. |
void |
setMachineMatchExpression(java.lang.String machineMatchExpression) |
Set the expression to use when determining machines to use for server assignments.
|
void |
setMachineMatchType(java.lang.String machineMatchType) |
Set the type of expression to use when determining machines to use for server assignments.
|
void |
setMachineNameMatchExpression(java.lang.String machineNameMatchExpression) |
Set the expression to use when determining machines to use for server assignments.
|
void |
setMaxDynamicClusterSize(int maxSize) |
Set the upper bound for the DynamicClusterSize attribute.
|
void |
setMaximumDynamicServerCount(int count) |
Deprecated.
12.2.1.0.0 Use setDynamicClusterSize(int size)
|
void |
setMinDynamicClusterSize(int minSize) |
Set the minimum number of running server instances that the Elasticity Framework will attempt to maintain.
|
void |
setServerNamePrefix(java.lang.String serverNamePrefix) |
Set the prefix to use when creating the server name.
|
void |
setServerNameStartingIndex(int startingIndex) |
Set the starting index to use in server names.
|
void |
setServerTemplate(ServerTemplateMBean template) |
Set the server template to use to create dynamic servers.
|
void |
setWaitForAllSessionsDuringShutdown(boolean waitForAllSessions) |
Set to
true if the Elasticity Framework should wait for all (persisted and non-persisted)
HTTP sessions during inflight work handling; set to false to wait for non-persisted HTTP
sessions only. |
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
static final int DEFAULT_LISTEN_PORT_RANGE_BASE
static final int DEFAULT_SSL_LISTEN_PORT_RANGE_BASE
static final int DEFAULT_NAP_LISTEN_PORT_RANGE_BASE
static final int DEFAULT_ADMINISTRATION_PORT_RANGE_BASE
ServerTemplateMBean getServerTemplate()
void setServerTemplate(ServerTemplateMBean template)
template
- to use when creating a dynamic server@Deprecated void setMaximumDynamicServerCount(int count)
count
- the number of dynamic servers@Deprecated int getMaximumDynamicServerCount()
void setCalculatedListenPorts(boolean calculatePorts)
calculatePorts
- true if listen ports should be calculated, false if notboolean isCalculatedListenPorts()
void setCalculatedMachineNames(boolean calculateMachineNames)
calculateMachineNames
- true if machine names should be calculated, false if notboolean isCalculatedMachineNames()
void setMachineNameMatchExpression(java.lang.String machineNameMatchExpression)
machineNameMatchExpression
- to use when determining the machines to use when assigning
servers to a machine.java.lang.String getMachineNameMatchExpression()
void setMachineMatchExpression(java.lang.String machineMatchExpression)
machineMatchExpression
- to use when determining the machines to use when assigning
servers to a machine.java.lang.String getMachineMatchExpression()
void setMachineMatchType(java.lang.String machineMatchType)
machineMatchType
- to use when determining the machines to use when assigning
servers to a machine.java.lang.String getMachineMatchType()
void setServerNamePrefix(java.lang.String serverNamePrefix)
getServerNameStartingIndex()
.serverNamePrefix
- to use when determining the machines to use when assigning
servers to a machine.java.lang.String getServerNamePrefix()
getServerNameStartingIndex()
.int getDynamicClusterSize()
void setDynamicClusterSize(int size)
size
- Size of the dynamic clusterint getMinDynamicClusterSize()
void setMinDynamicClusterSize(int minSize)
minSize
- Minimum number of running servers that the Elasticity framework will attempt to maintainint getMaxDynamicClusterSize()
void setMaxDynamicClusterSize(int maxSize)
maxSize
- Upper bound on DynamicClusterSizeint getDynamicClusterCooloffPeriodSeconds()
void setDynamicClusterCooloffPeriodSeconds(int cooloffPeriod)
cooloffPeriod
- Cool-off period (in seconds) used by the Elasticity framework while
performing scale-up or scale-down operations.int getDynamicClusterShutdownTimeoutSeconds()
ServerLifeCycleRuntimeMBean.shutdown(int, boolean, boolean)
boolean isIgnoreSessionsDuringShutdown()
ServerLifeCycleRuntimeMBean.shutdown(int, boolean, boolean)
void setIgnoreSessionsDuringShutdown(boolean ignoreSessions)
true
if the Elasticity Framework should ignore inflight HTTP sessions during server shutdown.ignoreSessions
- If true, inflight HTTP sessions will be ignored during server shutdownServerLifeCycleRuntimeMBean.shutdown(int, boolean, boolean)
boolean isWaitForAllSessionsDuringShutdown()
ServerLifeCycleRuntimeMBean.shutdown(int, boolean, boolean)
void setWaitForAllSessionsDuringShutdown(boolean waitForAllSessions)
true
if the Elasticity Framework should wait for all (persisted and non-persisted)
HTTP sessions during inflight work handling; set to false
to wait for non-persisted HTTP
sessions only.waitForAllSessions
- Set to true
to wait for all HTTP sessions
during inflight work handling; false
to wait for non-persisted
HTTP sessions only.ServerLifeCycleRuntimeMBean.shutdown(int, boolean, boolean)
java.lang.String[] getDynamicServerNames()
int getServerNameStartingIndex()
getServerNamePrefix()
followed by an index starting with the value
specified in this attribute.getServerNamePrefix()
void setServerNameStartingIndex(int startingIndex)
startingIndex
- The starting index to be used in server names