[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster-devel] Node Info...
Matthew Sargent wrote:
Hi,
How would one discover (from a plug-in) what domains my cluster node
is master of? If I can get my ClusterNode from the ClusterManager, is
there a simple way to use that to find the domains it is master of?
ClusterNode myCN = engineGlob.getClusterManager().getMyClusterNode();
Matt
Map map =
this.glob.getClusterManager().getMyClusterNode().getDomainInfoMap();
Iterator it = map.values().iterator();
while (it.hasNext()) {
NodeDomainInfo info = (NodeDomainInfo)it.next();
info.toXml("");
}
should do the magic,
regards,
Marcel