com.ning.metrics.action.access
Class ActionAccessor
java.lang.Object
com.ning.metrics.action.access.ActionAccessor
public class ActionAccessor
- extends Object
|
Method Summary |
void |
close()
Close the underlying http client |
String |
getJsonFromStreamAndClose(InputStream in)
|
com.google.common.collect.ImmutableList<Map<String,Object>> |
getPath(String eventName,
String path,
ActionCoreParser.ActionCoreParserFormat format,
ArrayList<String> desiredEventFields,
boolean recursive,
boolean raw,
long timeout)
Synchronous interface: Returns a list of bean events. |
Future<InputStream> |
getPath(String eventName,
String path,
boolean recursive,
boolean raw)
Asynchronous interface: Returns a Future on which to wait. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionAccessor
public ActionAccessor(String host,
int port)
close
public void close()
- Close the underlying http client
getPath
public com.google.common.collect.ImmutableList<Map<String,Object>> getPath(String eventName,
String path,
ActionCoreParser.ActionCoreParserFormat format,
ArrayList<String> desiredEventFields,
boolean recursive,
boolean raw,
long timeout)
- Synchronous interface: Returns a list of bean events.
getPath
public Future<InputStream> getPath(String eventName,
String path,
boolean recursive,
boolean raw)
- Asynchronous interface: Returns a Future on which to wait.
Client is responsible to close the stream
getJsonFromStreamAndClose
public String getJsonFromStreamAndClose(InputStream in)
Copyright © 2011. All Rights Reserved.