|
Oracle | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteLeasingBasis
A RemoteLeasingBasis provides a remote implementation of LeasingBasis
.
The interface does not extend LeasingBasis
both to make the interface
conformant RMI and to ensure that it is not used as LeasingBasis
for
LeaseManager
. This is because the LeasingBasis
must always be local
in order to guarantee various invariants.
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. |
Method Detail |
---|
boolean acquire(String leaseName, String owner, int leaseTimeout) throws IOException
LeasingBasis
acquire
in interface LeasingBasis
leaseTimeout
- in milliseconds
IOException
LeasingBasis.acquire(java.lang.String, java.lang.String, int)
void release(String leaseName, String owner) throws IOException
LeasingBasis
release
in interface LeasingBasis
IOException
LeasingBasis.release(java.lang.String, java.lang.String)
String findOwner(String leaseName) throws IOException
LeasingBasis
findOwner
in interface LeasingBasis
IOException
LeasingBasis.findOwner(java.lang.String)
String findPreviousOwner(String leaseName) throws IOException
findPreviousOwner
in interface LeasingBasis
IOException
LeasingBasis.findPreviousOwner(java.lang.String)
int renewAllLeases(int healthCheckPeriod, String owner) throws IOException, MissedHeartbeatException
LeasingBasis
renewAllLeases
in interface LeasingBasis
healthCheckPeriod
- in milliseconds
IOException
MissedHeartbeatException
LeasingBasis.renewAllLeases(int, java.lang.String)
String[] findExpiredLeases(int gracePeriod) throws IOException
LeasingBasis
findExpiredLeases
in interface LeasingBasis
gracePeriod
- in milliseconds
IOException
LeasingBasis.findExpiredLeases(int)
int renewLeases(String owner, Set leases, int healthCheckPeriod) throws IOException, MissedHeartbeatException
LeasingBasis
renewLeases
in interface LeasingBasis
leases
- to be renewedhealthCheckPeriod
- in milliseconds
IOException
MissedHeartbeatException
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111 Copyright 1996,2009, 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. Part Number E13941-01 Oracle WebLogic Server 10.3.1 API Reference |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |