站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 system API Documentation 英文版文档

ServerImplMBean (JBoss System API) - JBoss 4.0.1 sp1 system API Documentation 英文版文档


org.jboss.system.server
Interface ServerImplMBean

All Known Implementing Classes:
ServerImpl

public interface ServerImplMBean

MBean interface.


Field Summary
static javax.management.ObjectName OBJECT_NAME
           
 
Method Summary
 void exit()
          Shutdown the server, the JVM and run shutdown hooks.
 void exit(int exitcode)
          Shutdown the server, the JVM and run shutdown hooks.
 String getBuildDate()
           
 String getBuildID()
           
 String getBuildJVM()
           
 String getBuildNumber()
           
 String getBuildOS()
           
 Date getStartDate()
           
 String getVersion()
           
 String getVersionName()
           
 void halt()
          Forcibly terminates the currently running Java virtual machine.
 void halt(int exitcode)
          Forcibly terminates the currently running Java virtual machine.
 boolean isStarted()
          Check if the server is started.
 void runFinalization()
          Hint to the JVM to run any pending object finailizations.
 void runGarbageCollector()
          Hint to the JVM to run the garbage collector.
 void shutdown()
          Shutdown the Server instance and run shutdown hooks.
 void traceInstructions(Boolean flag)
          Enable or disable tracing instructions the Runtime level.
 void traceMethodCalls(Boolean flag)
          Enable or disable tracing method calls at the Runtime level.
 

Field Detail

OBJECT_NAME

public static final javax.management.ObjectName OBJECT_NAME
Method Detail

isStarted

public boolean isStarted()
Check if the server is started.

Returns:
True if the server is started, else false.

shutdown

public void shutdown()
              throws IllegalStateException
Shutdown the Server instance and run shutdown hooks.

If the exit on shutdown flag is true, then exit(int) is called, else only the shutdown hook is run.

Throws:
IllegalStateException - No started.

exit

public void exit(int exitcode)
Shutdown the server, the JVM and run shutdown hooks.

Parameters:
exitcode - The exit code returned to the operating system.

exit

public void exit()
Shutdown the server, the JVM and run shutdown hooks. Exits with code 1.


halt

public void halt(int exitcode)
Forcibly terminates the currently running Java virtual machine.

Parameters:
exitcode - The exit code returned to the operating system.

halt

public void halt()
Forcibly terminates the currently running Java virtual machine. Exits with code 1.


runGarbageCollector

public void runGarbageCollector()
Hint to the JVM to run the garbage collector.


runFinalization

public void runFinalization()
Hint to the JVM to run any pending object finailizations.


traceMethodCalls

public void traceMethodCalls(Boolean flag)
Enable or disable tracing method calls at the Runtime level.


traceInstructions

public void traceInstructions(Boolean flag)
Enable or disable tracing instructions the Runtime level.


getStartDate

public Date getStartDate()

getVersion

public String getVersion()

getVersionName

public String getVersionName()

getBuildNumber

public String getBuildNumber()

getBuildJVM

public String getBuildJVM()

getBuildOS

public String getBuildOS()

getBuildID

public String getBuildID()

getBuildDate

public String getBuildDate()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.