private class LookupLocatorDiscovery.LocatorReg extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
LookupLocatorDiscovery.LocatorReg(LookupLocator l) |
Modifier and Type | Method and Description |
---|---|
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.
|
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
public LookupLocatorDiscovery.LocatorReg(LookupLocator l)
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)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.