Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06

weblogic.cluster.singleton
Class MigratableServerService

java.lang.Object
  extended by AbstractServerService
      extended by weblogic.cluster.singleton.MigratableServerService
All Implemented Interfaces:
PropertyChangeListener, EventListener, LeaseLostListener, LeaseObtainedListener, weblogic.timers.NakedTimerListener, weblogic.timers.TimerListener

public class MigratableServerService
extends AbstractServerService
implements LeaseLostListener, PropertyChangeListener, LeaseObtainedListener, weblogic.timers.NakedTimerListener

MigratableServerService registers ServerMigrationCoordinator with the MBean server and creates the ClusterMaster Leasing implementation. Health is proved every ClusterMBean.getHealthCheckIntervalMillis() ms (default 10s), and if health could not be proved for ClusterMBean.getHealthCheckPeriodsUntilFencing() (default 3) mastership is abdicated.


Constructor Summary
MigratableServerService()
           
 
Method Summary
 String findSingletonMaster()
           
static String findURLOfUnconnectedServer(String server)
           
 weblogic.management.configuration.MachineMBean getCurrentMachine()
           
 String getLeasingType()
           
 SingletonMonitorRemote getSingletonMasterRemote()
           
 SingletonMonitorRemote getSingletonMasterRemote(int retryCount)
           
 void halt()
           
 void initialize()
           
 boolean isClusterMaster()
           
 boolean isSingletonMaster()
           
 void notifySingletonMasterShutdown()
           
 void onAcquire(String leaseName)
           
 void onException(Exception e, String leaseName)
           
 void onRelease()
           
 void propertyChange(PropertyChangeEvent event)
           
 void start()
           
 void stop()
           
static MigratableServerService theOne()
           
 void timerExpired(weblogic.timers.Timer timer)
          Regularly called by the timer service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigratableServerService

public MigratableServerService()
Method Detail

initialize

public void initialize()
                throws ServiceFailureException
Throws:
ServiceFailureException

getLeasingType

public String getLeasingType()

theOne

public static MigratableServerService theOne()

isClusterMaster

public boolean isClusterMaster()

isSingletonMaster

public boolean isSingletonMaster()

findSingletonMaster

public String findSingletonMaster()
                           throws LeasingException
Throws:
LeasingException

getSingletonMasterRemote

public SingletonMonitorRemote getSingletonMasterRemote()
                                                throws LeasingException
Throws:
LeasingException

getSingletonMasterRemote

public SingletonMonitorRemote getSingletonMasterRemote(int retryCount)
                                                throws LeasingException
Throws:
LeasingException

findURLOfUnconnectedServer

public static String findURLOfUnconnectedServer(String server)

start

public void start()
           throws ServiceFailureException
Throws:
ServiceFailureException

timerExpired

public void timerExpired(weblogic.timers.Timer timer)
Regularly called by the timer service. Attempts to find the owner of the lease for CR372903. If another server owns the lease then force shutdown. Otherwise get the lease when we can.

Specified by:
timerExpired in interface weblogic.timers.TimerListener
Parameters:
timer - The timer that expired and caused the listener to be invoked.

stop

public void stop()
          throws ServiceFailureException
Throws:
ServiceFailureException

halt

public void halt()
          throws ServiceFailureException
Throws:
ServiceFailureException

propertyChange

public void propertyChange(PropertyChangeEvent event)
Specified by:
propertyChange in interface PropertyChangeListener

getCurrentMachine

public weblogic.management.configuration.MachineMBean getCurrentMachine()

onRelease

public void onRelease()
Specified by:
onRelease in interface LeaseLostListener

onAcquire

public void onAcquire(String leaseName)
Specified by:
onAcquire in interface LeaseObtainedListener

onException

public void onException(Exception e,
                        String leaseName)
Specified by:
onException in interface LeaseObtainedListener

notifySingletonMasterShutdown

public void notifySingletonMasterShutdown()

Copyright 1996, 2011, 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
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06