Modifier and Type | Field and 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.
|
Modifier and Type | Method and Description |
---|---|
ResourceType |
ResourceMeter.getType()
Returns the
ResourceType . |
ResourceType |
SimpleMeter.getType() |
static ResourceType |
ResourceType.of(String name)
Returns a ResourceType for the named resource.
|
Modifier and Type | Method and Description |
---|---|
static SimpleMeter |
SimpleMeter.create(ResourceType type)
Returns a new SimpleMeter with the ResourceType.
|
static BoundedMeter |
BoundedMeter.create(ResourceType type,
long bound)
Returns a new BoundedMeter with the type and upper bound.
|
static ThrottledMeter |
ThrottledMeter.create(ResourceType type,
long ratePerSec,
ResourceApprover approver)
Create a new meter with a throttle rate and approver.
|
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 ThrottledMeter |
ThrottledMeter.create(ResourceType type,
long ratePerSec,
ResourceRequest parent,
ResourceApprover approver)
Create a new meter with a throttle rate, parent and approver.
|
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 SimpleMeter |
SimpleMeter.create(ResourceType type,
ResourceRequest parent)
Returns a new SimpleMeter with the ResourceType and allocating from a parent.
|
static NotifyingMeter |
NotifyingMeter.create(ResourceType type,
ResourceRequest parent,
ResourceApprover approver)
Returns a new NotifyingMeter with the type, approver and parent 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 |
ResourceContextFactory.getResourceRequest(ResourceType type)
Returns the ResourceRequest for the current ResourceContext and ResourceType.
|
ResourceRequest |
ResourceContext.getResourceRequest(ResourceType type)
Returns the ResourceRequest in the ResourceContext that handles
requests to allocate or release for the ResourceType.
|
Constructor and 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.
|
Copyright © 2014, 2015, Oracle and/or its affiliates. All rights reserved.