1 23 24 package com.sun.appserv.naming; 25 26 import java.util.List ; 27 28 import com.sun.corba.ee.spi.folb.GroupInfoServiceObserver; 29 import com.sun.corba.ee.spi.folb.GroupInfoService; 30 import com.sun.corba.ee.spi.folb.ClusterInstanceInfo; 31 import com.sun.corba.ee.impl.orbutil.ORBConstants; 32 33 import com.sun.enterprise.util.ORBManager; 34 import java.util.logging.Logger ; 35 import java.util.logging.Level ; 36 import com.sun.logging.LogDomains; 37 38 39 46 public class GroupInfoServiceObserverImpl 47 implements GroupInfoServiceObserver { 48 49 protected static Logger _logger = LogDomains.getLogger( 50 LogDomains.JNDI_LOGGER); 51 private GroupInfoService gis; 52 53 public GroupInfoServiceObserverImpl(GroupInfoService gis) { 54 this.gis = gis; 55 } 56 57 public void membershipChange() { 58 59 try { 60 List <ClusterInstanceInfo> instanceInfoList = gis.getClusterInstanceInfo((String [])null); 61 62 S1ASCtxFactory.getRRPolicy().setClusterInstanceInfo(instanceInfoList); 63 } catch(Exception e) { 64 _logger.log(Level.SEVERE, "groupinfoservice.membership.notification.problem", new Object [] {e.getMessage()}); 65 } 66 } 67 68 } 69 | Popular Tags |