Resource Management is a commercial feature that must be unlocked before being used. To learn more about commercial features and how to unlock them visit http://www.oracle.com/technetwork/java/javaseproducts/
Skip navigation links
Resource Management
A B C D E F G H I J L M N O R S T U V 

A

addResourceMeter(ResourceMeter) - Method in interface jdk.management.resource.ResourceContext
Add a ResourceMeter.

B

bindThreadContext() - Method in interface jdk.management.resource.ResourceContext
Binds the ResourceContext to the current thread.
BoundedMeter - Class in jdk.management.resource
A BoundedMeter enforces an upper bound, provides an approver callback for changes and allocates from an optional parent.
BoundedMeter(ResourceType, long, ResourceRequest, ResourceApprover) - Constructor for class jdk.management.resource.BoundedMeter
Constructor of a BoundedMeter.
boundThreads() - Method in interface jdk.management.resource.ResourceContext
Returns a Stream of threads bound to the ResourceContext.

C

close() - Method in interface jdk.management.resource.ResourceContext
Close the ResourceContext, unbinding from all threads and removing all meters.
contexts() - Method in class jdk.management.resource.ResourceContextFactory
Returns a Stream of the existing ResourceContexts.
create(ResourceType, long) - Static method in class jdk.management.resource.BoundedMeter
Returns a new BoundedMeter with the type and upper bound.
create(ResourceType, long, ResourceRequest) - Static method in class jdk.management.resource.BoundedMeter
Returns a new BoundedMeter with the type, upper bound, and parent.
create(ResourceType, long, ResourceRequest, ResourceApprover) - Static method in class jdk.management.resource.BoundedMeter
Returns a new BoundedMeter with the type, upper bound, parent, and approver.
create(ResourceType, long, ResourceApprover) - Static method in class jdk.management.resource.BoundedMeter
Returns a new BoundedMeter with the type, upper bound, and approver.
create(ResourceType, ResourceApprover) - Static method in class jdk.management.resource.NotifyingMeter
Returns a new NotifyingMeter with the type and approver.
create(ResourceType, ResourceRequest, ResourceApprover) - Static method in class jdk.management.resource.NotifyingMeter
Returns a new NotifyingMeter with the type, approver and parent approver.
create(String) - Method in class jdk.management.resource.ResourceContextFactory
Create a new ResourceContext.
create(ResourceType) - Static method in class jdk.management.resource.SimpleMeter
Returns a new SimpleMeter with the ResourceType.
create(ResourceType, ResourceRequest) - Static method in class jdk.management.resource.SimpleMeter
Returns a new SimpleMeter with the ResourceType and allocating from a parent.
create(ResourceType, long, ResourceApprover) - Static method in class jdk.management.resource.ThrottledMeter
Create a new meter with a throttle rate and approver.
create(ResourceType, ResourceRequest, ResourceApprover) - Static method in class jdk.management.resource.ThrottledMeter
Create a new meter with unlimited rate, parent and approver.
create(ResourceType, long, ResourceRequest, ResourceApprover) - Static method in class jdk.management.resource.ThrottledMeter
Create a new meter with a throttle rate, parent and approver.

D

DATAGRAM_OPEN - Static variable in class jdk.management.resource.ResourceType
DATAGRAM_OPEN - number of open datagram sockets.
DATAGRAM_READ - Static variable in class jdk.management.resource.ResourceType
DATAGRAM_READ - number of bytes of datagrams read.
DATAGRAM_RECEIVED - Static variable in class jdk.management.resource.ResourceType
DATAGRAM_RECIEVED - number of datagrams received.
DATAGRAM_SENT - Static variable in class jdk.management.resource.ResourceType
DATAGRAM_SENT - number of datagrams sent.
DATAGRAM_WRITE - Static variable in class jdk.management.resource.ResourceType
DATAGRAM_WRITE - number of bytes of datagrams written.

E

equals(Object) - Method in class jdk.management.resource.ResourceType
Indicates whether some other object is "equal to" this one based on the name.
equals(Object) - Method in class jdk.management.resource.SimpleMeter
Indicates whether some other object is the same object as this one.

F

FILE_OPEN - Static variable in class jdk.management.resource.ResourceType
FILE_OPEN - number of open files.
FILE_READ - Static variable in class jdk.management.resource.ResourceType
FILE_READ - number of bytes read from files.
FILE_WRITE - Static variable in class jdk.management.resource.ResourceType
FILE_WRITE - number of bytes written to files.
FILEDESCRIPTOR_OPEN - Static variable in class jdk.management.resource.ResourceType
FILEDESCRIPTOR_OPEN - number of open file descriptors.

G

