| 
 | Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.3) Part Number E13941-03 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogic.cluster.singleton.RemoteLeasingBasisImpl
public class RemoteLeasingBasisImpl
Remote implementation of RemoteLeasingBasis as a wrapper
 around a LeasingBasis.
| Constructor Summary | |
|---|---|
| RemoteLeasingBasisImpl(LeasingBasis basis) | |
| Method Summary | |
|---|---|
|  boolean | acquire(String leaseName,
        String owner,
        int leaseTimeout)Attempts to claim immediate ownership of a lease for this server. | 
|  String[] | findExpiredLeases(int gracePeriod)Returns a list of the servers that have consistently missed sending heartbeats in a timely manner, and failed to do so for longer than their grace period. | 
|  String | findOwner(String leaseName)Returns the identity of the server that currently owns the lease. | 
|  String | findPreviousOwner(String leaseName) | 
|  void | release(String leaseName,
        String owner)If the lease is owned by this server, attempts to give up ownership. | 
|  int | renewAllLeases(int healthCheckPeriod,
               String owner)Attempts to send a heartbeat to prove the health of the server. | 
|  int | renewLeases(String owner,
            Set leases,
            int healthCheckPeriod)Attempts to renew all the currently held leases. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RemoteLeasingBasisImpl(LeasingBasis basis)
| Method Detail | 
|---|
public boolean acquire(String leaseName,
                       String owner,
                       int leaseTimeout)
                throws IOException
LeasingBasis
acquire in interface LeasingBasisacquire in interface RemoteLeasingBasisleaseTimeout - in milliseconds
IOExceptionLeasingBasis.acquire(java.lang.String, java.lang.String, int)
public void release(String leaseName,
                    String owner)
             throws IOException
LeasingBasis
release in interface LeasingBasisrelease in interface RemoteLeasingBasisIOExceptionLeasingBasis.release(java.lang.String, java.lang.String)
public String findOwner(String leaseName)
                 throws IOException
LeasingBasis
findOwner in interface LeasingBasisfindOwner in interface RemoteLeasingBasisIOExceptionLeasingBasis.findOwner(java.lang.String)
public String findPreviousOwner(String leaseName)
                         throws IOException
findPreviousOwner in interface LeasingBasisfindPreviousOwner in interface RemoteLeasingBasisIOExceptionLeasingBasis.findPreviousOwner(java.lang.String)
public int renewAllLeases(int healthCheckPeriod,
                          String owner)
                   throws IOException,
                          MissedHeartbeatException
LeasingBasis
renewAllLeases in interface LeasingBasisrenewAllLeases in interface RemoteLeasingBasishealthCheckPeriod - in milliseconds
IOException
MissedHeartbeatExceptionLeasingBasis.renewAllLeases(int, java.lang.String)
public int renewLeases(String owner,
                       Set leases,
                       int healthCheckPeriod)
                throws IOException,
                       MissedHeartbeatException
LeasingBasis
renewLeases in interface LeasingBasisrenewLeases in interface RemoteLeasingBasisleases - to be renewedhealthCheckPeriod - in milliseconds
IOException
MissedHeartbeatException
public String[] findExpiredLeases(int gracePeriod)
                           throws IOException
LeasingBasis
findExpiredLeases in interface LeasingBasisfindExpiredLeases in interface RemoteLeasingBasisgracePeriod - in milliseconds
IOExceptionLeasingBasis.findExpiredLeases(int)| 
 | Copyright 1996, 2010, 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 10.3.3 API Reference 11g Release 1 (10.3.3) Part Number E13941-03 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||