private boolean isPrimaryServer(ServerHeartbeat server,UpdatePod update){
  int index=getServerIndex(server,update);
  if (index < 0) {
    return false;
  }
  for (int i=0; i < update.getNodeCount(); i++) {
    UpdateNode node=update.getNode(i);
    int primary=node.getServers()[0];
    if (index == primary) {
      return true;
    }
  }
  return false;
}

private boolean isPrimaryServer ( ServerHeartbeat server , UpdatePod update ) { int index = getServerIndex ( server , update ) ; if ( index < 0 ) { return false ; } for ( int i = 0 ; i < update . getNodeCount ( ) ; i ++ ) { UpdateNode node = update . getNode ( i ) ; int primary = node . getServers ( ) [ 0 ] ; if ( index == primary ) { return true ; } } return false ; }
calculate an ordered list of servers that can be assigned to the pod .
