Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.runtime
Interface ResourceGroupLifeCycleRuntimeMBean

All Superinterfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

public interface ResourceGroupLifeCycleRuntimeMBean
extends RuntimeMBean

Method Summary
abstract  ResourceGroupLifeCycleTaskRuntimeMBean forceShutdown()
          Forces the shutdown of the resource group.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean forceShutdown(TargetMBean[] targets)
          Forces the shutdown of the resource group on specified targets.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean forceSuspend()
          Forcefully suspends the resource group.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean forceSuspend(TargetMBean[] targets)
          Forcefully suspends the resource group on specified targets.
abstract  String getState()
          Current resource group state.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean[] getTasks()
          Get preexisting Resource Group Lifecycle Tasks
abstract  ResourceGroupLifeCycleTaskRuntimeMBean lookupTask(String taskName)
          Get preexisting Partition Lifecycle Task.
abstract  void purgeTasks()
          Clears the retained task collection.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean resume()
          Transitions the resource group from ADMIN to RUNNING state.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean resume(TargetMBean[] targets)
          Transitions the resource group from ADMIN to RUNNING state on specified targets.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean shutdown()
          Shuts down the resource group gracefully on all targets.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean shutdown(int timeout, boolean ignoreSessions)
          Shuts down a resource group gracefully.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean shutdown(int timeout, boolean ignoreSessions, boolean waitForAllSessions)
          Gracefully shuts down a resource group.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean shutdown(int timeout, boolean ignoreSessions, boolean waitForAllSessions, TargetMBean[] targets)
          Gracefully shuts down a resource group.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean shutdown(int timeout, boolean ignoreSessions, TargetMBean[] targets)
          Shuts down a resource group gracefully.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean shutdown(TargetMBean[] targets)
          Shuts down the resource group gracefully.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean start()
          Starts resource group.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean start(TargetMBean[] targets)
          Starts the resource group on specified targets.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean startInAdmin()
          Starts the resource group in the admin state in all the targets
abstract  ResourceGroupLifeCycleTaskRuntimeMBean startInAdmin(TargetMBean[] targets)
          Starts the resource group in the admin state in specified targets
abstract  ResourceGroupLifeCycleTaskRuntimeMBean suspend()
          Gracefully suspends the resource group to ADMIN state.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean suspend(int timeout, boolean ignoreSessions)
          Transitions the resource group from RUNNING to ADMIN state gracefully.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean suspend(int timeout, boolean ignoreSessions, TargetMBean[] targets)
          Transitions the resource group from RUNNING to ADMIN state gracefully on specified targets.
abstract  ResourceGroupLifeCycleTaskRuntimeMBean suspend(TargetMBean[] targets)
          Gracefully suspends the resource group to ADMIN state.

 

Methods inherited from interface weblogic.management.runtime.RuntimeMBean
addPropertyChangeListener, removePropertyChangeListener

 

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, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

Method Detail

start

ResourceGroupLifeCycleTaskRuntimeMBean start()
                                             throws ResourceGroupLifecycleException

Starts resource group.

Throws:
ResourceGroupLifecycleException - if start operation fails

getState

String getState()

Current resource group state.

Returns:
The state value

getTasks

ResourceGroupLifeCycleTaskRuntimeMBean[] getTasks()
Get preexisting Resource Group Lifecycle Tasks
Returns:
an array of all completed or pending resource group lifecycle tasks.

lookupTask

ResourceGroupLifeCycleTaskRuntimeMBean lookupTask(String taskName)

Get preexisting Partition Lifecycle Task.

Parameters:
taskName -
Returns:
ResourceGroupLifeCycleTaskRuntimeMBean based on the name passed by the user

start

ResourceGroupLifeCycleTaskRuntimeMBean start(TargetMBean[] targets)
                                             throws ResourceGroupLifecycleException

Starts the resource group on specified targets.

Parameters:
targets - the specific targets on which to start this resource group
Returns:
task usable by caller to monitor progress
Throws:
ResourceGroupLifecycleException - if the start fails

startInAdmin

ResourceGroupLifeCycleTaskRuntimeMBean startInAdmin(TargetMBean[] targets)
                                                    throws ResourceGroupLifecycleException

Starts the resource group in the admin state in specified targets

Parameters:
targets - the specific targets on which to start this resource group in "admin" state
Returns:
task usable by caller to monitor progress
Throws:
ResourceGroupLifecycleException - if the start fails

startInAdmin

