|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ha.framework.interfaces.ClusteringTargetsRepository
public class ClusteringTargetsRepository
JVM singleton that associates a list of targets (+ other info)
contained in a FamilyClusterInfo
to a proxy family. For example,
all remote proxies for a given EJB in a given cluster are part of the
same proxy family. Note that home and remote for a same EJB form *2*
proxy families.
Revisions:
2002/08/23, Sacha Labourey:
FamilyClusterInfo
,
FamilyClusterInfoImpl
Field Summary | |
---|---|
protected static Hashtable |
families
|
Method Summary | |
---|---|
static FamilyClusterInfo |
getFamilyClusterInfo(String familyName)
Gets the FamilyClusterInfo registered under familyName . |
static FamilyClusterInfo |
initTarget(String familyName,
List targets)
Same as initTarget(familyName, targets, 0L) |
static FamilyClusterInfo |
initTarget(String familyName,
List targets,
long viewId)
Checks for the existence of a FamilyClusterInfo with the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Hashtable families
Method Detail |
---|
public static FamilyClusterInfo initTarget(String familyName, List targets)
initTarget(familyName, targets, 0L)
public static FamilyClusterInfo initTarget(String familyName, List targets, long viewId)
FamilyClusterInfo
with the given name. If
found, updates
it; otherwise
creates and caches a new FamilyClusterInfo.
This method must be synchronized to avoid race conditions leading to
multiple FamilyClusterInfo instances for the same familyName
.
familyName
- the name of the proxy familytargets
- the current list of targets for the proxy familyviewId
- long that can be used as a shorthand identifier
for the list of targets
FamilyClusterInfo
encapsulating the current state of the familyName
.public static FamilyClusterInfo getFamilyClusterInfo(String familyName)
FamilyClusterInfo
registered under familyName
.
familyName
- the identifier of the FamilyClusterInfo
null
if none is registered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |