protected static class ShardedConnectionFactory.BootstrapState extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ShardedConnectionFactory.BootstrapState(boolean mongosFound)
Creates a new BootstrapState.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
done()
Indicates when the bootstrap is complete.
|
boolean |
isMongosFound()
Returns true if the
mongos servers have been found, false
otherwise. |
void |
setMongosFound(boolean mongosFound)
Sets if the the
mongos servers have been found. |
protected ShardedConnectionFactory.BootstrapState(boolean mongosFound)
mongosFound - Initials if we should look for the mongos servers.public boolean done()
This method returns true if auto discovery is turned off or (if on)
when all of the mongos servers have been located.
public boolean isMongosFound()
mongos servers have been found, false
otherwise.mongos servers have been found, false
otherwise.public void setMongosFound(boolean mongosFound)
mongos servers have been found.mongosFound - If true, the mongos servers have been found, false
otherwise.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.