ResourceGroupLifeCycleTaskRuntimeMBean startInAdmin()
                                                    throws ResourceGroupLifecycleException

Starts the resource group in the admin state in all the targets

Returns:
task usable by caller to monitor progress
Throws:
ResourceGroupLifecycleException - if the start fails

shutdown

ResourceGroupLifeCycleTaskRuntimeMBean shutdown(int timeout,
                                                boolean ignoreSessions,
                                                boolean waitForAllSessions)
                                                throws ResourceGroupLifecycleException
Gracefully shuts down a resource group.
Parameters:
timeout - Number of seconds to wait before aborting inflight work and force shutting down the server.
ignoreSessions - Set to true to ignore pending HTTP sessions during inflight work handling.
waitForAllSessions - Set to true to wait for all HTTP sessions duirng inflight work handling; false to wait for non-persisted HTTP sessions only.
Returns:
task object for monitoring the operation's progress
Throws:
ResourceGroupLifecycleException - If the resource group fails to gracefully shutdown. A ResourceGroupLifeCycleRuntimeMBean.forceShutdown() operation can be invoked.

shutdown

ResourceGroupLifeCycleTaskRuntimeMBean shutdown(int timeout,
                                                boolean ignoreSessions,
                                                boolean waitForAllSessions,
                                                TargetMBean[] targets)
                                                throws ResourceGroupLifecycleException
Gracefully shuts down a resource group.
Parameters:
timeout - Number of seconds to wait before aborting inflight work and force shutting down the server.
ignoreSessions - Set to true to ignore pending HTTP sessions during inflight work handling.
waitForAllSessions - Set to true to wait for all HTTP sessions duirng inflight work handling; false to wait for non-persisted HTTP sessions only.
targets - the specific targets on which to shut down this resource group
Returns:
task object for monitoring the operation's progress
Throws:
ResourceGroupLifecycleException - If the resource group fails to gracefully shutdown. A ResourceGroupLifeCycleRuntimeMBean.forceShutdown() operation can be invoked.

shutdown

ResourceGroupLifeCycleTaskRuntimeMBean shutdown(int timeout,
                                                boolean ignoreSessions,
                                                TargetMBean[] targets)
                                                throws ResourceGroupLifecycleException

Shuts down a resource group gracefully. (equivalent to shutdown(timeout, ignoreSessions, false, targets)).

Parameters:
timeout - Number of seconds to wait before aborting inflight work and shutting down the server.
ignoreSessions - true indicates ignore pending HTTP sessions during inflight work handling.
targets - the specific targets on which to shut down this resource group
Throws:
ResourceGroupLifecycleException - Thrown if the resource group cannot gracefully shutdown. Use the forceShutdown command to shutdown the resource group.

shutdown

ResourceGroupLifeCycleTaskRuntimeMBean shutdown(int timeout,
                                                boolean ignoreSessions)
                                                throws ResourceGroupLifecycleException

Shuts down a resource group gracefully. (equivalent to shutdown(timeout, ignoreSessions, false, targets)).

Parameters:
timeout - Number of seconds to wait before aborting inflight work and shutting down the server.
ignoreSessions - true indicates ignore pending HTTP sessions during inflight work handling.
Throws:
ResourceGroupLifecycleException - Thrown if the resource group cannot gracefully shutdown. Use the forceShutdown command to shutdown the resource group.

shutdown

ResourceGroupLifeCycleTaskRuntimeMBean shutdown(TargetMBean[] targets)
                                                throws ResourceGroupLifecycleException

Shuts down the resource group gracefully. (equivalent to shutdown(targets, 0, false)).

Parameters:
targets - the specific targets on which to start this resource group
Returns:
task usable by caller to monitor progress
Throws:
ResourceGroupLifecycleException - if the shutdown fails

shutdown

ResourceGroupLifeCycleTaskRuntimeMBean shutdown()
                                                throws ResourceGroupLifecycleException

Shuts down the resource group gracefully on all targets.

Returns:
task usable by caller to monitor progress
Throws:
ResourceGroupLifecycleException - if the shutdown fails

forceShutdown

ResourceGroupLifeCycleTaskRuntimeMBean forceShutdown(TargetMBean[] targets)
                                                     throws ResourceGroupLifecycleException

Forces the shutdown of the resource group on specified targets.

Parameters:
targets - the specific targets on which to start this resource group
Returns:
task object for monitoring the shutdown
Throws:
ResourceGroupLifecycleException - if the resource group fails to shut down

