|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.startup.StaticStartup
public abstract class StaticStartup
A convenience class to startup and shutdown statically e.g. from native code.
Field Summary | |
---|---|
static String |
DEFAULT_DOMAIN
The default domain. |
Constructor Summary | |
---|---|
StaticStartup()
|
Method Summary | |
---|---|
static String |
getDefaultDomain(String[] args)
Gets the default startup domain. |
static MBeanServer |
getMBeanServer(String[] args)
Gets a new startup MBean server. |
static String |
getStartupClassName()
Gets the startup class name. |
static void |
main(String[] args)
The main method for running the server as a standalone application. |
static Startup |
registerInServer(MBeanServer server,
long delay)
A static registration method in the specified server. |
static Startup |
registerInServer(String[] args,
MBeanServer server,
long delay)
A static registration method in the specified server with arguments. |
static void |
setStartupClassName(String className)
Sets the startup class name. |
static void |
shutdown()
A static shutdown method in the default server. |
static void |
shutdown(MBeanServer server)
A static shutdown method in the specified server. |
static boolean |
startup()
A static startup method in the default server. |
static boolean |
startup(String[] args)
A static startup method in the default server with arguments. |
static int |
startupAndWait()
A static startup method in the default server. |
static int |
startupAndWait(String[] args)
A static startup method in the default server with arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_DOMAIN
Constructor Detail |
---|
public StaticStartup()
Method Detail |
---|
public static String getStartupClassName()
public static void setStartupClassName(String className)
className
- the startup class name.public static boolean startup()
public static boolean startup(String[] args)
args
- an array of startup arguments.
public static int startupAndWait()
public static int startupAndWait(String[] args)
args
- an array of startup arguments.
public static void shutdown()
public static void shutdown(MBeanServer server)
server
- the server of the startup.public static Startup registerInServer(MBeanServer server, long delay)
server
- the MBean server.delay
- the shutdown delay.
public static Startup registerInServer(String[] args, MBeanServer server, long delay)
args
- an array of startup arguments.server
- the MBean server.delay
- the shutdown delay.
public static String getDefaultDomain(String[] args)
args
- an array of startup arguments.
public static MBeanServer getMBeanServer(String[] args)
args
- an array of startup arguments.
public static void main(String[] args)
args
- an array of startup arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |