public class VmCpuBackend extends BaseBackend implements VmStatusListener
VmStatusListener.Status
ORDER_CPU_GROUP, ORDER_DEFAULT_GROUP, ORDER_IO_GROUP, ORDER_MEMORY_GROUP, ORDER_NETWORK_GROUP, ORDER_THREAD_GROUP, ORDER_USER_GROUP
Constructor and Description |
---|
VmCpuBackend(ScheduledExecutorService executor,
VmCpuStatDAO vmCpuStatDao,
Version version,
VmStatusListenerRegistrar registrar) |
Modifier and Type | Method and Description |
---|---|
boolean |
activate()
Activate the
Backend . |
boolean |
deactivate()
Deactivate the
Backend . |
int |
getOrderValue()
Defines a value to be used for assigning an order to
services.
|
boolean |
isActive() |
void |
vmStatusChanged(VmStatusListener.Status newStatus,
int pid) |
equals, getDescription, getName, getObserveNewJvm, getVendor, getVersion, hashCode, setObserveNewJvm, toString
public VmCpuBackend(ScheduledExecutorService executor, VmCpuStatDAO vmCpuStatDao, Version version, VmStatusListenerRegistrar registrar)
public boolean activate()
Backend
public boolean deactivate()
Backend
Backend
. The backend should release any
resources that were obtained as a direct result of a call to
Backend.activate()
. If the Backend
is not active, this
method should have no effect
Backend
is
deregistered.deactivate
in interface Backend
true
if the backend was successfully deactivated or
already inactive. false
if the backend is still active.public boolean isActive()
public int getOrderValue()
Ordered
Ordered.ORDER_DEFAULT_GROUP
.getOrderValue
in interface Ordered
public void vmStatusChanged(VmStatusListener.Status newStatus, int pid)
vmStatusChanged
in interface VmStatusListener
Copyright © 2014. All rights reserved.