return "zookeeper";
}
@Override
protected Command getCommand() throws OpsException {
JavaCommandBuilder builder = new JavaCommandBuilder();
builder.setMainClass("org.apache.zookeeper.server.quorum.QuorumPeerMain");
builder.addArgument(Argument.buildFile(getConfigurationFile()));
builder.addClasspath(getInstanceDir(), false);
builder.addClasspathFolder(getBaseDir());
builder.addClasspathFolder(new File(getBaseDir(), "lib"));
return builder.get();
// directory=${instanceDir}
// command=java -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -cp
// "${instanceDir}:${installDir}/*:${installDir}/lib/*" org.apache.zookeeper.server.quorum.QuorumPeerMain
// zookeeper.cfg
}