org.usergrid.tools
Class Metrics

java.lang.Object
  extended by org.usergrid.tools.ToolBase
      extended by org.usergrid.tools.ExportingToolBase
          extended by org.usergrid.tools.Metrics

public class Metrics
extends ExportingToolBase

Tools class which dumps metrics for tracking Usergrid developer adoption and high-level application usage. Can be called thusly: mvn exec:java -Dexec.mainClass="org.usergrid.tools.Command" -Dexec.args="Metrics -host localhost -outputDir ./output"

Author:
zznate

Field Summary
 
Fields inherited from class org.usergrid.tools.ExportingToolBase
baseOutputDirName, logger, orgId, OUTPUT_DIR, outputDir, startTime
 
Fields inherited from class org.usergrid.tools.ToolBase
cass, embedded, emf, managementService, MAX_ENTITY_FETCH, PATH_REPLACEMENT, properties, smf
 
Constructor Summary
Metrics()
           
 
Method Summary
 org.apache.commons.cli.Options createOptions()
           
 void runTool(org.apache.commons.cli.CommandLine line)
           
 
Methods inherited from class org.usergrid.tools.ExportingToolBase
applyOrgId, createCollectionsDir, createDir, createDir, createOutputFile, createOutputFile, createOutputParentDir, getJsonGenerator, getJsonGenerator, prepareBaseOutputFileName, prepareOutputFileName, writeOutput
 
Methods inherited from class org.usergrid.tools.ToolBase
getToolName, printCliHelp, setCassandraService, setEntityManagerFactory, setManagementService, setProperties, setServiceManagerFactory, setupCassandra, startEmbedded, startSpring, startTool, teardownEmbedded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metrics

public Metrics()
Method Detail

runTool

public void runTool(org.apache.commons.cli.CommandLine line)
             throws Exception
Specified by:
runTool in class ToolBase
Throws:
Exception

createOptions

public org.apache.commons.cli.Options createOptions()
Overrides:
createOptions in class ExportingToolBase


Copyright © 2012. All Rights Reserved.