# AppRuntimeStateRuntimeMBean

Overview | Related MBeans | Attributes | Operations

## Overview

Provides access to runtime state for deployed applications.

Since | 9.0.0.0
Security roles | The following roles have read, write, and invoke permission for all non-encrypted attributes and operations in this MBean: Deployer Operator Monitor
Fully Qualified Interface Name | If you use the `getMBeanInfo` operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name: `weblogic.management.runtime.AppRuntimeStateRuntimeMBean`
Factory Methods | No factory methods. Instances of this MBean are created automatically.
Access Points | You can access this MBean from the following MBean attributes:
DomainRuntimeMBean.AppRuntimeStateRuntime |

## Attributes

This section describes the following attributes:

ApplicationIds Name Parent | Type

### ApplicationIds

Privileges | Read only
Type | class java.lang.String[]

### Name

The name of this configuration. WebLogic Server uses an MBean to implement and persist the configuration.

Privileges | Read only
Type | java.lang.String

### Parent

Return the immediate parent for this MBean

Privileges | Read/Write
Type |

### Type

Returns the type of the MBean.

Privileges | Read only
Type | java.lang.String

## Operations

This section describes the following operations:

getCurrentState getCurrentState getCurrentState getIntendedState getIntendedState getModuleIds getModuleTargets getModuleTargets | getModuleType getRetireTimeMillis getRetireTimeoutSeconds getSubmoduleIds isActiveVersion isAdminMode

### getCurrentState

Aggregate state for a submodule. This is defined as the most advanced state of the submodule on all servers associated with the named target.

Operation Name | `"getCurrentState"`
Parameters | `Object [] { appid, moduleid, subModuleId, target }` where: `appid` is an object of type `java.lang.String` that specifies: appid `moduleid` is an object of type `java.lang.String` that specifies: moduleid `subModuleId` is an object of type `java.lang.String` that specifies: subModuleId `target` is an object of type `java.lang.String` that specifies: logical target where module is deployed
Signature | `String [] { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String" }`
Returns | `String`

### getCurrentState

Aggregate state for the module. This is defined as the most advanced state of the module on all servers associated with the named target.

Operation Name | `"getCurrentState"`
Parameters | `Object [] { appid, moduleid, target }` where: `appid` is an object of type `java.lang.String` that specifies: appid `moduleid` is an object of type `java.lang.String` that specifies: moduleid `target` is an object of type `java.lang.String` that specifies: logical target where module is deployed
Signature | `String [] { "java.lang.String", "java.lang.String", "java.lang.String" }`
Returns | `String`

### getCurrentState

Aggregate state for the application. This is defined as the most advanced state of the application's modules on the named target.

Operation Name | `"getCurrentState"`
Parameters | `Object [] { appid, target }` where: `appid` is an object of type `java.lang.String` that specifies: appid `target` is an object of type `java.lang.String` that specifies: logical target where the app is deployed
Signature | `String [] { "java.lang.String", "java.lang.String" }`
Returns | `String`

### getIntendedState

The state the application should be in on a specific target.

Operation Name | `"getIntendedState"`
Parameters | `Object [] { appid, target }` where: `appid` is an object of type `java.lang.String` that specifies: appid `target` is an object of type `java.lang.String` that specifies: target
Signature | `String [] { "java.lang.String", "java.lang.String" }`
Returns | `String`

### getIntendedState

The state the application should be in.

Operation Name | `"getIntendedState"`
Parameters | `Object [] { appid }` where: `appid` is an object of type `java.lang.String` that specifies: appid
Signature | `String [] { "java.lang.String" }`
Returns | `String`

### getModuleIds

Names of modules contained in the application. This does not include submodules.

Operation Name | `"getModuleIds"`
Parameters | `Object [] { appid }` where: `appid` is an object of type `java.lang.String` that specifies: appid
Signature | `String [] { "java.lang.String" }`
Returns | `class`

### getModuleTargets

Logical targets where the submodule is deployed

Operation Name | `"getModuleTargets"`
Parameters | `Object [] { appid, moduleid, subModuleId }` where: `appid` is an object of type `java.lang.String` that specifies: appid `moduleid` is an object of type `java.lang.String` that specifies: moduleid `subModuleId` is an object of type `java.lang.String` that specifies: subModuleId
Signature | `String [] { "java.lang.String", "java.lang.String", "java.lang.String" }`
Returns | `class`

### getModuleTargets

Logical targets where the module is deployed

Operation Name | `"getModuleTargets"`
Parameters | `Object [] { appid, moduleid }` where: `appid` is an object of type `java.lang.String` that specifies: appid `moduleid` is an object of type `java.lang.String` that specifies: moduleid
Signature | `String [] { "java.lang.String", "java.lang.String" }`
Returns | `class`

### getModuleType

Indicates type of module: EAR, WAR, etc

For more information, see:

- WebLogicModuleType

Operation Name | `"getModuleType"`
Parameters | `Object [] { appid, moduleid }` where: `appid` is an object of type `java.lang.String` that specifies: appid `moduleid` is an object of type `java.lang.String` that specifies: moduleid
Signature | `String [] { "java.lang.String", "java.lang.String" }`
Returns | `String`

### getRetireTimeMillis

The time when the app will be retired

Operation Name | `"getRetireTimeMillis"`
Parameters | `Object [] { appid }` where: `appid` is an object of type `java.lang.String` that specifies: appid
Signature | `String [] { "java.lang.String" }`
Returns | `long`

### getRetireTimeoutSeconds

The amount of time the app is given to retire

Operation Name | `"getRetireTimeoutSeconds"`
Parameters | `Object [] { appid }` where: `appid` is an object of type `java.lang.String` that specifies: appid
Signature | `String [] { "java.lang.String" }`
Returns | `int`

### getSubmoduleIds

Submodules associated with this module

For more information, see:

- WebLogicModuleType

Operation Name | `"getSubmoduleIds"`
Parameters | `Object [] { appid, moduleid }` where: `appid` is an object of type `java.lang.String` that specifies: appid `moduleid` is an object of type `java.lang.String` that specifies: moduleid
Signature | `String [] { "java.lang.String", "java.lang.String" }`
Returns | `class`

### isActiveVersion

Indicates if the application is the active version; the one that new sessions will use.

Operation Name | `"isActiveVersion"`
Parameters | `Object [] { appid }` where: `appid` is an object of type `java.lang.String` that specifies: is the application id
Signature | `String [] { "java.lang.String" }`
Returns | `boolean`

### isAdminMode

Indicates if application should only be available through the admin port. This is the desired state of the application

Operation Name | `"isAdminMode"`
Parameters | `Object [] { appid, }` where: `appid` is an object of type `java.lang.String` that specifies: is the application id
Signature | `String [] { "java.lang.String", "java.lang.String" }`
Returns | `boolean`