public class ResourceService extends Object
| Constructor and Description |
|---|
ResourceService(String token) |
| Modifier and Type | Method and Description |
|---|---|
String |
addResource(String resource) |
void |
deleteAllResources() |
void |
deleteResource(String id) |
List<String> |
getAllResources() |
List<String> |
getRange(long timestamp,
int range)
Get all the value with the a given timestamp enclosed in the given range
Get all the X where:
(timestamp - value)<= X <= (timestamp + value)
|
String |
getResource(String id) |
String |
getResource(String name,
String value) |
static HashMap<Integer,Resource> |
getResourceIdMap() |
MongoClientInstance |
loadContext(String token) |
String |
updateResource(String id,
String resource) |
public ResourceService(String token)
public MongoClientInstance loadContext(String token)
public List<String> getRange(long timestamp, int range)
timestamp - range - public void deleteResource(String id)
public void deleteAllResources()
Copyright © 2017. All Rights Reserved.