|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.gm.LeaseLayer
public class LeaseLayer
The LeaseLayer
implements a lease based refresh mechanism
towards the dependable registry. This layer must be configured within
a server group, allowing each server to perform refresh calls towards
the dependable registry.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jgroup.core.Layer |
---|
Layer.FinalizeLayer |
Field Summary |
---|
Fields inherited from interface jgroup.relacs.gm.LeaseService |
---|
DEFAULT_REFRESH_RATE |
Method Summary | |
---|---|
void |
addListener(java.lang.Object listener)
We obtain the refresh rate for the given server and start the lease refresh thread. |
static LeaseLayer |
getLayer(RegistryService regs)
|
void |
run()
This method will execute in a new thread, started from the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LeaseLayer getLayer(RegistryService regs) throws java.rmi.RemoteException
java.rmi.RemoteException
public void addListener(java.lang.Object listener)
addListener
in interface Layer
listener
- An Object
representation of the listener interface.
This will typically be cast to the appropriate listener interface
type after checking the type with the instanceof operator.public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |