return db.getMasterServerIfMaster() != null;
}
public SlaveInfo[] getConnectedSlaves()
{
MasterServer master = db.getMasterServerIfMaster();
if ( master == null ) return null;
List<SlaveInfo> result = new ArrayList<SlaveInfo>();
for ( Map.Entry<Integer, Collection<SlaveContext>> entry : master.getSlaveInformation().entrySet() )
{
result.add( slaveInfo( entry.getKey().intValue(), entry.getValue() ) );
}
return result.toArray( new SlaveInfo[result.size()] );
}