org.usergrid.tools
Class ToolBase

java.lang.Object
  extended by org.usergrid.tools.ToolBase
Direct Known Subclasses:
ApiDoc, AppAudit, AppNameFix, Cli, CredExport, EntityCleanup, EntityIndexCleanup, EntityInsertBenchMark, EntityReadBenchMark, ExportingToolBase, Import, ImportFB, IndexRebuild, PopulateSample, ResetSuperUser, SetupDB, Test, UserManager

public abstract class ToolBase
extends Object


Field Summary
protected  CassandraService cass
           
protected  me.prettyprint.hector.testutils.EmbeddedServerHelper embedded
           
protected  EntityManagerFactory emf
           
protected  ManagementService managementService
           
static int MAX_ENTITY_FETCH
           
protected static String PATH_REPLACEMENT
           
protected  Properties properties
           
protected  ServiceManagerFactory smf
           
 
Constructor Summary
ToolBase()
           
 
Method Summary
 org.apache.commons.cli.Options createOptions()
           
 String getToolName()
           
 void printCliHelp(String message)
           
abstract  void runTool(org.apache.commons.cli.CommandLine line)
           
 void setCassandraService(CassandraService cass)
           
 void setEntityManagerFactory(EntityManagerFactory emf)
           
 void setManagementService(ManagementService managementService)
           
 void setProperties(Properties properties)
           
 void setServiceManagerFactory(ServiceManagerFactory smf)
           
 void setupCassandra()
           
 void startEmbedded()
           
 void startSpring()
           
 void startTool(String[] args)
           
 void teardownEmbedded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_ENTITY_FETCH

public static final int MAX_ENTITY_FETCH
See Also:
Constant Field Values

PATH_REPLACEMENT

protected static final String PATH_REPLACEMENT
See Also:
Constant Field Values

embedded

protected me.prettyprint.hector.testutils.EmbeddedServerHelper embedded

emf

protected EntityManagerFactory emf

smf

protected ServiceManagerFactory smf

managementService

protected ManagementService managementService

properties

protected Properties properties

cass

protected CassandraService cass
Constructor Detail

ToolBase

public ToolBase()
Method Detail

startTool

public void startTool(String[] args)

printCliHelp

public void printCliHelp(String message)

getToolName

public String getToolName()

createOptions

public org.apache.commons.cli.Options createOptions()

startEmbedded

public void startEmbedded()
                   throws Exception
Throws:
Exception

startSpring

public void startSpring()

setupCassandra

public void setupCassandra()
                    throws Exception
Throws:
Exception

teardownEmbedded

public void teardownEmbedded()

setEntityManagerFactory

@Autowired
public void setEntityManagerFactory(EntityManagerFactory emf)

setServiceManagerFactory

@Autowired
public void setServiceManagerFactory(ServiceManagerFactory smf)

setManagementService

@Autowired
public void setManagementService(ManagementService managementService)

setProperties

@Autowired
public void setProperties(Properties properties)

setCassandraService

@Autowired
public void setCassandraService(CassandraService cass)

runTool

public abstract void runTool(org.apache.commons.cli.CommandLine line)
                      throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.