
es.tid.pce.client.multiLayer.RealiseMLCapacityTask 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.multiLayer;
import java.io.BufferedWriter;
import java.io.DataOutputStream;
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.LinkedList;
import java.util.TimerTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import es.tid.pce.client.emulator.AutomaticTesterStatistics;
import es.tid.pce.pcep.PCEPProtocolViolationException;
import es.tid.pce.pcep.messages.PCEPRequest;
import es.tid.pce.pcep.messages.PCEPTELinkSuggestion;
import es.tid.pce.pcep.messages.PCEPTELinkTearDownSuggestion;
import es.tid.pce.pcep.objects.EndPointsIPv4;
import es.tid.rsvp.objects.subobjects.IPv4prefixEROSubobject;
public class RealiseMLCapacityTask extends TimerTask {
private Logger log;
private ArrayList sourceList;
private ArrayList destinationList;
private AutomaticTesterStatistics stats;
private LinkedList path;
/*Variable used for counter how many requests there are*/
PCEPRequest request;
private DataOutputStream out;
private PCEPTELinkSuggestion telinksug;
public RealiseMLCapacityTask(ArrayList sourceList, ArrayList destinationList,AutomaticTesterStatistics stats ){
log=LoggerFactory.getLogger("PCCClient");
this.sourceList = sourceList;
this.destinationList=destinationList;
this.stats=stats;
}
public RealiseMLCapacityTask(AutomaticTesterStatistics stats,DataOutputStream out,PCEPTELinkSuggestion telinksug){
log=LoggerFactory.getLogger("PCCClient");
this.telinksug=telinksug;
this.out=out;
this.stats=stats;
}
@Override
public void run(){
log.info("Deleting LSP, releasing capacity");
if (stats!=null)
stats.releaseNumberActiveLSP();
String s1;
if (sourceList!=null){
for (int i =0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy