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(Resource<?,?,?,?,?> resource,
AvailType availType)
Generates an ID for an
AvailInstance. |
static ID |
generateMetricInstanceId(Resource<?,?,?,?,?> resource,
MetricType metricType)
Generates an ID for an
MetricInstance. |
static ID |
generateResourceId(String feedId,
ManagedServer managedServer,
String idPart)
Generates an ID for a resource.
|
static InventoryIdUtil.ResourceIdParts |
parseResourceId(String resourceId)
Given a resource ID generated via
generateResourceId(String, ManagedServer, String)
this returns the different parts that make up that resource ID. |
public static InventoryIdUtil.ResourceIdParts parseResourceId(String resourceId)
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, ManagedServer managedServer, String idPart)
feedId - the ID of the feed that owns the resource whose ID is to be generatedmanagedServer - the managed server where the resource is foundidPart - a unique string that identifies the resource within the managed serverpublic static ID generateMetricInstanceId(Resource<?,?,?,?,?> resource, MetricType metricType)
MetricInstance.resource - the resource that owns the MetricInstancemetricType - the type of the MetricInstance whose ID is being generatedpublic static ID generateAvailInstanceId(Resource<?,?,?,?,?> resource, 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.