|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.tools.JMXGet
@InterfaceAudience.Private public class JMXGet
tool to get data from NameNode or DataNode using MBeans currently the following MBeans are available (under hadoop domain): hadoop:service=NameNode,name=FSNamesystemState (static) hadoop:service=NameNode,name=NameNodeActivity (dynamic) hadoop:service=NameNode,name=RpcActivityForPort9000 (dynamic) hadoop:service=DataNode,name=RpcActivityForPort50020 (dynamic) hadoop:name=service=DataNode,FSDatasetState-UndefinedStorageId663800459 (static) hadoop:service=DataNode,name=DataNodeActivity-UndefinedStorageId-520845215 (dynamic) implementation note: all logging is sent to System.err (since it is a command line tool)
Constructor Summary | |
---|---|
JMXGet()
|
Method Summary | |
---|---|
String |
getValue(String key)
get single value by key |
void |
init()
|
static void |
main(String[] args)
main |
void |
printAllValues()
print all attributes' values |
void |
setLocalVMUrl(String url)
|
void |
setPort(String port)
|
void |
setServer(String server)
|
void |
setService(String service)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMXGet()
Method Detail |
---|
public void setService(String service)
public void setPort(String port)
public void setServer(String server)
public void setLocalVMUrl(String url)
public void printAllValues() throws Exception
Exception
public String getValue(String key) throws Exception
Exception
public void init() throws Exception
Exception
- initializes MBeanServerpublic static void main(String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |