ConfigurationMBean
, DescriptorBean
, javax.management.DynamicMBean
, javax.management.MBeanRegistration
, javax.management.NotificationBroadcaster
, SettableBean
, WebLogicMBean
public interface ResourceManagerMBean extends ConfigurationMBean
A ResourceManagerMBean
represents a resource consumption management
policy. A policy controls and governs the use of shared resources in a Server
runtime, by a Partition that the policy is attached to. A resource manager
holds information on constraints and recourse actions for different resources
in a Server instance.
A system administrator defines a resource manager and configures child MBeans that represent particular combinations of shares and usage limits of various resources in the Server runtime.
The system administrator may then assign the resource manager to one or more Partitions to ensure fair allocation of shared resources to collocated Domain Partitions, and to ensure that one Partition doesn't exhaust shared resources (potentially affecting other collocated Partitions).
The set of resources on which resource management policies can be assigned to, and the child MBeans through which they can be configured are:
FileOpenMBean
HeapRetainedMBean
CpuUtilizationMBean
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method | Description |
---|---|---|
CpuUtilizationMBean |
createCpuUtilization(java.lang.String name) |
This is the factory method for creating "CPU Utilization" policy for this
resource manager.
|
FileOpenMBean |
createFileOpen(java.lang.String name) |
This is the factory method for creating "File Open" policy for this
resource manager.
|
HeapRetainedMBean |
createHeapRetained(java.lang.String name) |
This is the factory method for creating "Heap Retained" policy for this
resource manager.
|
void |
destroyCpuUtilization(CpuUtilizationMBean cpuUtilizationMBean) |
Destroys and removes a "CPU Utilization" policy corresponding to the {code
cpuUtilizationMBean} parameter, which is a child of this resource manager.
|
void |
destroyFileOpen(FileOpenMBean fileOpenMBean) |
Destroys and removes a "File Open" policy corresponding to the {code
fileOpenMBean} parameter, which is a child of this resource manager.
|
void |
destroyHeapRetained(HeapRetainedMBean heapRetainedMBean) |
Destroys and removes a "Heap Retained" policy corresponding to the {code
heapRetainedMBean} parameter, which is a child of this resource manager.
|
CpuUtilizationMBean |
getCpuUtilization() |
Gets the "CPU Utilization" policy for this resource manager.
|
FileOpenMBean |
getFileOpen() |
Gets the "File Open" policy for this resource manager.
|
HeapRetainedMBean |
getHeapRetained() |
Gets the "Heap Retained" policy for this resource manager.
|
RestartLoopProtectionMBean |
getRestartLoopProtection() |
Gets the "Restart Loop Protection" for this resource manager.
|
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
FileOpenMBean getFileOpen()
FileOpenMBean createFileOpen(java.lang.String name)
FileOpenMBean
which is created will have
this resource manager as its parent and must be destroyed with the
destroyFileOpen(FileOpenMBean)
method.
The "File open" policy governs the number of open files. This includes
files that have been opened through java.io
(
FileInputStream,
FileOutputStream, RandomAccessFile
etc) and java.nio
(NIO file
channels) APIs.name
- the name of the Policy to be createdFileOpenMBean
that represents the "File Open" policy
for this resource manager.void destroyFileOpen(FileOpenMBean fileOpenMBean)
fileOpenMBean
- The FileOpenMBean to be removed from the resource manager.HeapRetainedMBean getHeapRetained()
HeapRetainedMBean createHeapRetained(java.lang.String name)
HeapRetainedMBean
which is created will
have this resource manager as its parent and must be destroyed with the
destroyHeapRetained(HeapRetainedMBean)
method.
The "Heap Retained" policy tracks the amount of Heap memory retained(in
use) by the Partition.name
- the name of the Policy to be createdHeapRetainedMBean
that represents the "Heap Retained"
policy for this resource manager.void destroyHeapRetained(HeapRetainedMBean heapRetainedMBean)
heapRetainedMBean
- The HeapRetainedMBean to be removed from the resource manager.CpuUtilizationMBean getCpuUtilization()
CpuUtilizationMBean createCpuUtilization(java.lang.String name)
CpuUtilizationMBean
which is created will
have this resource manager as its parent and must be destroyed with the
destroyCpuUtilization(CpuUtilizationMBean)
method.
The "CPU Utilization" resource type tracks the percentage of CPU time utilized by
a Domain Partition with respect to the available CPU time to the Server
runtime.name
- the name of the Policy to be createdCpuUtilizationMBean
that represents the "CPU Utilization"
policy for this resource manager.void destroyCpuUtilization(CpuUtilizationMBean cpuUtilizationMBean)
cpuUtilizationMBean
- The CpuUtilizationMBean to be removed from the
resource manager.RestartLoopProtectionMBean getRestartLoopProtection()