FileDocCategorySizeDatePackage
GroupInfoServiceObserverImpl.javaAPI DocGlassfish v2 API3320Fri May 04 22:32:52 BST 2007com.sun.appserv.naming

GroupInfoServiceObserverImpl

public class GroupInfoServiceObserverImpl extends Object implements com.sun.corba.ee.spi.folb.GroupInfoServiceObserver
Called when the GroupInfoService that you register with has a change. You should call the GroupInfoService getClusterInstanceInfo method to get updated info.
author
Sheetal Vartak

Fields Summary
protected final Logger
_logger
private com.sun.corba.ee.spi.folb.GroupInfoService
gis
Constructors Summary
public GroupInfoServiceObserverImpl(com.sun.corba.ee.spi.folb.GroupInfoService gis)


       
	this.gis = gis;
    
Methods Summary
public voidmembershipChange()


	try {	 	    
	    List<ClusterInstanceInfo> instanceInfoList = gis.getClusterInstanceInfo((String[])null);
	    if (instanceInfoList != null && instanceInfoList.size() > 0) {
	        S1ASCtxFactory.getRRPolicy().setClusterInstanceInfo(instanceInfoList);
	    }
	} catch(Exception e) {
	    _logger.log(Level.SEVERE, "groupinfoservice.membership.notification.problem", new Object[] {e});
	}