public synchronized void addServer(ServerLocation location,String[] groups,ServerLoad initialLoad,long loadPollInterval){
  serverGroupMap.put(location,groups);
  LoadHolder connectionLoad=new LoadHolder(location,initialLoad.getConnectionLoad(),initialLoad.getLoadPerConnection(),loadPollInterval);
  addGroups(connectionLoadMap,groups,connectionLoad);
  LoadHolder queueLoad=new LoadHolder(location,initialLoad.getSubscriptionConnectionLoad(),initialLoad.getLoadPerSubscriptionConnection(),loadPollInterval);
  addGroups(queueLoadMap,groups,queueLoad);
  updateLoad(location,initialLoad);
}

public synchronized void addServer ( ServerLocation location , String [ ] groups , ServerLoad initialLoad , long loadPollInterval ) { serverGroupMap . put ( location , groups ) ; LoadHolder connectionLoad = new LoadHolder ( location , initialLoad . getConnectionLoad ( ) , initialLoad . getLoadPerConnection ( ) , loadPollInterval ) ; addGroups ( connectionLoadMap , groups , connectionLoad ) ; LoadHolder queueLoad = new LoadHolder ( location , initialLoad . getSubscriptionConnectionLoad ( ) , initialLoad . getLoadPerSubscriptionConnection ( ) , loadPollInterval ) ; addGroups ( queueLoadMap , groups , queueLoad ) ; updateLoad ( location , initialLoad ) ; }
add a new server to the load snapshot .
