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

Part Number E27170-01

weblogic.management.utils
Class GenericManagedDeployment

java.lang.Object
  extended by weblogic.management.utils.GenericManagedDeployment
All Implemented Interfaces:
Migratable

public class GenericManagedDeployment
extends Object
implements Migratable


Field Summary
 
Fields inherited from interface weblogic.cluster.migration.Migratable
ACTIVATING, ACTIVE, DEFAULT_ORDER, EARLY_ORDER, FILESTORE_ORDER, INACTIVE, LATE_ORDER, MDB_ORDER
 
Method Summary
 void activate(DeploymentMBean bean)
           
 void deactivate(DeploymentMBean bean)
           
 String getInstanceName()
           
 DeploymentMBean getMBean()
           
 String getMBeanName()
           
 String getName()
           
 int getOrder()
          Returns the order value for this particular migratable object.
 boolean isClustered()
           
 void migratableActivate()
          Called to activate this instance of the migratable service.
 void migratableDeactivate()
          Called to deactivate this instance of the migratable service.
 void migratableInitialize()
          Called to initialize this instance of the migratable service.
 void prepare(DeploymentMBean bean)
           
 void start()
           
 void stop()
           
 String toString()
           
 void unprepare(DeploymentMBean bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

start

public void start()
           throws DeploymentException
Throws:
DeploymentException

stop

public void stop()
          throws UndeploymentException
Throws:
UndeploymentException

prepare

public void prepare(DeploymentMBean bean)
             throws DeploymentException
Throws:
DeploymentException

activate

public void activate(DeploymentMBean bean)
              throws DeploymentException
Throws:
DeploymentException

deactivate

public void deactivate(DeploymentMBean bean)
                throws UndeploymentException
Throws:
UndeploymentException

unprepare

public void unprepare(DeploymentMBean bean)
               throws UndeploymentException
Throws:
UndeploymentException

getName

public String getName()
Specified by:
getName in interface Migratable

getMBean

public DeploymentMBean getMBean()

getMBeanName

public String getMBeanName()

getInstanceName

public String getInstanceName()

isClustered

public boolean isClustered()

migratableInitialize

public void migratableInitialize()
Description copied from interface: Migratable
Called to initialize this instance of the migratable service. The cluster calls this method when this instance is registered with the local MigrationManager. When this call completes, the instance is considered initialized but inactive.

Specified by:
migratableInitialize in interface Migratable

migratableActivate

public void migratableActivate()
                        throws MigrationException
Description copied from interface: Migratable
Called to activate this instance of the migratable service. The cluster ensures that only one instance is active at a time. This instance should respond by preparing to service requests. This will typically involve recovering the service state from persistent storage.

Specified by:
migratableActivate in interface Migratable
Throws:
MigrationException

migratableDeactivate

public void migratableDeactivate()
                          throws MigrationException
Description copied from interface: Migratable
Called to deactivate this instance of the migratable service. This method is only called if the migration source server is healthy. In order to ensure that there is never more than one active instance, the cluster will call deactivate on the currently active instance before calling activate on another instance. The instance should release any claimed resources that may be required by the new instance. It may also take this opportunity to persist additional state to improve migration.

A migratable can not depend on this method being called. It is only called in the case where the migration source is still healthy. For this reason, the migratable instance must be prepared for failure at all times. This method just provides this instance an opportunity to provide a more graceful migration when conditions permit.

Specified by:
migratableDeactivate in interface Migratable
Throws:
MigrationException

toString

public String toString()
Overrides:
toString in class Object

getOrder

public int getOrder()
Description copied from interface: Migratable
Returns the order value for this particular migratable object. This controls in which order this object will be activated and deactivated with regards to all the other migratable objects deployed on a migratable target.

Specified by:
getOrder in interface Migratable

Copyright 1996, 2013, 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.1.2)

Part Number E27170-01