getAccuracy() - Method in interface jdk.management.resource.ResourceId
Returns the accuracy of the measurement for the current resource request.
getAllocated() - Method in interface jdk.management.resource.ResourceMeter
Returns the cumulative total of allocations from the ResourceMeter.
getAllocated() - Method in class jdk.management.resource.SimpleMeter
 
getApprover() - Method in class jdk.management.resource.NotifyingMeter
Return the ResourceApprover.
getBound() - Method in class jdk.management.resource.BoundedMeter
Returns the upper bound for the meter.
getCurrentRate() - Method in class jdk.management.resource.ThrottledMeter
Returns an estimate of the current rate in amount per second.
getGranularity() - Method in class jdk.management.resource.NotifyingMeter
Returns the granularity.
getInstance() - Static method in class jdk.management.resource.ResourceContextFactory
Returns the factory for ResourceContexts if enabled in the runtime.
getMeter(ResourceType) - Method in interface jdk.management.resource.ResourceContext
Return the ResourceMeter for the ResourceType.
getName() - Method in interface jdk.management.resource.ResourceContext
Return the name of the ResourceContext.
getName() - Method in interface jdk.management.resource.ResourceId
Returns the name of the resource.
getName() - Method in class jdk.management.resource.ResourceType
Returns the name of the resource.
getParent() - Method in class jdk.management.resource.SimpleMeter
Returns the parent ResourceRequest.
getRatePerSec() - Method in class jdk.management.resource.ThrottledMeter
Returns the current throttle rate per second.
getResourceRequest(ResourceType) - Method in interface jdk.management.resource.ResourceContext
Returns the ResourceRequest in the ResourceContext that handles requests to allocate or release for the ResourceType.
getResourceRequest(ResourceType) - Method in class jdk.management.resource.ResourceContextFactory
Returns the ResourceRequest for the current ResourceContext and ResourceType.
getThreadContext() - Method in class jdk.management.resource.ResourceContextFactory
Returns the ResourceContext associated with the current thread.
getThreadContext(Thread) - Method in class jdk.management.resource.ResourceContextFactory
Returns the ResourceContext associated with the thread.
getTotalsContext() - Method in class jdk.management.resource.ResourceContextFactory
Returns a ResourceContext that provides the totals for all ResourceContexts.
getType() - Method in interface jdk.management.resource.ResourceMeter
Returns the ResourceType.
getType() - Method in class jdk.management.resource.SimpleMeter
 
getUnassignedContext() - Method in class jdk.management.resource.ResourceContextFactory
Returns the ResourceContext that is the default when a thread is not associated with a ResourceContext.
getValue() - Method in interface jdk.management.resource.ResourceMeter
Returns the current net value of the ResourceMeter.
getValue() - Method in class jdk.management.resource.SimpleMeter
 

H

hashCode() - Method in class jdk.management.resource.ResourceType
Returns a hash code value for this ResourceType based on the name.
hashCode() - Method in class jdk.management.resource.SimpleMeter
Returns the hashcode from for this object.
HEAP_ALLOCATED - Static variable in class jdk.management.resource.ResourceType
HEAP_ALLOCATED - running total of heap allocations in bytes.
HEAP_RETAINED - Static variable in class jdk.management.resource.ResourceType
HEAP_RETAINED - number of bytes of heap memory in use.

I

improve() - Method in enum jdk.management.resource.ResourceAccuracy
Returns the next improved ResourceAccuracy.
isEnabled() - Static method in class jdk.management.resource.ResourceContextFactory
Returns true if and only if ResourceManagement is enabled.

J

jdk.management.resource - package jdk.management.resource
Resource tracking contexts, meters, and factories.

L

lookup(String) - Method in class jdk.management.resource.ResourceContextFactory
Returns the ResourceContext given by name.

M

meters() - Method in interface jdk.management.resource.ResourceContext
Returns a Stream of ResourceMeters in the ResourceContext.

N

NotifyingMeter - Class in jdk.management.resource
A NotifyingMeter provides an approver callback for changes and allocates from an optional parent.
NotifyingMeter(ResourceType, ResourceRequest, ResourceApprover) - Constructor for class jdk.management.resource.NotifyingMeter
Constructor for subclasses.

O

of(String) - Static method in class jdk.management.resource.ResourceType
Returns a ResourceType for the named resource.

R

