All Downloads are FREE. Search and download functionalities are using the official Maven repository.

es.tid.pce.client.tester.RealiseMLCapacityTask Maven / Gradle / Ivy

The newest version!
package es.tid.pce.client.tester;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.net.Inet4Address;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.TimerTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import es.tid.pce.client.emulator.AutomaticTesterStatistics;
import es.tid.pce.pcep.messages.PCEPRequest;
import es.tid.pce.pcep.messages.PCEPTELinkTearDownSuggestion;
import es.tid.pce.pcep.objects.EndPointsIPv4;



public class RealiseMLCapacityTask  extends TimerTask {

	private Logger log;
	private ArrayList sourceList;
	private ArrayList destinationList;
	private AutomaticTesterStatistics stats;
	
	/*Variable used for counter how many requests there are*/

	PCEPRequest request;
	
	
	public RealiseMLCapacityTask(ArrayList sourceList, ArrayList destinationList,AutomaticTesterStatistics stats ){
		log=LoggerFactory.getLogger("PCCClient");
		this.sourceList = sourceList;
		this.destinationList=destinationList;
		this.stats=stats;
	}
	
	@Override
	public void run() {
		log.info("Deleting LSP, releasing capacity");
		if (stats != null){
			stats.releaseNumberActiveLSP();
		}
		String s1;
		EndPointsIPv4 endPointsIPv4 = new EndPointsIPv4();
		for (int i =0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy