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(String feedId,
ID resourceId,
AvailType<?> availType)
Generates an ID for an
AvailInstance. |
static ID |
generateMetricInstanceId(String feedId,
ID resourceId,
MetricType<?> metricType)
Generates an ID for an
MetricInstance. |
static ID |
generateResourceId(MonitoredEndpoint endpoint,
String idPart)
Generates an ID for a resource.
|
static InventoryIdUtil.ResourceIdParts |
parseResourceId(String resourceId)
Given a resource ID generated via
InventoryIdUtil#generateResourceId(ManagedServer, String)
this returns the different parts that make up that resource ID. |
public static InventoryIdUtil.ResourceIdParts parseResourceId(String resourceId)
InventoryIdUtil#generateResourceId(ManagedServer, String)
this returns the different parts that make up that resource ID.resourceId - the full resource ID to be parsedpublic static ID generateResourceId(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(String feedId, ID resourceId, MetricType<?> metricType)
MetricInstance.resource - the resource that owns the MetricInstancemetricType - the type of the MetricInstance whose ID is being generatedpublic static ID generateAvailInstanceId(String feedId, ID resourceId, AvailType<?> availType)
AvailInstance.resource - the resource that owns the AvailInstanceavailType - the type of the AvailInstance whose ID is being generatedCopyright © 2015 Red Hat, Inc.. All rights reserved.