public interface ControlPlaneMonitorService
| Modifier and Type | Field and Description |
|---|---|
static long |
TIMEOUT_MILLIS |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Set<String>> |
availableResources(NodeId nodeId,
ControlResource.Type resourceType)
Obtains a list of names of available resources.
|
default Set<String> |
availableResourcesSync(NodeId nodeId,
ControlResource.Type resourceType)
Synchronous version of availableResource.
|
CompletableFuture<ControlLoadSnapshot> |
getLoad(NodeId nodeId,
ControlMetricType type,
int duration,
TimeUnit unit,
Optional<DeviceId> deviceId)
Obtains snapshot of control plane load of a specific device with the
projected range.
|
CompletableFuture<ControlLoadSnapshot> |
getLoad(NodeId nodeId,
ControlMetricType type,
int duration,
TimeUnit unit,
String resourceName)
Obtains snapshot of control plane load of a specific resource with the
projected range.
|
CompletableFuture<ControlLoadSnapshot> |
getLoad(NodeId nodeId,
ControlMetricType type,
Optional<DeviceId> deviceId)
Obtains snapshot of control plane load of a specific device.
|
CompletableFuture<ControlLoadSnapshot> |
getLoad(NodeId nodeId,
ControlMetricType type,
String resourceName)
Obtains snapshot of control plane load of a specific resource.
|
default ControlLoadSnapshot |
getLoadSync(NodeId nodeId,
ControlMetricType type,
int duration,
TimeUnit unit,
Optional<DeviceId> deviceId)
Synchronous version of getLoad.
|
default ControlLoadSnapshot |
getLoadSync(NodeId nodeId,
ControlMetricType type,
int duration,
TimeUnit unit,
String resourceName)
Synchronous version of getLoad.
|
default ControlLoadSnapshot |
getLoadSync(NodeId nodeId,
ControlMetricType type,
Optional<DeviceId> deviceId)
Synchronous version of getLoad.
|
default ControlLoadSnapshot |
getLoadSync(NodeId nodeId,
ControlMetricType type,
String resourceName)
Synchronous version of getLoad.
|
void |
updateMetric(ControlMetric controlMetric,
int updateIntervalInMinutes,
Optional<DeviceId> deviceId)
Adds a new control metric value with a certain update interval.
|
void |
updateMetric(ControlMetric controlMetric,
int updateIntervalInMinutes,
String resourceName)
Adds a new control metric value with a certain update interval.
|
static final long TIMEOUT_MILLIS
void updateMetric(ControlMetric controlMetric, int updateIntervalInMinutes, Optional<DeviceId> deviceId)
controlMetric - control plane metric (e.g., control
message rate, cpu, memory, etc.)updateIntervalInMinutes - value update interval (in minute)deviceId - device identifiervoid updateMetric(ControlMetric controlMetric, int updateIntervalInMinutes, String resourceName)
controlMetric - control plane metric (e.g., disk and
network metrics)updateIntervalInMinutes - value update interval (in minute)resourceName - resource nameCompletableFuture<ControlLoadSnapshot> getLoad(NodeId nodeId, ControlMetricType type, Optional<DeviceId> deviceId)
nodeId - node identifiertype - control metric typedeviceId - device identifierdefault ControlLoadSnapshot getLoadSync(NodeId nodeId, ControlMetricType type, Optional<DeviceId> deviceId)
nodeId - node identifiertype - control metric typedeviceId - device identifierCompletableFuture<ControlLoadSnapshot> getLoad(NodeId nodeId, ControlMetricType type, String resourceName)
nodeId - node identifiertype - control metric typeresourceName - resource namedefault ControlLoadSnapshot getLoadSync(NodeId nodeId, ControlMetricType type, String resourceName)
nodeId - node identifiertype - control metric typeresourceName - resource nameCompletableFuture<ControlLoadSnapshot> getLoad(NodeId nodeId, ControlMetricType type, int duration, TimeUnit unit, Optional<DeviceId> deviceId)
nodeId - node identifiertype - control metric typeduration - projected durationunit - projected time unitdeviceId - device identifierdefault ControlLoadSnapshot getLoadSync(NodeId nodeId, ControlMetricType type, int duration, TimeUnit unit, Optional<DeviceId> deviceId)
nodeId - node identifiertype - control metric typeduration - projected durationunit - projected time unitdeviceId - device identifierCompletableFuture<ControlLoadSnapshot> getLoad(NodeId nodeId, ControlMetricType type, int duration, TimeUnit unit, String resourceName)
nodeId - node identifiertype - control metric typeduration - projected durationunit - projected time unitresourceName - resource namedefault ControlLoadSnapshot getLoadSync(NodeId nodeId, ControlMetricType type, int duration, TimeUnit unit, String resourceName)
nodeId - node identifiertype - control metric typeduration - projected durationunit - projected time unitresourceName - resource nameCompletableFuture<Set<String>> availableResources(NodeId nodeId, ControlResource.Type resourceType)
nodeId - node identifierresourceType - resource typedefault Set<String> availableResourcesSync(NodeId nodeId, ControlResource.Type resourceType)
nodeId - node identifierresourceType - resource type