removeResourceMeter(ResourceMeter) - Method in interface jdk.management.resource.ResourceContext
Remove the ResourceMeter from the ResourceContext.
request(ResourceMeter, long, long, ResourceId) - Method in interface jdk.management.resource.ResourceApprover
Requests approval to allocate or release a resource from a ResourceMeter.
request(long, ResourceId) - Method in interface jdk.management.resource.ResourceRequest
Request or release amount units of the resource.
request(long, ResourceId) - Method in class jdk.management.resource.SimpleMeter
Returns the validated and allocated amount and adjusts the meter.
requestAccurateUpdate(ResourceAccuracy) - Method in interface jdk.management.resource.ResourceContext
Request an update of the metrics for the ResourceContext.
ResourceAccuracy - Enum in jdk.management.resource
ResourceAccuracy reflects the accuracy of an amount being requested though a ResourceMeter.
ResourceApprover - Interface in jdk.management.resource
A ResourceApprover is a callback to approve resource requests.
ResourceContext - Interface in jdk.management.resource
A set of ResourceMeters that accumulate resource usage by threads.
ResourceContextFactory - Class in jdk.management.resource
The ResourceContextFactory provides access to ResourceContext functions.
ResourceId - Interface in jdk.management.resource
ResourceId provides a name and accuracy for a resource instance.
ResourceMeter - Interface in jdk.management.resource
A resource meter with a current value and a ResourceType.
ResourceRequest - Interface in jdk.management.resource
A ResourceRequest is an interface to allocate or release resources.
ResourceRequestDeniedException - Exception in jdk.management.resource
ResourceRequestDeniedException indicates a resource exception.
ResourceRequestDeniedException() - Constructor for exception jdk.management.resource.ResourceRequestDeniedException
Constructs a new ResourceRequestDeniedException with null as its detail message.
ResourceRequestDeniedException(String) - Constructor for exception jdk.management.resource.ResourceRequestDeniedException
Constructs a new ResourceRequestDeniedException with the specified detail message.
ResourceRequestDeniedException(String, Throwable) - Constructor for exception jdk.management.resource.ResourceRequestDeniedException
Constructs a new ResourceRequestDeniedException with the specified detail message and cause.
ResourceType - Class in jdk.management.resource
A ResourceType with a name.

S

setBound(long) - Method in class jdk.management.resource.BoundedMeter
Sets the bound.
setGranularity(long) - Method in class jdk.management.resource.NotifyingMeter
Sets the granularity.
setRatePerSec(long) - Method in class jdk.management.resource.ThrottledMeter
Sets the throttle rate per second.
SimpleMeter - Class in jdk.management.resource
A SimpleMeter counts resource requests and releases and allocates from an optional parent.
SimpleMeter(ResourceType, ResourceRequest) - Constructor for class jdk.management.resource.SimpleMeter
Constructor for subclasses.
SOCKET_OPEN - Static variable in class jdk.management.resource.ResourceType
SOCKET_OPEN - number of open sockets.
SOCKET_READ - Static variable in class jdk.management.resource.ResourceType
SOCKET_READ - number of bytes read from sockets.
SOCKET_WRITE - Static variable in class jdk.management.resource.ResourceType
SOCKET_WRITE - number of bytes written to sockets.
STDERR_WRITE - Static variable in class jdk.management.resource.ResourceType
STDERR_WRITE - number of bytes written to the standard error stream.
STDIN_READ - Static variable in class jdk.management.resource.ResourceType
STDIN_READ - number of bytes read from the standard input stream.
STDOUT_WRITE - Static variable in class jdk.management.resource.ResourceType
STDOUT_WRITE - number of bytes written to the standard output stream.
supportedResourceTypes() - Method in class jdk.management.resource.ResourceContextFactory
Returns a read-only Set of the builtin ResourceTypes available in the current runtime.

T

THREAD_CPU - Static variable in class jdk.management.resource.ResourceType
THREAD_CPU - amount of cpu time used by threads, in nanoseconds.
THREAD_CREATED - Static variable in class jdk.management.resource.ResourceType
THREAD_CREATED - number of threads created and active.
ThrottledMeter - Class in jdk.management.resource
A ThrottledMeter with bandwidth limit, an approver callback for requests and allocates from an optional parent.
toString() - Method in class jdk.management.resource.BoundedMeter
 
toString() - Method in class jdk.management.resource.ResourceType
 
toString() - Method in class jdk.management.resource.SimpleMeter
Returns a string representation of the meter.
toString() - Method in class jdk.management.resource.ThrottledMeter
 

U

unbindThreadContext() - Static method in interface jdk.management.resource.ResourceContext
Unbind the current thread from the ResourceContext.

V

validate(long, long, ResourceId) - Method in class jdk.management.resource.BoundedMeter
 
validate(long, long, ResourceId) - Method in class jdk.management.resource.NotifyingMeter
Returns the amount validated by the approver.
validate(long, long, ResourceId) - Method in class jdk.management.resource.SimpleMeter
Validate the amount returning the validated amount.
validate(long, long, ResourceId) - Method in class jdk.management.resource.ThrottledMeter
Validates the amount.
valueOf(String) - Static method in enum jdk.management.resource.ResourceAccuracy
Returns the enum constant of this type with the specified name.
values() - Static method in enum jdk.management.resource.ResourceAccuracy
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I J L M N O R S T U V 
Skip navigation links
Resource Management


Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.