jgroup.arm
Class ApplicationStarter
java.lang.Object
jgroup.arm.ApplicationStarter
public final class ApplicationStarter
- extends java.lang.Object
The application starter class is wrapper for starting a server replica
in a separate child JVM process, and sets up a pipe between the parent
and child process. This allows the parent process (the ExecDaemon) to
control the child process (the server replica), for example the ExecDaemon
may wish to kill the replica. Note that, unless the server replica is
using the Replication
service, or if the server has specific
shutdown needs, the server should consider adding a shutdown hook so as
to ensure that the replica releases any held resources when being killed.
This class can also be used to start a server through its constructor
without having to recompile it. That is, this wrapper will take care of
obtaining the group manager for the server. This means that the server
can be made into a replicated server without changing it. This assumes
that the server does not need to use any of the services or listeners
provided through the Jgroup group manager. For simple replication
this should be no problem.
- Since:
- Jgroup 2.1
- Author:
- Hein Meling
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
shutdown()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationStarter
public ApplicationStarter(java.lang.String[] args)
throws ExecException,
java.lang.ClassNotFoundException
- Throws:
ExecException
java.lang.ClassNotFoundException
ApplicationStarter
public ApplicationStarter(java.lang.String className)
throws java.lang.Exception
- Throws:
java.lang.Exception
shutdown
public void shutdown()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.