Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractPersister.persistStringAttribute(ResourcePath path,
String key,
String value) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractEvaluatePersister.persistStringAttribute(ResourcePath path,
String key,
String value) |
Modifier and Type | Method and Description |
---|---|
protected void |
NewtsPersister.persistStringAttribute(ResourcePath path,
String key,
String value) |
void |
NewtsPersistOperationBuilder.persistStringAttribute(ResourcePath path,
String key,
String value) |
Modifier and Type | Method and Description |
---|---|
protected void |
BasePersister.persistStringAttribute(ResourcePath path,
String key,
String value) |
Modifier and Type | Method and Description |
---|---|
Set<ResourcePath> |
ResourceStorageDao.children(ResourcePath path,
int depth)
Retrieves the set of child paths one level bellow the given
path which contain one or more metrics at the given depth.
|
Modifier and Type | Method and Description |
---|---|
Set<ResourcePath> |
ResourceStorageDao.children(ResourcePath path,
int depth)
Retrieves the set of child paths one level bellow the given
path which contain one or more metrics at the given depth.
|
boolean |
ResourceStorageDao.delete(ResourcePath path)
Deletes all of the resources and metric bellow
the given path.
|
boolean |
ResourceStorageDao.exists(ResourcePath path,
int depth)
Verifies if a path contains one or more metrics
at the given depth.
|
boolean |
ResourceStorageDao.existsWithin(ResourcePath path,
int depth)
Verifies if a path contains one or more metrics within
the given depth.
|
Set<OnmsAttribute> |
ResourceStorageDao.getAttributes(ResourcePath path)
Retrieves the set of (resource-level) attributes stored at the given path.
|
Map<String,String> |
ResourceStorageDao.getMetaData(ResourcePath path)
Retrieves the meta-data stored at the given path.
|
String |
ResourceStorageDao.getStringAttribute(ResourcePath path,
String key)
Returns the value for the given (resource-level) attribute, or null if it does not exist.
|
Map<String,String> |
ResourceStorageDao.getStringAttributes(ResourcePath path)
Returns the value for the given (resource-level) attribute, or null if it does not exist.
|
void |
ResourceStorageDao.setStringAttribute(ResourcePath path,
String key,
String value)
Sets the specified (resource-level) attribute at the given path.
|
void |
ResourceStorageDao.updateMetricToResourceMappings(ResourcePath path,
Map<String,String> metricsNameToResourceNames)
Maps the given metric names to the their associated resources names.
|
Modifier and Type | Method and Description |
---|---|
protected static ResourcePath |
NodeResourceType.getResourcePathForNode(OnmsNode node) |
protected static ResourcePath |
NewtsResourceStorageDao.toChildResourcePath(ResourcePath parent,
String resourceId) |
Modifier and Type | Method and Description |
---|---|
Set<ResourcePath> |
EvaluateResourceStorageDao.children(ResourcePath path,
int depth) |
Set<ResourcePath> |
NewtsResourceStorageDao.children(ResourcePath path,
int depth) |
Set<ResourcePath> |
FilesystemResourceStorageDao.children(ResourcePath path,
int depth) |
Modifier and Type | Method and Description |
---|---|
Set<ResourcePath> |
EvaluateResourceStorageDao.children(ResourcePath path,
int depth) |
Set<ResourcePath> |
NewtsResourceStorageDao.children(ResourcePath path,
int depth) |
Set<ResourcePath> |
FilesystemResourceStorageDao.children(ResourcePath path,
int depth) |
boolean |
EvaluateResourceStorageDao.delete(ResourcePath path) |
boolean |
NewtsResourceStorageDao.delete(ResourcePath path) |
boolean |
FilesystemResourceStorageDao.delete(ResourcePath path) |
boolean |
EvaluateResourceStorageDao.exists(ResourcePath path,
int depth) |
boolean |
NewtsResourceStorageDao.exists(ResourcePath path,
int depth) |
boolean |
FilesystemResourceStorageDao.exists(ResourcePath path,
int depth) |
boolean |
EvaluateResourceStorageDao.existsWithin(ResourcePath path,
int depth) |
boolean |
NewtsResourceStorageDao.existsWithin(ResourcePath path,
int depth) |
boolean |
FilesystemResourceStorageDao.existsWithin(ResourcePath path,
int depth) |
Set<OnmsAttribute> |
EvaluateResourceStorageDao.getAttributes(ResourcePath path) |
Set<OnmsAttribute> |
NewtsResourceStorageDao.getAttributes(ResourcePath path) |
Set<OnmsAttribute> |
FilesystemResourceStorageDao.getAttributes(ResourcePath path) |
Map<String,String> |
EvaluateResourceStorageDao.getMetaData(ResourcePath path) |
Map<String,String> |
NewtsResourceStorageDao.getMetaData(ResourcePath path) |
Map<String,String> |
FilesystemResourceStorageDao.getMetaData(ResourcePath path) |
OnmsResource |
GenericIndexResourceType.getResourceByPath(ResourcePath path,
OnmsResource parent) |
String |
EvaluateResourceStorageDao.getStringAttribute(ResourcePath path,
String key) |
String |
NewtsResourceStorageDao.getStringAttribute(ResourcePath path,
String key) |
String |
FilesystemResourceStorageDao.getStringAttribute(ResourcePath path,
String key) |
Map<String,String> |
EvaluateResourceStorageDao.getStringAttributes(ResourcePath path) |
Map<String,String> |
NewtsResourceStorageDao.getStringAttributes(ResourcePath path) |
Map<String,String> |
FilesystemResourceStorageDao.getStringAttributes(ResourcePath path) |
void |
EvaluateResourceStorageDao.setStringAttribute(ResourcePath path,
String key,
String value) |
void |
NewtsResourceStorageDao.setStringAttribute(ResourcePath path,
String key,
String value) |
void |
FilesystemResourceStorageDao.setStringAttribute(ResourcePath path,
String key,
String value) |
protected static ResourcePath |
NewtsResourceStorageDao.toChildResourcePath(ResourcePath parent,
String resourceId) |
void |
EvaluateResourceStorageDao.updateMetricToResourceMappings(ResourcePath path,
Map<String,String> metricsNameToResourceNames) |
void |
NewtsResourceStorageDao.updateMetricToResourceMappings(ResourcePath path,
Map<String,String> metricsNameToResourceNames) |
void |
FilesystemResourceStorageDao.updateMetricToResourceMappings(ResourcePath path,
Map<String,String> metricsNameToResourceNames) |
Constructor and Description |
---|
LazyResourceAttributeLoader(ResourceStorageDao resourceStorageDao,
ResourcePath path) |
Modifier and Type | Method and Description |
---|---|
static ResourcePath |
ResourcePath.get(Collection<String> pathElements)
Convenience method.
|
static ResourcePath |
ResourcePath.get(Path path)
Convenience method.
|
static ResourcePath |
ResourcePath.get(ResourcePath parent,
Iterable<String> path)
Convenience method.
|
static ResourcePath |
ResourcePath.get(ResourcePath parent,
String... path)
Convenience method.
|
static ResourcePath |
ResourcePath.get(String... path)
Convenience method.
|
static ResourcePath |
ResourcePath.get(String prefix,
Path path)
Convenience method.
|
ResourcePath |
OnmsResource.getPath() |
static ResourcePath |
ResourceTypeUtils.getResourcePathWithRepository(RrdRepository repository,
Path resource)
Retrieves the ResourcePath relative to rrd.base.dir.
|
Modifier and Type | Method and Description |
---|---|
int |
ResourcePath.compareTo(ResourcePath other) |
static ResourcePath |
ResourcePath.get(ResourcePath parent,
Iterable<String> path)
Convenience method.
|
static ResourcePath |
ResourcePath.get(ResourcePath parent,
String... path)
Convenience method.
|
int |
ResourcePath.relativeDepth(ResourcePath child)
Determines the relative depth of a child path.
|
Constructor and Description |
---|
OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes,
List<OnmsResource> resources,
ResourcePath path)
Constructor for OnmsResource.
|
OnmsResource(String name,
String label,
OnmsResourceType resourceType,
Set<OnmsAttribute> attributes,
ResourcePath path)
Constructor for OnmsResource.
|
ResourcePath(ResourcePath parent,
Iterable<String> path) |
ResourcePath(ResourcePath parent,
String... path) |
Modifier and Type | Method and Description |
---|---|
static ResourcePath |
NewtsUtils.toResourcePath(String resourceId)
Converts a Newts resource id to a
ResourcePath . |
Modifier and Type | Method and Description |
---|---|
static void |
NewtsUtils.addIndicesToAttributes(ResourcePath path,
Map<String,String> attributes)
Extends the attribute map with indices used by the
NewtsResourceStorageDao . |
static org.opennms.newts.api.search.Query |
NewtsUtils.findResourcesWithMetricsAtDepth(ResourcePath path,
int depth)
Constructs a query used to find all of the resources that have
one or more metrics at the given depth bellow the path.
|
static String |
NewtsUtils.toResourceId(ResourcePath path)
Converts a
ResourcePath to a Newts resource id. |
Modifier and Type | Method and Description |
---|---|
static String |
Sftp3gppUtils.getLastFilename(ResourceStorageDao resourceStorageDao,
String serviceName,
ResourcePath path,
String targetPath)
Gets the last filename.
|
static void |
Sftp3gppUtils.setLastFilename(ResourceStorageDao resourceStorageDao,
String serviceName,
ResourcePath path,
String targetPath,
String filename)
Sets the last filename.
|
Copyright © 2017. All rights reserved.