public void dump(String infoMsg){
  storage.getOnlineMembers();
  storage.getOfflineMembers();
  storage.getOfflineAndEqualMembers();
  storage.getMyInitializingID();
  storage.getMyPersistentID();
  final StringBuilder buf=new StringBuilder(2000);
  if (infoMsg != null) {
    buf.append(infoMsg);
    buf.append(": ");
  }
  buf.append("\nMY PERSISTENT ID:\n");
  buf.append(storage.getMyPersistentID());
  buf.append("\nMY INITIALIZING ID:\n");
  buf.append(storage.getMyInitializingID());
  buf.append("\nONLINE MEMBERS:\n");
  for (  PersistentMemberID id : storage.getOnlineMembers()) {
    buf.append("\t");
    buf.append(id);
    buf.append("\n");
  }
  buf.append("\nOFFLINE MEMBERS:\n");
  for (  PersistentMemberID id : storage.getOfflineMembers()) {
    buf.append("\t");
    buf.append(id);
    buf.append("\n");
  }
  buf.append("\nOFFLINE AND EQUAL MEMBERS:\n");
  for (  PersistentMemberID id : storage.getOfflineAndEqualMembers()) {
    buf.append("\t");
    buf.append(id);
    buf.append("\n");
  }
  logger.debug(buf.toString());
}

public void dump ( String infoMsg ) { storage . getOnlineMembers ( ) ; storage . getOfflineMembers ( ) ; storage . getOfflineAndEqualMembers ( ) ; storage . getMyInitializingID ( ) ; storage . getMyPersistentID ( ) ; final StringBuilder buf = new StringBuilder ( 2000 ) ; if ( infoMsg != null ) { buf . append ( infoMsg ) ; buf . append ( ": " ) ; } buf . append ( "\nMY PERSISTENT ID:\n" ) ; buf . append ( storage . getMyPersistentID ( ) ) ; buf . append ( "\nMY INITIALIZING ID:\n" ) ; buf . append ( storage . getMyInitializingID ( ) ) ; buf . append ( "\nONLINE MEMBERS:\n" ) ; for ( PersistentMemberID id : storage . getOnlineMembers ( ) ) { buf . append ( "\t" ) ; buf . append ( id ) ; buf . append ( "\n" ) ; } buf . append ( "\nOFFLINE MEMBERS:\n" ) ; for ( PersistentMemberID id : storage . getOfflineMembers ( ) ) { buf . append ( "\t" ) ; buf . append ( id ) ; buf . append ( "\n" ) ; } buf . append ( "\nOFFLINE AND EQUAL MEMBERS:\n" ) ; for ( PersistentMemberID id : storage . getOfflineAndEqualMembers ( ) ) { buf . append ( "\t" ) ; buf . append ( id ) ; buf . append ( "\n" ) ; } logger . debug ( buf . toString ( ) ) ; }
callers should have already verified that debug output is enabled .
