|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.discovery.LookupLocatorDiscovery.LocatorReg
private class LookupLocatorDiscovery.LocatorReg
Wrapper class in which each instance corresponds to a lookup service to discover via unicast discovery.
Field Summary | |
---|---|
private int |
cnt
|
private boolean |
discarded
|
private int |
id
|
LookupLocator |
l
|
String[] |
memberGroups
|
private static long |
MIN_RETRY
|
private long |
nextTryTime
|
ServiceRegistrar |
proxy
|
private long[] |
sleepTime
|
private long |
time
|
private int |
tryIndx
|
Constructor Summary | |
---|---|
LookupLocatorDiscovery.LocatorReg(LookupLocator l)
|
Method Summary | |
---|---|
void |
calcNextTryTime()
Computes the time (in milliseconds) used to determine when it is allowable -- after a previous failure -- to again attempt unicast discovery of the lookup service referenced in this class. |
void |
delayNextTryTime()
This method gets called only from the public discard() method. |
private void |
doUnicastDiscovery(LookupLocator locator,
InvocationConstraints ic)
This method employs the unicast discovery protocol to discover the registrar having LookupLocator equal to the value
contained in the locator parameter of this class. |
boolean |
equals(Object obj)
Returns true if the locators are equal. |
long |
getNextTryTime()
Accessor that returns the absolute time at which the next discovery attempt should be made after the previous attempt has failed to find the desired lookup service. |
int |
hashCode()
Returns the hash code of the locator referenced in this class. |
private void |
queueDiscoveryTask()
|
boolean |
tryGetProxy()
Initiates unicast discovery of the lookup service referenced in this class. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ServiceRegistrar proxy
public final LookupLocator l
public String[] memberGroups
private boolean discarded
private int cnt
private static final long MIN_RETRY
private final long[] sleepTime
private int tryIndx
private long nextTryTime
private final int id
private long time
Constructor Detail |
---|
public LookupLocatorDiscovery.LocatorReg(LookupLocator l)
Method Detail |
---|
public long getNextTryTime()
public void calcNextTryTime()
public void delayNextTryTime()
public boolean tryGetProxy()
private void doUnicastDiscovery(LookupLocator locator, InvocationConstraints ic) throws IOException, ClassNotFoundException
LookupLocator
equal to the value
contained in the locator
parameter of this class.
IOException
ClassNotFoundException
private void queueDiscoveryTask()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |