|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
ParkNPark.interfaces.ReplicationManagerPOA
ParkNPark.middletier.ReplicationManager
public class ReplicationManager
Nested Class Summary | |
---|---|
protected class |
ReplicationManager.StartupListener
Listens on a server process to determine if it started up successfully or not |
Field Summary | |
---|---|
protected PrintStream |
err
The original System.err instance |
protected static PrintStream |
inputEater
Shared static instance of the input eater output stream wrapped in a PrintStream |
protected int |
interRequestTime
Time between requests |
private String |
jdbcPassword
The JDBC password |
private String |
jdbcURL
The JDBC URL |
private String |
jdbcUsername
The JDBC user name |
protected NameService |
nameService
Instance of our common name service management object |
protected int |
numClients
Number of clients |
protected int |
numServers
Number of servers |
private ORB |
orb
Object request broker |
protected String |
projectRoot
The project root, which is used when restarting a failed server |
protected int |
replySize
Size of reply |
private POA |
rootPOA
Root POA |
protected int |
timeout
The wait timeout to use during fault detections |
Constructor Summary | |
---|---|
ReplicationManager()
|
Method Summary | |
---|---|
void |
checkServers()
Check whether or not servers are active |
static void |
main(String[] args)
Entry point of replication manager |
protected boolean |
registerReplicationManager()
Registers the replication manager's name with the name service. |
protected boolean |
removeExistingEntries(String serviceName)
Removes existing server entries that match the given service name. |
void |
serverRegistered(String ipAddress,
String serviceName,
ClientManagerFactory cmf)
Called by servers when they start up. |
void |
setPrimary(int index)
Set one of the active servers as the primary |
protected void |
setupReplicationManagerCORBAObjects(String[] args)
Setup CORBA objects |
void |
startServer(Server s,
boolean corrupted)
Start a new server or restart a corrupted server |
void |
unbindServer(Server s)
Unbind the failed server's service name from the naming service |
Methods inherited from class ParkNPark.interfaces.ReplicationManagerPOA |
---|
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
---|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ORB orb
private POA rootPOA
protected String projectRoot
protected NameService nameService
protected int numClients
protected int numServers
protected int interRequestTime
protected int replySize
protected int timeout
protected PrintStream err
private String jdbcURL
private String jdbcUsername
private String jdbcPassword
protected static PrintStream inputEater
Constructor Detail |
---|
public ReplicationManager()
Method Detail |
---|
public static void main(String[] args)
args
- public void serverRegistered(String ipAddress, String serviceName, ClientManagerFactory cmf)
ipAddress
- serviceName
- cmf
- public void checkServers()
public void setPrimary(int index)
index
- public void unbindServer(Server s)
s
- public void startServer(Server s, boolean corrupted)
s
- corrupted
- protected boolean removeExistingEntries(String serviceName)
serviceName
- The service name to remove matching entries ofprotected void setupReplicationManagerCORBAObjects(String[] args)
protected boolean registerReplicationManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |