Example:
import rrdService.client.*; import rrdService.service.*; import rrdService.util.*;
public class MyClient extends RoundRobinServiceClient, implements Executable {
public MyClient(String rrdServiceURL, int rrdServicePort, String rrdServiceHttpPath) throws Exception {
super(rrdServiceURL, rrdServicePort, rrdServiceHttpPath);
RoundRobinLibraryItf homeLibrary = rrdService.getServiceMountLibrary();
homeLibrary.createRoundRobinDataBase(.....
........
}
.....
public void main(String argv[]) {
try {
new MyClient(argv[0], Integer.parseInt(argv[1]), argv[2]);
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. After generating the class MyClient.class put it on your httpServer. Now copy on your client the the jar file remoteLaunch and execute the command line following: java -cp .\remoteLaunch.jar remoteLaunch.Launcher /* http://<hostmane of your http server>/ /* <path where find your class MyClient> /* <parameters if your client has> /*
Contact: pellierd@ufrima.imag.fr
Copyrigth © Firmenich SA 2001