forceShutdown

ResourceGroupLifeCycleTaskRuntimeMBean forceShutdown()
                                                     throws ResourceGroupLifecycleException

Forces the shutdown of the resource group.

Returns:
task object for monitoring the shutdown
Throws:
ResourceGroupLifecycleException - if the resource group fails to shut down

suspend

ResourceGroupLifeCycleTaskRuntimeMBean suspend(int timeout,
                                               boolean ignoreSessions,
                                               TargetMBean[] targets)
                                               throws ResourceGroupLifecycleException
Transitions the resource group from RUNNING to ADMIN state gracefully on specified targets.

Applications are in admin mode. Inflight work is completed.

Parameters:
timeout - Seconds to wait for the resource group to transition gracefully. The resource group automatically calls ResourceGroupLifeCycleRuntimeMBean.forceSuspend() after timeout.
ignoreSessions - drop inflight HTTP sessions during graceful suspend
targets - the specific targets on which to start this resource group
Throws:
ResourceGroupLifecycleException - resource group failed to suspend gracefully. A ResourceGroupLifeCycleRuntimeMBean.forceSuspend() or a ResourceGroupLifeCycleRuntimeMBean.forceShutdown() operation can be invoked.

suspend

ResourceGroupLifeCycleTaskRuntimeMBean suspend(int timeout,
                                               boolean ignoreSessions)
                                               throws ResourceGroupLifecycleException
Transitions the resource group from RUNNING to ADMIN state gracefully.

Applications are in admin mode. Inflight work is completed.

Parameters:
timeout - Seconds to wait for the resource group to transition gracefully. The resource group automatically calls ResourceGroupLifeCycleRuntimeMBean.forceSuspend() after timeout.
ignoreSessions - drop inflight HTTP sessions during graceful suspend
Throws:
ResourceGroupLifecycleException - resource group failed to suspend gracefully. A ResourceGroupLifeCycleRuntimeMBean.forceSuspend() or a ResourceGroupLifeCycleRuntimeMBean.forceShutdown() operation can be invoked.

suspend

ResourceGroupLifeCycleTaskRuntimeMBean suspend(TargetMBean[] targets)
                                               throws ResourceGroupLifecycleException
Gracefully suspends the resource group to ADMIN state. (equivalent to suspend(0, false)) New requests are rejected and inflight work is allowed to complete.
Parameters:
targets - the specific targets on which to start this resource group
Throws:
ResourceGroupLifecycleException - If the operation fails
See Also:
ResourceGroupLifeCycleRuntimeMBean.suspend(int, boolean)

suspend

ResourceGroupLifeCycleTaskRuntimeMBean suspend()
                                               throws ResourceGroupLifecycleException
Gracefully suspends the resource group to ADMIN state. (equivalent to suspend(0, false)) New requests are rejected and inflight work is allowed to complete.
Throws:
ResourceGroupLifecycleException - If the operation fails
See Also:
ResourceGroupLifeCycleRuntimeMBean.suspend(int, boolean)

forceSuspend

ResourceGroupLifeCycleTaskRuntimeMBean forceSuspend(TargetMBean[] targets)
                                                    throws ResourceGroupLifecycleException
Forcefully suspends the resource group on specified targets.
Parameters:
targets - the specific targets on which to start this resource group
Returns:
ResourceGroupLifeCycleTaskRuntimeMBean task object for monitoring the operation
Throws:
ResourceGroupLifecycleException - the resource group could not suspend.

forceSuspend

ResourceGroupLifeCycleTaskRuntimeMBean forceSuspend()
                                                    throws ResourceGroupLifecycleException
Forcefully suspends the resource group.
Returns:
ResourceGroupLifeCycleTaskRuntimeMBean task object for monitoring the operation
Throws:
ResourceGroupLifecycleException - the resource group could not suspend.

resume

ResourceGroupLifeCycleTaskRuntimeMBean resume(TargetMBean[] targets)
                                              throws ResourceGroupLifecycleException
Transitions the resource group from ADMIN to RUNNING state on specified targets.
Parameters:
targets - the specific targets on which to start this resource group
Throws:
ResourceGroupLifecycleException - If the resume operation fails

resume

ResourceGroupLifeCycleTaskRuntimeMBean resume()
                                              throws ResourceGroupLifecycleException
Transitions the resource group from ADMIN to RUNNING state.
Throws:
ResourceGroupLifecycleException - If the resume operation fails

purgeTasks

void purgeTasks()
Clears the retained task collection.

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09