Uses of Class
jdk.management.resource.ResourceType
-
Packages that use ResourceType Package Description jdk.management.resource Resource tracking contexts, meters, and factories. -
-
Uses of ResourceType in jdk.management.resource
Fields in jdk.management.resource declared as ResourceType Modifier and Type Field Description static ResourceType
ResourceType. DATAGRAM_OPEN
DATAGRAM_OPEN - number of open datagram sockets.static ResourceType
ResourceType. DATAGRAM_READ
DATAGRAM_READ - number of bytes of datagrams read.static ResourceType
ResourceType. DATAGRAM_RECEIVED
DATAGRAM_RECIEVED - number of datagrams received.static ResourceType
ResourceType. DATAGRAM_SENT
DATAGRAM_SENT - number of datagrams sent.static ResourceType
ResourceType. DATAGRAM_WRITE
DATAGRAM_WRITE - number of bytes of datagrams written.static ResourceType
ResourceType. FILE_OPEN
FILE_OPEN - number of open files.static ResourceType
ResourceType. FILE_READ
FILE_READ - number of bytes read from files.static ResourceType
ResourceType. FILE_WRITE
FILE_WRITE - number of bytes written to files.static ResourceType
ResourceType. FILEDESCRIPTOR_OPEN
FILEDESCRIPTOR_OPEN - number of open file descriptors.static ResourceType
ResourceType. HEAP_ALLOCATED
HEAP_ALLOCATED - running total of heap allocations in bytes.static ResourceType
ResourceType. HEAP_RETAINED
HEAP_RETAINED - number of bytes of heap memory in use.static ResourceType
ResourceType. SOCKET_OPEN
SOCKET_OPEN - number of open sockets.static ResourceType
ResourceType. SOCKET_READ
SOCKET_READ - number of bytes read from sockets.static ResourceType
ResourceType. SOCKET_WRITE
SOCKET_WRITE - number of bytes written to sockets.static ResourceType
ResourceType. STDERR_WRITE
STDERR_WRITE - number of bytes written to the standard error stream.static ResourceType
ResourceType. STDIN_READ
STDIN_READ - number of bytes read from the standard input stream.static ResourceType
ResourceType. STDOUT_WRITE
STDOUT_WRITE - number of bytes written to the standard output stream.static ResourceType
ResourceType. THREAD_CPU
THREAD_CPU - amount of cpu time used by threads, in nanoseconds.static ResourceType
ResourceType. THREAD_CREATED
THREAD_CREATED - number of threads created and active.Methods in jdk.management.resource that return ResourceType Modifier and Type Method Description ResourceType
ResourceMeter. getType()
Returns theResourceType
.ResourceType
SimpleMeter. getType()
static ResourceType
ResourceType. of(String name)
Returns a ResourceType for the named resource.Methods in jdk.management.resource that return types with arguments of type ResourceType Modifier and Type Method Description Set<ResourceType>
ResourceContextFactory. supportedResourceTypes()
Returns a read-only Set of the builtin ResourceTypes available in the current runtime.Methods in jdk.management.resource with parameters of type ResourceType Modifier and Type Method Description static BoundedMeter
BoundedMeter. create(ResourceType type, long bound)
Returns a new BoundedMeter with the type and upper bound.static BoundedMeter
BoundedMeter. create(ResourceType type, long bound, ResourceApprover approver)
Returns a new BoundedMeter with the type, upper bound, and approver.static BoundedMeter
BoundedMeter. create(ResourceType type, long bound, ResourceRequest parent)
Returns a new BoundedMeter with the type, upper bound, and parent.static BoundedMeter
BoundedMeter. create(ResourceType type, long bound, ResourceRequest parent, ResourceApprover approver)
Returns a new BoundedMeter with the type, upper bound, parent, and approver.static NotifyingMeter
NotifyingMeter. create(ResourceType type, ResourceApprover approver)
Returns a new NotifyingMeter with the type and approver.static NotifyingMeter
NotifyingMeter. create(ResourceType type, ResourceRequest parent, ResourceApprover approver)
Returns a new NotifyingMeter with the type, approver and parent approver.static SimpleMeter
SimpleMeter. create(ResourceType type)
Returns a new SimpleMeter with the ResourceType.static SimpleMeter
SimpleMeter. create(ResourceType type, ResourceRequest parent)
Returns a new SimpleMeter with the ResourceType and allocating from a parent.static ThrottledMeter
ThrottledMeter. create(ResourceType type, long ratePerSec, ResourceApprover approver)
Create a new meter with a throttle rate and approver.static ThrottledMeter
ThrottledMeter. create(ResourceType type, long ratePerSec, ResourceRequest parent, ResourceApprover approver)
Create a new meter with a throttle rate, parent and approver.static ThrottledMeter
ThrottledMeter. create(ResourceType type, ResourceRequest parent, ResourceApprover approver)
Create a new meter with unlimited rate, parent and approver.ResourceMeter
ResourceContext. getMeter(ResourceType type)
Return the ResourceMeter for the ResourceType.ResourceRequest
ResourceContext. getResourceRequest(ResourceType type)
Returns the ResourceRequest in the ResourceContext that handles requests to allocate or release for the ResourceType.ResourceRequest
ResourceContextFactory. getResourceRequest(ResourceType type)
Returns the ResourceRequest for the current ResourceContext and ResourceType.Constructors in jdk.management.resource with parameters of type ResourceType Constructor Description BoundedMeter(ResourceType type, long bound, ResourceRequest parent, ResourceApprover approver)
Constructor of a BoundedMeter.NotifyingMeter(ResourceType type, ResourceRequest parent, ResourceApprover approver)
Constructor for subclasses.SimpleMeter(ResourceType type, ResourceRequest parent)
Constructor for subclasses.
-