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

Part Number E27170-01

weblogic.management.runtime
Interface ServiceMigrationRuntimeMBean

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

public interface ServiceMigrationRuntimeMBean
extends RuntimeMBean

ServiceMigrationRuntimeMBean provides runtime monitoring information about the past migrations performed by this server as the cluster master. If this server was never the cluster master then no information would be available. This RuntimeMBean would be hosted on all cluster members and can be queried for the location of the cluster master which is just another peer in the cluster. JMX clients can make another call to the server hosting the cluster master functionality to get the migration history.

Please note that the migration history is not persisted and is lost when a server is shutdown.


Method Summary
 String getClusterMasterName()
          Returns the server name who is the cluster master.
 ServiceMigrationDataRuntimeMBean[] getMigrationData()
          Returns the migrations performed by this server as the cluster master.
 boolean isClusterMaster()
          Is the current server the cluster master?
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, 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

isClusterMaster

boolean isClusterMaster()
Is the current server the cluster master?


getClusterMasterName

String getClusterMasterName()
                            throws ManagementException
Returns the server name who is the cluster master. Migration history is only available from the cluster master.

Throws:
ManagementException

getMigrationData

ServiceMigrationDataRuntimeMBean[] getMigrationData()
                                                    throws ManagementException
Returns the migrations performed by this server as the cluster master. Returns null if there is no history available.

Throws:
ManagementException - is thrown if this method is called on a server that is not the cluster master.

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