|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectParkNPark.client.ParkNParkClient
public class ParkNParkClient
ParkNPark client
Field Summary | |
---|---|
protected int |
detectionTimeout
The wait timeout to use during fault detections |
protected PrintStream |
err
The original System.err instance |
protected int |
getLotsModeCount
Logger instance |
protected int |
interRequestTime
Time between requests |
protected Logger |
logger
Logger instance |
protected boolean |
neverGiveUp
When true, never give up when trying to contact the server |
protected int |
numClients
Number of clients |
protected int |
numServers
Number of servers |
protected ORB |
orb
Our object request broker |
protected int |
recoveryTimeout
The wait timeout to use during fault recoveries |
protected int |
replySize
Size of reply |
Constructor Summary | |
---|---|
ParkNParkClient(ORB orb,
int numClients,
int numServers,
int interRequestTime,
int replySize,
boolean neverGiveUp,
int getLotsModeCount,
int detectionTimeout,
int recoveryTimeout)
Creates a new ParkNParkClient instance that will use the given ORB to communicate with the server |
Method Summary | |
---|---|
private void |
closeLogFiles()
Close the log files and, if a problem arises, notify the user |
static void |
main(String[] args)
Convenience method that executes the ParkNParkClient from the command line |
void |
run()
Runs the ParkNParkClient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ORB orb
protected int numClients
protected int numServers
protected boolean neverGiveUp
protected int interRequestTime
protected int replySize
protected int getLotsModeCount
protected int detectionTimeout
protected int recoveryTimeout
protected Logger logger
protected PrintStream err
Constructor Detail |
---|
public ParkNParkClient(ORB orb, int numClients, int numServers, int interRequestTime, int replySize, boolean neverGiveUp, int getLotsModeCount, int detectionTimeout, int recoveryTimeout)
orb
- The ORB to communicate with the server onnumClients
- The number of clients in the current testnumServers
- The number of servers in the current testinterRequestTime
- The delay between each invocation, which is used when
constructing the log file namesreplySize
- The size of the server's replies, which is used when
constructing the log file namesneverGiveUp
- When true, the client will never give up its attempt to
contact the server, even if no primary is registereddetectionTimeout
- The wait timeout to use during fault detectionsrecoveryTimeout
- The wait timeout to use during fault recoveriesMethod Detail |
---|
public static void main(String[] args)
args
- The command-line arguments to use when starting the clientpublic void run()
run
in interface Runnable
private void closeLogFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |