|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.axibase.tsd.client.MetaDataService
public class MetaDataService
Provides high-level API to retrieve and update ATSD Metadata Objects (entities, entity groups, metrics).
| Constructor Summary | |
|---|---|
MetaDataService()
|
|
MetaDataService(HttpClientManager httpClientManager)
|
|
| Method Summary | |
|---|---|
boolean |
addGroupEntities(String entityGroupName,
Boolean createEntities,
Entity... entities)
Add specified entities to entity group. |
boolean |
createOrReplaceEntity(Entity entity)
|
boolean |
createOrReplaceEntityGroup(EntityGroup entityGroup)
Create an entity group with specified properties and tags or replace an existing entity group. |
boolean |
createOrReplaceMetric(Metric metric)
|
boolean |
deleteAllGroupEntities(String entityGroupName)
Delete all entities from entity group. |
boolean |
deleteEntity(Entity entity)
|
boolean |
deleteEntityGroup(EntityGroup entityGroup)
|
boolean |
deleteGroupEntities(String entityGroupName,
Entity... entities)
Delete entities from entity group. |
boolean |
deleteMetric(Metric metric)
|
boolean |
replaceGroupEntities(String entityGroupName,
Boolean createEntities,
Entity... entities)
Replace entities in the entity group with the specified collection. |
List<Entity> |
retrieveEntities(Boolean active,
String expression,
TagAppender tagAppender,
Integer limit)
|
Entity |
retrieveEntity(String entityName)
|
List<EntityAndTags> |
retrieveEntityAndTags(String metricName,
String entityName)
|
EntityGroup |
retrieveEntityGroup(String entityGroupName)
|
List<EntityGroup> |
retrieveEntityGroups()
|
List<Entity> |
retrieveGroupEntities(String entityGroupName)
|
List<Entity> |
retrieveGroupEntities(String entityGroupName,
Boolean active,
String expression,
TagAppender tagAppender,
Integer limit)
|
Metric |
retrieveMetric(String metricName)
|
List<Metric> |
retrieveMetrics(Boolean active,
String expression,
TagAppender tagAppender,
Integer limit)
|
List<Metric> |
retrieveMetrics(String entityName,
Boolean active,
String expression,
TagAppender tagAppender,
Integer limit)
|
Set<String> |
retrievePropertyTypes(String entityName,
Long startTime)
|
void |
setHttpClientManager(HttpClientManager httpClientManager)
|
boolean |
updateEntity(Entity entity)
|
boolean |
updateEntityGroup(EntityGroup entityGroup)
Update specified properties and tags for the given entity group. |
boolean |
updateMetric(Metric metric)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaDataService()
public MetaDataService(HttpClientManager httpClientManager)
| Method Detail |
|---|
public void setHttpClientManager(HttpClientManager httpClientManager)
public List<Metric> retrieveMetrics(Boolean active,
String expression,
TagAppender tagAppender,
Integer limit)
throws AtsdClientException,
AtsdServerException
active - Filter metrics by lastInsertTime. If active = true, only metrics with
positive lastInsertTime are included in the response.expression - Specify EL expression.tagAppender - Specify metric tags to be included in the response.limit - Limit response to first N metrics, ordered by name.
AtsdClientException
AtsdServerException
public List<Metric> retrieveMetrics(String entityName,
Boolean active,
String expression,
TagAppender tagAppender,
Integer limit)
throws AtsdClientException,
AtsdServerException
entityName - Entity name.active - Filter metrics by lastInsertTime. If active = true, only metrics with
positive lastInsertTime are included in the response.expression - Specify EL expression.tagAppender - Specify metric tags to be included in the response.limit - Limit response to first N metrics, ordered by name.
AtsdClientException
AtsdServerException
public Metric retrieveMetric(String metricName)
throws AtsdClientException,
AtsdServerException
metricName - Metric name.
AtsdClientException
AtsdServerExceptionpublic boolean createOrReplaceMetric(Metric metric)
public boolean updateMetric(Metric metric)
public boolean deleteMetric(Metric metric)
public List<Entity> retrieveEntities(Boolean active,
String expression,
TagAppender tagAppender,
Integer limit)
throws AtsdClientException,
AtsdServerException
active - Filter entities by lastInsertTime. If active = true, only entities with
positive lastInsertTime are included in the response.expression - Specify EL expression.tagAppender - Specify entity tags to be included in the response.limit - Limit response to first N entities, ordered by name.
AtsdClientException
AtsdServerException
public Entity retrieveEntity(String entityName)
throws AtsdClientException,
AtsdServerException
entityName - Entity name.
AtsdClientException
AtsdServerException
public Set<String> retrievePropertyTypes(String entityName,
Long startTime)
entityName - entity namestartTime - to return only property types that have been collected after the specified time
public boolean createOrReplaceEntity(Entity entity)
public boolean updateEntity(Entity entity)
public boolean deleteEntity(Entity entity)
public List<EntityAndTags> retrieveEntityAndTags(String metricName,
String entityName)
throws AtsdClientException,
AtsdServerException
metricName - Metric name.entityName - Filter entities by entity name.
AtsdClientException
AtsdServerException
public List<EntityGroup> retrieveEntityGroups()
throws AtsdClientException,
AtsdServerException
AtsdClientException
AtsdServerException
public EntityGroup retrieveEntityGroup(String entityGroupName)
throws AtsdClientException,
AtsdServerException
entityGroupName - Entity group name.
AtsdClientException
AtsdServerException
public boolean createOrReplaceEntityGroup(EntityGroup entityGroup)
throws AtsdClientException,
AtsdServerException
entityGroup - the entity group to create or replace
true if entity group is created or updated.
AtsdClientException
AtsdServerException
public boolean updateEntityGroup(EntityGroup entityGroup)
throws AtsdClientException,
AtsdServerException
entityGroup - the entity group to update
true if entity group is updated.
AtsdClientException
AtsdServerException
public boolean deleteEntityGroup(EntityGroup entityGroup)
throws AtsdClientException,
AtsdServerException
AtsdClientException
AtsdServerException
public List<Entity> retrieveGroupEntities(String entityGroupName,
Boolean active,
String expression,
TagAppender tagAppender,
Integer limit)
throws AtsdClientException,
AtsdServerException
entityGroupName - Entity group name.active - Filter entities by lastInsertTime. If active = true, only entities with
positive lastInsertTime are included in the response.expression - Specify EL expression.tagAppender - Specify entity tags to be included in the response.
AtsdClientException
AtsdServerException
public List<Entity> retrieveGroupEntities(String entityGroupName)
throws AtsdClientException,
AtsdServerException
entityGroupName - Entity group name.
AtsdClientException
AtsdServerException
public boolean addGroupEntities(String entityGroupName,
Boolean createEntities,
Entity... entities)
entityGroupName - Entity group name.createEntities - Automatically create new entities from the submitted list if such entities don't already exist.entities - Entities to create.
true if entities added.
AtsdClientException - if there is any client problem
AtsdServerException - if there is any server problem
public boolean replaceGroupEntities(String entityGroupName,
Boolean createEntities,
Entity... entities)
entityGroupName - Entity group name.createEntities - Automatically create new entities from the submitted list if such entities don't already exist.entities - Entities to replace.
true if entities replaced.
AtsdClientException - if there is any client problem
AtsdServerException - if there is any server problem
public boolean deleteGroupEntities(String entityGroupName,
Entity... entities)
entityGroupName - Entity group name.entities - Entities to replace. @return true if entities added.
AtsdClientException - if there is any client problem
AtsdServerException - if there is any server problempublic boolean deleteAllGroupEntities(String entityGroupName)
entityGroupName - Entity group name.
AtsdClientException - if there is any client problem
AtsdServerException - if there is any server problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||