public boolean isMaster ( final ServerAddress serverAddress ) { ServerAddress masterServerAddress = getMaster ( ) ; return masterServerAddress != null && masterServerAddress . equals ( serverAddress ) ; }
Checks to see if a given server is the primary server in this replica set .