BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.management.mbeans.custom
Class ApplicationManager

java.lang.Object
  |
  +--javax.management.NotificationBroadcasterSupport
        |
        +--weblogic.management.internal.DynamicMBeanImpl
              |
              +--weblogic.management.internal.ConfigurationMBeanImpl
                    |
                    +--weblogic.management.mbeans.custom.ApplicationManager

public final class ApplicationManager
extends weblogic.management.internal.ConfigurationMBeanImpl

On managed servers, the application manager ensures that all applications that need to be installed on a for the managed server is installed and kept up to date. On the admin server the application manager manages the application path and ensures that all servers know which applications they need.

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.
See Also:
Serialized Form

Field Summary
static java.lang.String APPLICATIONS_SUBDIR
           
static boolean use2PhaseForInternalApps
          Switch for activating 2 phase deployment of internal apps
 
Fields inherited from class weblogic.management.internal.ConfigurationMBeanImpl
adminObjectName
 
Fields inherited from class weblogic.management.internal.DynamicMBeanImpl
ADMIN, CONFIG, localizing, mbean, mbeanServer, mbeanType, name, NAME_ATTRIBUTE, objectName, parent, registered, RUNTIME, type
 
Constructor Summary
ApplicationManager(java.lang.String type)
           
 
Method Summary
 boolean addDirectory(java.lang.String fileArg)
           
static ApplicationManager getAdminAppManager()
           
 int getAutoUpdateInterval()
           
static java.lang.String getDefaultApplicationDirectory()
           
 java.lang.String[] getDirectories()
           
static java.lang.String getDomainStagingDir()
           
static java.io.File getTempDir()
          Returns the temp directory used by the application management code on both admin and managed server
 void postRegister(java.lang.Boolean registrationDone)
           
 boolean removeDirectory(java.lang.String fileArg)
           
 void setAutoUpdateInterval(int intervalArg)
           
 void setDirectories(java.lang.String[] directoriesArg)
           
 void start()
          One each server there is.
 void update()
           
 
Methods inherited from class weblogic.management.internal.ConfigurationMBeanImpl
bootstrap, clone, cloneCustomToConfig, freezeCurrentValue, getAdminMBeanHome, getAttribute, getAttributeStringValue, getAttributeXmlValue, getMBeanHome, getPersistMap, getRemoteMBeanServer, getSetFields, invoke, isCachingDisabled, markAttributeModified, markMBeanNotDefaulted, postDeregister, preRegister, registerConfigMBean, restoreDefaultValue, setAttribute, setPersistMap, setRemoteMBeanServer, toString, touch, unRegisterConfigMBean
 
Methods inherited from class weblogic.management.internal.DynamicMBeanImpl
add, compareTo, copyFrom, disableNotifications, enableNotifications, ensureArgumentLocality, getAttributeInfo, getAttributes, getDefaultAttributeValue, getExtendedAttributeInfo, getExtendedOperationInfo, getLocalMBeanHome, getMBeanInfo, getMBeanType, getName, getObjectName, getParent, getSetAttributes, getType, getXAttributeInfo, invokeLocally, isAdmin, isConfig, isRegistered, isRuntime, isSet, markAttributeModified, preDeregister, remove, sendNotification, setAttributes, setLocalMBeanHome, setName, setParent, setParent, setType, unSet, valuesGet, valuesPut
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

use2PhaseForInternalApps

public static final boolean use2PhaseForInternalApps
Switch for activating 2 phase deployment of internal apps

APPLICATIONS_SUBDIR

public static final java.lang.String APPLICATIONS_SUBDIR
Constructor Detail

ApplicationManager

public ApplicationManager(java.lang.String type)
                   throws MBeanCreationException
Method Detail

getDefaultApplicationDirectory

public static final java.lang.String getDefaultApplicationDirectory()

getAdminAppManager

public static ApplicationManager getAdminAppManager()

getTempDir

public static java.io.File getTempDir()
Returns the temp directory used by the application management code on both admin and managed server

Returns:
The tempDir value

getDomainStagingDir

public static java.lang.String getDomainStagingDir()

getDirectories

public java.lang.String[] getDirectories()

getAutoUpdateInterval

public int getAutoUpdateInterval()

setDirectories

public void setDirectories(java.lang.String[] directoriesArg)

setAutoUpdateInterval

public void setAutoUpdateInterval(int intervalArg)

postRegister

public void postRegister(java.lang.Boolean registrationDone)

Overrides:
postRegister in class weblogic.management.internal.ConfigurationMBeanImpl

update

public void update()

addDirectory

public boolean addDirectory(java.lang.String fileArg)

removeDirectory

public boolean removeDirectory(java.lang.String fileArg)

start

public void start()
One each server there is. If this bean is an admin mbean then start up the polling thread, which polls the applications directory on the admin server. If this is a config mbean we create the list of deployed components that is "monitored" by the different subsystems (see DeploymentHandler, et al) On a managed server this mbean is always a config mbean. For the admin server, 2 instances are created, one for the admin mbean and one for the config mbean.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b