private class AbstractLookupLocatorDiscovery.LocatorReg extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
discarded |
LookupLocator |
l |
private String[] |
memberGroups |
private static long |
MIN_RETRY |
private long |
nextTryTime |
private ServiceRegistrar |
proxy |
private long[] |
sleepTime |
private int |
tryIndx |
Constructor and Description |
---|
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.
|
private String[] |
getMemberGroups() |
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.
|
private ServiceRegistrar |
getProxy() |
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.
|
private ServiceRegistrar proxy
public final LookupLocator l
private String[] memberGroups
private boolean discarded
private static final long MIN_RETRY
private final long[] sleepTime
private int tryIndx
private long nextTryTime
public 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)
public int hashCode()
private ServiceRegistrar getProxy()
private String[] getMemberGroups()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.