org.jboss.system.server
Class ServerConfigImpl

java.lang.Object
  extended by org.jboss.system.server.ServerConfigImpl
All Implemented Interfaces:
ServerConfigImplMBean

public class ServerConfigImpl
extends Object
implements ServerConfigImplMBean

An mbean wrapper for the BaseServerConfig that exposes the config as the legacy ServerConfigImplMBean.

Version:
$Revision: 81033 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from interface org.jboss.system.server.ServerConfigImplMBean
OBJECT_NAME
 
Constructor Summary
ServerConfigImpl(org.jboss.bootstrap.spi.ServerConfig config)
          Construct a ServerConfigImpl with the ServerConfig pojo which will be used as the delegate for the ServerConfigImplMBean ops.
 
Method Summary
 boolean equals(Object obj)
           
 boolean getBlockingShutdown()
          Get the current value of the blocking shutdown flag.
 URL getCommonBaseURL()
          Get the common base URL.
 URL getCommonLibraryURL()
          Get the common library URL.
 org.jboss.bootstrap.spi.ServerConfig getConfig()
           
 boolean getExitOnShutdown()
          Get the current value of the exit on shutdown flag.
 File getHomeDir()
          Get the local home directory which the server is running from.
 URL getHomeURL()
          Get the home URL which the server is running from.
 URL getLibraryURL()
          Get the home URL which the server is running from.
 URL getPatchURL()
          Get the patch URL for the server.
 boolean getPlatformMBeanServer()
          Get the current value of the flag that indicates if we are using the platform MBeanServer as the main jboss server.
 boolean getRequireJBossURLStreamHandlerFactory()
          Get the current value of the requireJBossURLStreamHandlerFactory flag.
 String getRootDeploymentFilename()
          Get the filename of the root deployable that will be used to finalize the bootstrap process.
 File getServerBaseDir()
          Get the base directory for calculating server home directories.
 URL getServerBaseURL()
          Get the base directory for calculating server home URLs.
 URL getServerConfigURL()
          Get the server configuration URL.
 File getServerDataDir()
          Get the directory where local data will be stored.
 File getServerHomeDir()
          Get the server home directory.
 URL getServerHomeURL()
          Get the server home URL.
 URL getServerLibraryURL()
          Get the server library URL.
 File getServerLogDir()
          Get the directory where log files will be stored.
 String getServerName()
          Get the name of the server.
 File getServerNativeDir()
          Get the native dir for unpacking
 File getServerTempDeployDir()
          Get the temporary deployment dir for unpacking
 File getServerTempDir()
          Get the directory where temporary files will be stored.
 String getSpecificationVersion()
          Get the server Specification-Version
 int hashCode()
           
 void setBlockingShutdown(boolean flag)
          Enable or disable blocking when Server.shutdown() is called.
 void setExitOnShutdown(boolean flag)
          Enable or disable exiting the JVM when Server.shutdown() is called.
 void setRequireJBossURLStreamHandlerFactory(boolean flag)
          Set the RequireJBossURLStreamHandlerFactory flag.
 void setRootDeploymentFilename(String filename)
          Set the filename of the root deployable that will be used to finalize the bootstrap process.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConfigImpl

public ServerConfigImpl(org.jboss.bootstrap.spi.ServerConfig config)
Construct a ServerConfigImpl with the ServerConfig pojo which will be used as the delegate for the ServerConfigImplMBean ops.

Parameters:
config - - the ServerConfig pojo to expose as a ServerConfigImplMBean
Method Detail

getConfig

public org.jboss.bootstrap.spi.ServerConfig getConfig()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getBlockingShutdown

public boolean getBlockingShutdown()
Description copied from interface: ServerConfigImplMBean
Get the current value of the blocking shutdown flag.

Specified by:
getBlockingShutdown in interface ServerConfigImplMBean
Returns:
The current value of the blocking shutdown flag.

getExitOnShutdown

public boolean getExitOnShutdown()
Description copied from interface: ServerConfigImplMBean
Get the current value of the exit on shutdown flag.

Specified by:
getExitOnShutdown in interface ServerConfigImplMBean
Returns:
The current value of the exit on shutdown flag.

getHomeDir

public File getHomeDir()
Description copied from interface: ServerConfigImplMBean
Get the local home directory which the server is running from.

Specified by:
getHomeDir in interface ServerConfigImplMBean

getHomeURL

public URL getHomeURL()
Description copied from interface: ServerConfigImplMBean
Get the home URL which the server is running from.

Specified by:
getHomeURL in interface ServerConfigImplMBean

getLibraryURL

public URL getLibraryURL()
Description copied from interface: ServerConfigImplMBean
Get the home URL which the server is running from.

Specified by:
getLibraryURL in interface ServerConfigImplMBean

getPatchURL

public URL getPatchURL()
Description copied from interface: ServerConfigImplMBean
Get the patch URL for the server.

Specified by:
getPatchURL in interface ServerConfigImplMBean

getPlatformMBeanServer

public boolean getPlatformMBeanServer()
Description copied from interface: ServerConfigImplMBean
Get the current value of the flag that indicates if we are using the platform MBeanServer as the main jboss server. Both the ServerConfig.PLATFORM_MBEANSERVER property must be set, and the jvm must be jdk1.5+

Specified by:
getPlatformMBeanServer in interface ServerConfigImplMBean

getRequireJBossURLStreamHandlerFactory

