public void profileUpdated(Profile profile) { cachedLocators = null; getLogWriterI18n().warning(LocalizedStrings.ServerLocator_SERVERLOCATOR_UNEXPECTED_PROFILE_UPDATE); }
public void profileUpdated(Profile profile) { cachedLocators = null; getLogWriterI18n().warning(LocalizedStrings.ServerLocator_SERVERLOCATOR_UNEXPECTED_PROFILE_UPDATE); }
public void updateLoad(ServerLocation location, ServerLoad load, List clientIds) { if(getLogWriterI18n().fineEnabled()) { getLogWriterI18n().fine("ServerLocator: Received a load update from " + location +", " + load); } loadSnapshot.updateLoad(location, load, clientIds); this.stats.incServerLoadUpdates(); }
public void updateLoad(ServerLocation location, ServerLoad load, List clientIds) { if(getLogWriterI18n().fineEnabled()) { getLogWriterI18n().fine("ServerLocator: Received a load update from " + location +", " + load); } loadSnapshot.updateLoad(location, load, clientIds); this.stats.incServerLoadUpdates(); }
/** * @param profile */ public void profileRemoved(Profile profile) { if(profile instanceof BridgeServerProfile) { BridgeServerProfile bp = (BridgeServerProfile) profile; //InternalDistributedMember id = bp.getDistributedMember(); ServerLocation location = buildServerLocation(bp); loadSnapshot.removeServer(location); if(getLogWriterI18n().fineEnabled()) { getLogWriterI18n().fine("ServerLocator: server departed " + location); } synchronized(ownerMap) { ownerMap.remove(location); } } else { cachedLocators = null; } }
if(getLogWriterI18n().fineEnabled()) { getLogWriterI18n().fine("ServerLocator: Received request " + request); if(getLogWriterI18n().fineEnabled()) { getLogWriterI18n().fine("ServerLocator: Sending response " + response);
/** * @param profile */ public void profileCreated(Profile profile) { if(profile instanceof BridgeServerProfile) { BridgeServerProfile bp = (BridgeServerProfile) profile; ServerLocation location = buildServerLocation(bp); String[] groups = bp.getGroups(); loadSnapshot.addServer(location, groups, bp.getInitialLoad(), bp.getLoadPollInterval()); if(getLogWriterI18n().fineEnabled()) { getLogWriterI18n().fine("ServerLocator: Received load from a new server " + location + ", " + bp.getInitialLoad()); } synchronized(ownerMap) { ownerMap.put(location, profile.getDistributedMember()); } } else { cachedLocators = null; } logServers(); }