
es.tid.pce.client.multiDomain.AutomaticTesterSpainNetwork Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network-emulator Show documentation
Show all versions of network-emulator Show documentation
Emulator of GMPLS-controlled transport Network
The newest version!
package es.tid.pce.client.multiDomain;
import java.util.Timer;
import es.tid.pce.client.PCCPCEPSession;
import es.tid.pce.pcepsession.PCEPSessionsInformation;
/**
* Testeador de caminos
* @author Marta Cuaresma Saturio
*
*/
public class AutomaticTesterSpainNetwork {
private static int PCEServerPort = 4183;
private static String ipPCE = "localhost";
private static PCCPCEPSession PCEsession;
private static long timeProcessing = 10000;
/**
* @param args
*/
public static void main(String[] args) {
/*If there are arguments, read the PCEServerPort and ipPCE*/
if (args.length < 2) {
System.out.println("Usage: ClientTester ");
return;
}
ipPCE = args[0];
PCEServerPort = Integer.valueOf(args[1]).intValue();
PCEsession = new PCCPCEPSession(ipPCE, PCEServerPort,false, new PCEPSessionsInformation());
PCEsession.start();
/*Creo mi testeador*/
AutomaticTesterSpainNetworkTask srt= new AutomaticTesterSpainNetworkTask(PCEsession,PCEsession.getPeerPCE_port());
Timer timer=new Timer();
timer.schedule(srt, 0,timeProcessing);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy