public class SystemBackend extends BaseBackend
ORDER_CPU_GROUP, ORDER_DEFAULT_GROUP, ORDER_IO_GROUP, ORDER_MEMORY_GROUP, ORDER_NETWORK_GROUP, ORDER_THREAD_GROUP, ORDER_USER_GROUP
Constructor and Description |
---|
SystemBackend(HostInfoDAO hostInfoDAO,
NetworkInterfaceInfoDAO netInfoDAO,
VmInfoDAO vmInfoDAO,
Version version,
VmStatusChangeNotifier notifier,
UserNameUtil userNameUtil) |
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() |
equals, getDescription, getName, getObserveNewJvm, getVendor, getVersion, hashCode, setObserveNewJvm, toString
public SystemBackend(HostInfoDAO hostInfoDAO, NetworkInterfaceInfoDAO netInfoDAO, VmInfoDAO vmInfoDAO, Version version, VmStatusChangeNotifier notifier, UserNameUtil userNameUtil)
public boolean activate()
Backend
Backend
. Based on the current configuration,
begin pushing data to the Storage
layer.
If the Backend
is already active, this method should have no
effect.
Backend
is
registered.true
if the backend was activated successfully or
already active. false
if there was an errorpublic 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.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
.Copyright © 2013. All rights reserved.