org.usergrid.tools
Class ToolBase
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ToolBase
public ToolBase()
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.