| Package | Description |
|---|---|
| org.hawkular.inventory.api | |
| org.hawkular.inventory.api.model | |
| org.hawkular.inventory.base |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
EmptyInventory.MetricTypesReadAssociate.associate(Path id) |
Relationship |
EmptyInventory.MetricsReadAssociate.associate(Path id) |
Relationship |
EmptyInventory.ResourcesReadAssociate.associate(Path id) |
Relationship |
EmptyInventory.MetricTypesReadAssociate.associationWith(Path path) |
Relationship |
EmptyInventory.MetricsReadAssociate.associationWith(Path path) |
Relationship |
EmptyInventory.ResourcesReadAssociate.associationWith(Path path) |
default Resources.Read |
Resources.ReadBase.descend(Address firstChild,
Path... furtherChildren)
A shortcut for
get(firstChild).allChildren().get(furtherChildren[0]).allChildren()
.get(furtherChildren[1]).... |
Relationship |
Resources.ReadAssociate.disassociate(Path id)
Removes the
Relationships.WellKnown.isParentOf relationship between the
two resources. |
Relationship |
EmptyInventory.MetricTypesReadAssociate.disassociate(Path id) |
Relationship |
EmptyInventory.MetricsReadAssociate.disassociate(Path id) |
Relationship |
EmptyInventory.ResourcesReadAssociate.disassociate(Path id) |
Tenants.Single |
EmptyInventory.TenantsRead.get(Path path) |
ResourceTypes.Single |
EmptyInventory.ResourceTypesRead.get(Path path) |
MetricTypes.Single |
EmptyInventory.MetricTypesRead.get(Path path) |
MetricTypes.Single |
EmptyInventory.MetricTypesReadAssociate.get(Path id) |
Environments.Single |
EmptyInventory.EnvironmentsRead.get(Path id) |
Feeds.Single |
EmptyInventory.FeedsRead.get(Path id) |
Metrics.Single |
EmptyInventory.MetricsRead.get(Path id) |
Metrics.Single |
EmptyInventory.MetricsReadAssociate.get(Path id) |
Resources.Single |
EmptyInventory.ResourcesRead.get(Path id) |
Resources.Single |
EmptyInventory.ResourcesReadAssociate.get(Path id) |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Path.AbstractBuilder<Impl extends Path> |
static class |
Path.Builder<Impl extends Path> |
static class |
Path.EnvironmentBuilder<Impl extends Path> |
static class |
Path.FeedBuilder<Impl extends Path> |
static class |
Path.MetricBuilder<Impl extends Path> |
static class |
Path.MetricTypeBuilder<Impl extends Path> |
static class |
Path.RelationshipBuilder<Impl extends Path> |
static class |
Path.ResourceBuilder<Impl extends Path> |
static class |
Path.ResourceTypeBuilder<Impl extends Path> |
static class |
Path.TenantBuilder<Impl extends Path> |
| Modifier and Type | Class and Description |
|---|---|
class |
CanonicalPath
A path represents the canonical traversal to an element through the inventory graph.
|
class |
RelativePath
A relative path is used in the API to refer to other entities during association.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
Path.down()
If this path was created by going
up from another path, then this method can be used to go back
down to the previous paths representing some child resource of the resource represented by this path object. |
Path |
Path.down(int distance)
If this path was created by going
up from another path, then this method can be used to go back
down n steps to the previous paths representing some (grand-)child resource of the resource represented by
this path object. |
static Path |
Path.fromPartiallyUntypedString(String path,
CanonicalPath canonicalPathsOrigin,
CanonicalPath relativePathsOrigin,
Class<?> intendedFinalType)
This is mostly meant as a helper to REST API.
|
static Path |
Path.fromPartiallyUntypedString(String path,
Path.TypeProvider typeProvider)
Parses the provided path using the type provider (
Path.TypeProvider)
to figure out the types of segments that don't explicitly mention it. |
static Path |
Path.fromString(String path) |
protected static Path |
Path.fromString(String path,
boolean shouldBeAbsolute,
Path.ExtenderConstructor extenderConstructor,
org.hawkular.inventory.api.model.Path.EnhancedTypeProvider typeProvider) |
Path |
Path.Extender.get() |
protected Path |
RelativePath.newInstance(int startIdx,
int endIdx,
List<Path.Segment> segments) |
protected abstract Path |
Path.newInstance(int startIdx,
int endIx,
List<Path.Segment> segments) |
protected abstract Path |
Path.Extender.newPath(int startIdx,
int endIdx,
List<Path.Segment> segments) |
Path |
Path.up()
Returns a path corresponding to the direct ancestor of the resource represented by this path object.
|
Path |
Path.up(int distance)
Returns a path corresponding to the n-th ancestor in the hierarchy.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<? extends Path> |
Path.ascendingIterator() |
Iterator<? extends Path> |
Path.descendingIterator() |
| Modifier and Type | Method and Description |
|---|---|
String |
Path.Encoder.encode(String prefix,
Path path) |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
BaseResources.ReadAssociate.associate(Path id) |
Relationship |
BaseMetricTypes.ReadAssociate.associate(Path id) |
Relationship |
BaseMetrics.ReadAssociate.associate(Path id) |
Relationship |
BaseResources.ReadAssociate.associationWith(Path path) |
Relationship |
BaseMetricTypes.ReadAssociate.associationWith(Path path) |
Relationship |
BaseMetrics.ReadAssociate.associationWith(Path path) |
Relationship |
BaseResources.ReadAssociate.disassociate(Path id) |
Relationship |
BaseMetricTypes.ReadAssociate.disassociate(Path id) |
Relationship |
BaseMetrics.ReadAssociate.disassociate(Path id) |
Resources.Single |
BaseResources.Read.get(Path id) |
MetricTypes.Single |
BaseMetricTypes.Read.get(Path id) |
MetricTypes.Single |
BaseMetricTypes.ReadAssociate.get(Path id) |
Tenants.Single |
BaseTenants.Read.get(Path id) |
Metrics.Single |
BaseMetrics.Read.get(Path id) |
Metrics.Single |
BaseMetrics.ReadAssociate.get(Path id) |
ResourceTypes.Single |
BaseResourceTypes.Read.get(Path id) |
Environments.Single |
BaseEnvironments.Read.get(Path id) |
Feeds.Single |
BaseFeeds.Read.get(Path id) |
Copyright © 2015 Red Hat, Inc.. All rights reserved.