public boolean getRequireJBossURLStreamHandlerFactory()
Description copied from interface: ServerConfigImplMBean
Get the current value of the requireJBossURLStreamHandlerFactory flag.

Specified by:
getRequireJBossURLStreamHandlerFactory in interface ServerConfigImplMBean
Returns:
The current value of the requireJBossURLStreamHandlerFactory flag.

getRootDeploymentFilename

public String getRootDeploymentFilename()
Description copied from interface: ServerConfigImplMBean
Get the filename of the root deployable that will be used to finalize the bootstrap process.

Specified by:
getRootDeploymentFilename in interface ServerConfigImplMBean
Returns:
The filename of the root deployable.

getServerBaseDir

public File getServerBaseDir()
Description copied from interface: ServerConfigImplMBean
Get the base directory for calculating server home directories.

Specified by:
getServerBaseDir in interface ServerConfigImplMBean

getServerBaseURL

public URL getServerBaseURL()
Description copied from interface: ServerConfigImplMBean
Get the base directory for calculating server home URLs.

Specified by:
getServerBaseURL in interface ServerConfigImplMBean

getServerConfigURL

public URL getServerConfigURL()
Description copied from interface: ServerConfigImplMBean
Get the server configuration URL.

Specified by:
getServerConfigURL in interface ServerConfigImplMBean

getServerDataDir

public File getServerDataDir()
Description copied from interface: ServerConfigImplMBean
Get the directory where local data will be stored.

Specified by:
getServerDataDir in interface ServerConfigImplMBean

getServerHomeDir

public File getServerHomeDir()
Description copied from interface: ServerConfigImplMBean
Get the server home directory.

Specified by:
getServerHomeDir in interface ServerConfigImplMBean

getServerHomeURL

public URL getServerHomeURL()
Description copied from interface: ServerConfigImplMBean
Get the server home URL.

Specified by:
getServerHomeURL in interface ServerConfigImplMBean

getServerLibraryURL

public URL getServerLibraryURL()
Description copied from interface: ServerConfigImplMBean
Get the server library URL.

Specified by:
getServerLibraryURL in interface ServerConfigImplMBean

getCommonBaseURL

public URL getCommonBaseURL()
Description copied from interface: ServerConfigImplMBean
Get the common base URL.

Specified by:
getCommonBaseURL in interface ServerConfigImplMBean

getCommonLibraryURL

public URL getCommonLibraryURL()
Description copied from interface: ServerConfigImplMBean
Get the common library URL.

Specified by:
getCommonLibraryURL in interface ServerConfigImplMBean

getServerLogDir

public File getServerLogDir()
Description copied from interface: ServerConfigImplMBean
Get the directory where log files will be stored.

Specified by:
getServerLogDir in interface ServerConfigImplMBean
Returns:
the writable log directory

getServerName

public String getServerName()
Description copied from interface: ServerConfigImplMBean
Get the name of the server.

Specified by:
getServerName in interface ServerConfigImplMBean

getServerNativeDir

public File getServerNativeDir()
Description copied from interface: ServerConfigImplMBean
Get the native dir for unpacking

Specified by:
getServerNativeDir in interface ServerConfigImplMBean
Returns:
the directory

getServerTempDeployDir

public File getServerTempDeployDir()
Description copied from interface: ServerConfigImplMBean
Get the temporary deployment dir for unpacking

Specified by:
getServerTempDeployDir in interface ServerConfigImplMBean
Returns:
the directory

getServerTempDir

public File getServerTempDir()
Description copied from interface: ServerConfigImplMBean
Get the directory where temporary files will be stored.

Specified by:
getServerTempDir in interface ServerConfigImplMBean

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setBlockingShutdown

public void setBlockingShutdown(boolean flag)
Description copied from interface: ServerConfigImplMBean
Enable or disable blocking when Server.shutdown() is called. If enabled, then shutdown will be called in the current thread. If disabled, then the shutdown hook will be run ansynchronously in a separate thread.

Specified by:
setBlockingShutdown in interface ServerConfigImplMBean
Parameters:
flag - True to enable blocking shutdown.

setExitOnShutdown

public void setExitOnShutdown(boolean flag)
Description copied from interface: ServerConfigImplMBean
Enable or disable exiting the JVM when Server.shutdown() is called. If enabled, then shutdown calls Server#exit. If disabled, then only the shutdown hook will be run.

Specified by:
setExitOnShutdown in interface ServerConfigImplMBean
Parameters:
flag - True to enable calling exit on shutdown.

setRequireJBossURLStreamHandlerFactory

public void setRequireJBossURLStreamHandlerFactory(boolean flag)
Description copied from interface: ServerConfigImplMBean
Set the RequireJBossURLStreamHandlerFactory flag. if false, exceptions when setting the URLStreamHandlerFactory will be logged and ignored.

Specified by:
setRequireJBossURLStreamHandlerFactory in interface ServerConfigImplMBean
Parameters:
flag - True to enable blocking shutdown.

setRootDeploymentFilename

public void setRootDeploymentFilename(String filename)
Description copied from interface: ServerConfigImplMBean
Set the filename of the root deployable that will be used to finalize the bootstrap process.

Specified by:
setRootDeploymentFilename in interface ServerConfigImplMBean
Parameters:
filename - The filename of the root deployable.

getSpecificationVersion

public String getSpecificationVersion()
Description copied from interface: ServerConfigImplMBean
Get the server Specification-Version

Specified by:
getSpecificationVersion in interface ServerConfigImplMBean


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.