public class DefaultSingleEntityClient extends BaseClient<SingleEntityHandler> implements SingleEntityClient
| Constructor and Description |
|---|
DefaultSingleEntityClient(ClientInfo clientInfo) |
| Modifier and Type | Method and Description |
|---|---|
ClientResponse<Map> |
createEntity(org.hawkular.inventory.paths.CanonicalPath path,
org.hawkular.inventory.paths.SegmentType type,
String at,
org.hawkular.inventory.api.model.AbstractElement.Blueprint entity)
Creates a new entity
TODO: Response should be a: http://www.hawkular.org/docs/rest/rest-inventory.html#AbstractElement
|
ClientResponse<Empty> |
deleteEntity(org.hawkular.inventory.paths.CanonicalPath path,
String at)
Deletes an inventory entity on the given location.
|
ClientResponse<Map> |
getEntity(org.hawkular.inventory.paths.CanonicalPath path,
String at)
Reads an inventory entity on the given location.
|
ClientResponse<org.hawkular.inventory.api.model.IdentityHash.Tree> |
getEntityHash(org.hawkular.inventory.paths.CanonicalPath path,
String at)
Obtains the identity tree hash of the entity.
|
ClientResponse<List<org.hawkular.inventory.api.model.Change<?>>> |
getHistory(org.hawkular.inventory.paths.CanonicalPath path,
String from,
String to)
Obtains the history of the entity.
|
ClientResponse<Empty> |
updateEntity(org.hawkular.inventory.paths.CanonicalPath path,
String at,
org.hawkular.inventory.api.model.AbstractElement.Update update)
Updates an entity.
|
collectionResolver, mapResolver, restApi, simpleResolverpublic DefaultSingleEntityClient(ClientInfo clientInfo)
public ClientResponse<Empty> deleteEntity(org.hawkular.inventory.paths.CanonicalPath path, String at)
SingleEntityClientdeleteEntity in interface SingleEntityClientpublic ClientResponse<Map> getEntity(org.hawkular.inventory.paths.CanonicalPath path, String at)
SingleEntityClientgetEntity in interface SingleEntityClientpublic ClientResponse<Empty> updateEntity(org.hawkular.inventory.paths.CanonicalPath path, String at, org.hawkular.inventory.api.model.AbstractElement.Update update)
SingleEntityClientupdateEntity in interface SingleEntityClientpublic ClientResponse<List<org.hawkular.inventory.api.model.Change<?>>> getHistory(org.hawkular.inventory.paths.CanonicalPath path, String from, String to)
SingleEntityClientgetHistory in interface SingleEntityClientpublic ClientResponse<org.hawkular.inventory.api.model.IdentityHash.Tree> getEntityHash(org.hawkular.inventory.paths.CanonicalPath path, String at)
SingleEntityClientgetEntityHash in interface SingleEntityClientpublic ClientResponse<Map> createEntity(org.hawkular.inventory.paths.CanonicalPath path, org.hawkular.inventory.paths.SegmentType type, String at, org.hawkular.inventory.api.model.AbstractElement.Blueprint entity)
SingleEntityClientcreateEntity in interface SingleEntityClientCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.