public class InventoryIdUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InventoryIdUtil.ResourceIdParts |
| Constructor and Description |
|---|
InventoryIdUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ID |
generateAvailInstanceId(ID resourceId,
AvailType<?> availType)
Generates an ID for an
AvailInstance. |
static ID |
generateMetricInstanceId(ID resourceId,
MetricType<?> metricType)
Generates an ID for an
MetricInstance. |
static ID |
generateResourceId(String feedId,
MonitoredEndpoint endpoint,
String idPart)
Generates an ID for a resource.
|
static InventoryIdUtil.ResourceIdParts |
parseResourceId(String resourceId)
Given a resource ID generated via
InventoryIdUtil#generateResourceId(String, ManagedServer, String)
this returns the different parts that make up that resource ID. |
public static InventoryIdUtil.ResourceIdParts parseResourceId(String resourceId)
InventoryIdUtil#generateResourceId(String, ManagedServer, String)
this returns the different parts that make up that resource ID.resourceId - the full resource ID to be parsedpublic static ID generateResourceId(String feedId, MonitoredEndpoint endpoint, String idPart)
feedId - the ID of the feed that owns the resource whose ID is to be generatedendpoint - the endpoint where the resource is foundidPart - a unique string that identifies the resource within the managed serverpublic static ID generateMetricInstanceId(ID resourceId, MetricType<?> metricType)
MetricInstance.resource - the resource that owns the MetricInstancemetricType - the type of the MetricInstance whose ID is being generatedCopyright © 2015 Red Hat, Inc.. All rights reserved.