|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An application represents a J2EE application contained in an EAR file or EAR directory. The EAR file contains a set of components such as WAR, EJB, and RAR connector components, each of which can be deployed on one or more Targets. A target is a server or a cluster. If the application is provided as a standalone module, then this MBean is a synthetic wrapper application only.
TargetMBean
,
EJBComponentMBean
,
WebAppComponentMBean
,
ConnectorComponentMBean
Field Summary | |
static long |
CACHING_STUB_SVUID
|
static int |
DEPLOYMENT_TIMEOUT
Default deployment timeout value for 2 phase deployments. |
static java.lang.String |
EXTERNAL_STAGE
Indicates that the files will be located in the staging directory but that an external application will be responsible for delivering them there. |
static java.lang.String |
NO_STAGE
Indicates the application will not be staged. |
static java.lang.String |
STAGE
Indicates the WebLogic Server will stage the application to the staging directory. |
static boolean |
TWOPHASE_DEFAULT
Default value for for TwoPhase attribute |
static java.lang.String |
TYPE_COMPONENT
Application is an archived component/module |
static java.lang.String |
TYPE_EAR
Application is an archived EAR |
static java.lang.String |
TYPE_EXPLODED_COMPONENT
Application is an unarchived component/module |
static java.lang.String |
TYPE_EXPLODED_EAR
Application is an unarchived EAR |
static java.lang.String |
TYPE_UNKNOWN
Application is of unknown type - default |
Fields inherited from class weblogic.management.configuration.ConfigurationMBean |
CACHING_STUB_SVUID,
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
void |
deploy()
Deprecated. weblogic.management.runtime.DeployerRuntimeMBean is the appropriate class for deploying an application. Applications using this interface will not use the 2 phase deployment protocol. |
java.lang.String |
getAltDescriptorPath()
Defines a path on the filesystem for the application descriptor for this application. |
java.lang.String |
getAltWLSDescriptorPath()
Defines a path on the filesystem for the WLS-specific application descriptor for this application. |
weblogic.management.dde.ApplicationDDEditor |
getApplicationDDEditor()
|
ComponentMBean[] |
getComponents()
Returns the components that make up this application. |
java.lang.String |
getDDEditingDisabledReason()
|
int |
getDeploymentTimeout()
Milliseconds granted for a cluster deployment task on this application. |
java.lang.String |
getDeploymentType()
Specifies the category of this application. |
java.lang.String |
getFullPath()
Returns the fully qualified source path of an application on an admin server. |
long |
getLastModified()
Deprecated. the 2 phase deployment protocol does not maintain application file modification times |
java.lang.Exception |
getLoadError()
Deprecated. |
int |
getLoadOrder()
Specifies the order applications are loaded at server startup. |
java.lang.String |
getPath()
The location of the original source application files on the Admin Server. |
java.lang.String[] |
getStagedTargets()
List of servers on which this application is known to be staged. |
java.lang.String |
getStagingMode()
Indicates whether this application is being staged. |
java.lang.String |
getStagingPath()
Identifies the directory path on the managed server relative to the server's StagingDirectoryName. |
boolean |
isDDEditingEnabled()
|
boolean |
isDeployed()
Deprecated. This attribute is unused for applications deployed with the 2 phase deployment protocol. Application modules are deployed based on whether they have targets. |
boolean |
isTwoPhase()
Indicates whether this application is deployed using the 2 phase deployment protocol DeployerRuntimeMBean . |
void |
load()
Deprecated. weblogic.management.runtime.DeployerRuntimeMBean is the appropriate class for initializing application and component MBeans. Applications using this interface will not use the 2 phase deployment protocol. |
void |
load(boolean autoDiscover)
Deprecated. weblogic.management.runtime.DeployerRuntimeMBean is the appropriate class for initializing application and component MBeans. Applications using this interface will not use the 2 phase deployment protocol. |
void |
refreshDDsIfNeeded(java.lang.String[] changedFiles,
java.lang.String[] modules)
|
void |
setAltDescriptorPath(java.lang.String value)
Sets the standardDescriptorPath attribute of the ApplicationMBean object. |
void |
setAltWLSDescriptorPath(java.lang.String value)
Sets the webLogicDescriptorPath attribute of the ApplicationMBean object. |
void |
setDeploymentTimeout(int timeInMillis)
Override the timeout value for a clustered deployment. |
void |
setDeploymentType(java.lang.String deploymentType)
Sets the deploymentType attribute of the ApplicationMBean object. |
void |
setLastModified(long time)
Sets the lastModified attribute of the ApplicationMBean object |
void |
setLoadOrder(int order)
Sets the loadOrder attribute of the ApplicationMBean object. |
void |
setPath(java.lang.String path)
relative to the root directory of the Admin Server installation. |
void |
setStagingMode(java.lang.String mode)
Overrides staging mode of server for this application. |
void |
setTwoPhase(boolean mode)
|
boolean |
staged(java.lang.String server)
Convenience method for determining whether this application is currently staged on a particular server. |
boolean |
stagingEnabled(java.lang.String server)
Convenience method for determining whether this application is to be staged on a particular server. |
void |
undeploy()
Deprecated. weblogic.management.runtime.DeployerRuntimeMBean is the appropriate class for undeploying an application. Applications using this interface will not use the 2 phase deployment protocol. |
boolean |
useStagingDirectory(java.lang.String server)
Convenience method for determining where the file will be loaded from on the managed servers. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
freezeCurrentValue,
getNotes,
restoreDefaultValue,
setComments,
setDefaultedMBean,
setNotes,
setPersistenceEnabled |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo,
getName,
getObjectName,
getParent,
getType,
isCachingDisabled,
isRegistered,
setName,
setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute,
getAttributes,
invoke,
setAttribute,
setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister,
postRegister,
preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
Field Detail |
public static final long CACHING_STUB_SVUID
public static final java.lang.String TYPE_EAR
public static final java.lang.String TYPE_EXPLODED_EAR
public static final java.lang.String TYPE_COMPONENT
public static final java.lang.String TYPE_EXPLODED_COMPONENT
public static final java.lang.String TYPE_UNKNOWN
public static final boolean TWOPHASE_DEFAULT
public static final java.lang.String NO_STAGE
public static final java.lang.String STAGE
public static final java.lang.String EXTERNAL_STAGE
public static final int DEPLOYMENT_TIMEOUT
Method Detail |
public java.lang.String getPath()
If the application is not being staged (StagingMode==nostage) then the path must be valid on the target server.
The path to an Enterprise application (EAR) is the location of the EAR file or the root of the EAR if it is unarchived. e.g. Path="myapps/app.ear" is valid. If the application is a standalone module, then the path is the parent directory of the module. For example, if the module is located at myapps/webapp/webapp.war, the Path="myapps/webapp" is correct, whereas Path="myapps/webapp/webapp.war" is incorrect.
public void setPath(java.lang.String path) throws ManagementException, javax.management.InvalidAttributeValueException
path
- The new path valuepublic ComponentMBean[] getComponents()
public void load() throws ManagementException
public void load(boolean autoDiscover) throws ManagementException
autoDiscover
- public java.lang.Exception getLoadError()
public long getLastModified()
public void deploy() throws DeploymentException, DistributedManagementException
public void undeploy() throws UndeploymentException, DistributedManagementException
public boolean isDeployed()
public void setLastModified(long time)
time
- The new lastModified valuepublic java.lang.String getFullPath()
public java.lang.String getStagingPath()
public java.lang.String[] getStagedTargets()
public java.lang.String getStagingMode()
ServerMBean
public void setStagingMode(java.lang.String mode) throws ManagementException
mode
- The new stagingMode valuepublic boolean stagingEnabled(java.lang.String server)
server
- public boolean staged(java.lang.String server)
server
- public boolean useStagingDirectory(java.lang.String server)
server
- public boolean isTwoPhase()
DeployerRuntimeMBean
. If true, then
the application's components may only be targeted to release 7.0 and later servers.
If false, then the application may be deployed to all releases supporting the release
6 deployment protocol, which is deprecated in release 7. If unspecified in the
configuration, false is assumed.
public void setTwoPhase(boolean mode)
mode
- The new twoPhase valuepublic int getLoadOrder()
Application ordering is only supported for applications deployed with the 2 phase protocol.
public void setLoadOrder(int order)
order
- The new loadOrder valuepublic java.lang.String getDeploymentType()
public void setDeploymentType(java.lang.String deploymentType)
deploymentType
- The new deploymentType valuepublic int getDeploymentTimeout()
Only cluster deployments can be timed out.
public void setDeploymentTimeout(int timeInMillis)
The value is specified in milliseconds. The server will, however, only check for timed out deployments about once a minute.
timeInMillis
- The new deploymentTimeout valuepublic java.lang.String getAltDescriptorPath()
public void setAltDescriptorPath(java.lang.String value)
value
- The new standardDescriptorPath valuepublic java.lang.String getAltWLSDescriptorPath()
public void setAltWLSDescriptorPath(java.lang.String value)
value
- The new webLogicDescriptorPath valuepublic boolean isDDEditingEnabled()
public java.lang.String getDDEditingDisabledReason()
public weblogic.management.dde.ApplicationDDEditor getApplicationDDEditor()
public void refreshDDsIfNeeded(java.lang.String[] changedFiles, java.lang.String[] modules)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |