FileDocCategorySizeDatePackage
AdminContext.javaAPI DocGlassfish v2 API5620Fri May 04 22:25:34 BST 2007com.sun.enterprise.admin

AdminContext

public interface AdminContext
This interface defines the environment for administration.

Fields Summary
Constructors Summary
Methods Summary
public com.sun.enterprise.config.ConfigContextgetAdminConfigContext()
Get admin config context. Admin config context provides access to the configuration on the disk. This may be different from runtime context if one or changes have not been applied dynamically to the runtime.

public java.util.logging.LoggergetAdminLogger()
Get admin logger.

public java.net.URLgetAdminMBeanRegistryURL()
Get Admin MBeanRegistry xml file location

public java.lang.StringgetDomainName()
Get domain name

public java.lang.StringgetDottedNameMBeanImplClassName()
returns the appropriate dotted name mbean implementation class.

public javax.management.MBeanServergetMBeanServer()
Get MBeanServer in use for admin, runtime and monitoring MBeans.

public com.sun.enterprise.admin.util.proxy.InterceptorgetMBeanServerInterceptor()
Get interceptor for mbean server used. In general, this method will be used only while initializing MBeanServer to setup its interceptor.

public com.sun.enterprise.config.ConfigContextgetRuntimeConfigContext()
Get runtime config context. Runtime config context provides access to the configuration that the server is running with. The server reads the configuration from disk at startup time, the configuration is then updated for every change that is applied dynamically.

public java.net.URLgetRuntimeMBeanRegistryURL()
Get Admin MBeanRegistry xml file location

public java.lang.StringgetServerName()
Get server name.

public voidsetAdminConfigContext(com.sun.enterprise.config.ConfigContext ctx)
Set admin config context. This is the context used for updating configuration on the disk.

param
ctx the config context to use for administration

public voidsetAdminLogger(java.util.logging.Logger logger)
Set admin logger.

param
logger the logger for admin module

public voidsetAdminMBeanRegistryURL(java.net.URL url)
Get Admin MBeanRegistry xml file location

param
url URL of the Registry file

public voidsetDomainName(java.lang.String domainName)
Set domain name.

param
domainName name of the domain

public voidsetMBeanServer(javax.management.MBeanServer mbs)
Set MBeanServer used for admin, runtime and monitoring MBeans.

param
mbs the management bean server

public voidsetMBeanServerInterceptor(com.sun.enterprise.admin.util.proxy.Interceptor interceptor)
Set interceptor. If set prior to creating an MBeanServer, the default implementation of SunOneMBeanServer factory will apply the interceptor to every MBeanServer call.

public voidsetRuntimeConfigContext(com.sun.enterprise.config.ConfigContext ctx)
Set runtime config context. If server runtime handles a configuration change dynamically, the context of the runtime is updated with the new changes.

param
ctc the config context to use for runtime

public voidsetRuntimeMBeanRegistryURL(java.net.URL url)
Get Runtime MBeanRegistry xml file location

param
url URL of the Registry file

public voidsetServerName(java.lang.String serverName)
Set server name.

param
serverName name of the server