voldemort.server
Class VoldemortJsvcDaemon
java.lang.Object
voldemort.server.VoldemortJsvcDaemon
public class VoldemortJsvcDaemon
- extends java.lang.Object
Daemon class for use with the jsvc wrapper.
Simple example usage:
jsvc -pidfile ./voldemort.pid voldemort.server.VoldemortJsvcDaemon
The above assumes that JAVA_HOME, CLASSPATH, and VOLDEMORT_HOME have all been
exported.
A more detailed example might be:
jsvc \
-Xmx2G \
-pidfile /var/run/voldemort.pid \
-errfile "&1" \
-outfile /var/log/voldemort.out \
-user voldemort \
-Dcom.sun.management.jmxremote \
-Dlog4j.configuration=file:///etc/voldemort/log4j.properties \
voldemort.server.VoldemortJsvcDaemon /etc/voldemort
See Commons Daemon
documentation for more info.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VoldemortJsvcDaemon
public VoldemortJsvcDaemon()
init
public void init(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
start
public void start()
stop
public void stop()
destroy
public void destroy()
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu