当前位置: 首页>>代码示例>>Java>>正文


Java PCEPReport类代码示例

本文整理汇总了Java中es.tid.pce.pcep.messages.PCEPReport的典型用法代码示例。如果您正苦于以下问题:Java PCEPReport类的具体用法?Java PCEPReport怎么用?Java PCEPReport使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PCEPReport类属于es.tid.pce.pcep.messages包,在下文中一共展示了PCEPReport类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: run

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public void run()
{
	PCEPReport report_m;
	while (running)
	{
		try
		{
			report_m=reportMessageQueue.take();
			effectivelyDispatch(report_m);
		}
		catch(InterruptedException e)
		{
			log.warn("Interrupted Exception Captured in ReportProcessorThread");
			e.printStackTrace();
			break;
		}
		
	}
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:20,代码来源:ReportProcessorThread.java

示例2: ReportDispatcher

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public ReportDispatcher(ReportDB_Handler lspDB, int nThreads)
{
	log=LoggerFactory.getLogger("PCEServer");
	
	
	this.nThreads = nThreads;
    reportMessageQueue = new LinkedBlockingQueue<PCEPReport>();
    threads = new ReportProcessorThread[nThreads];
       for (int i=0; i<this.nThreads; i++) {
       	log.info("Starting Request Processor Thread");	        	
           threads[i] = new ReportProcessorThread(reportMessageQueue, lspDB);
           threads[i].setPriority(Thread.MAX_PRIORITY);
           threads[i].start();
           
       }
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:17,代码来源:ReportDispatcher.java

示例3: deleteNotInterLayerNodes

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
private static void deleteNotInterLayerNodes(LinkedList<String> srcneighborhood,
		LinkedList<String> dstneighborhood, PCEPReport report) {

	for (int i=0; i<srcneighborhood.size(); i++){
		if (!isInReport(srcneighborhood.get(i), report)){
			srcneighborhood.remove(i);
			i--;
		}
	}

	for (int i=0; i<dstneighborhood.size(); i++){
		if (!isInReport(dstneighborhood.get(i), report)){
			dstneighborhood.remove(i);
			i--;
		}
	}
	
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:19,代码来源:Operacion34_Initiate.java

示例4: normalWF

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
private void normalWF()
{
	/*
	 * Alex perdona esto lo he tocado yo y no funciona. Habria que cambiar el Request por el Iniciate en cuanto
	 * tenga un seg lo arreglo
	 */
	PCEPInitiate pr = this.pcepInit;

		log.info("Vamos a enviar"+pr.toString());
		System.out.println("VNTMClient: Sending request...");
		try {
			pr.encode();
			sendRequest(out, pr);
			try {

				System.out.println("VNTMClient: Waiting for Response...");
				byte[] msg=readMsg(in);

				System.out.println("VNTMClient: DONE!");
				this.telink = new PCEPReport(msg);
				//System.out.println(telink.toString());
				log.info("Report Receive: "+this.telink.toString());
			} catch (IOException e) {
				e.printStackTrace();
			}
		} catch (PCEPProtocolViolationException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
		
		endConnections();
			
}
 
开发者ID:telefonicaid,项目名称:netphony-gmpls-emulator,代码行数:35,代码来源:VNTMClientSession.java

示例5: ReportProcessorThread

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public ReportProcessorThread( LinkedBlockingQueue<PCEPReport> reportMessageQueue, ReportDB_Handler lspDB) 
{
	log=LoggerFactory.getLogger("PCEServer");
	running = true;
	this.lspDB = lspDB;
	this.reportMessageQueue = reportMessageQueue;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:8,代码来源:ReportProcessorThread.java

示例6: effectivelyDispatch

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public void effectivelyDispatch(PCEPReport pcepReport)
{
	log.info("Received new report message: "+pcepReport.toString());
	log.info("whith ID :"+pcepReport.getStateReportList().get(0).getLSP().getLspId());
	Inet4Address addres = pcepReport.getStateReportList().get(0).getLSP().getLspIdentifiers_tlv().getTunnelSenderIPAddress();
	
	Boolean isSyncOver = false;
	
	log.info("Size LSP:"+pcepReport.getStateReportList().size());
	//isSyncOver = lspDB.isPCCSyncOver(pcepReport.getStateReportList().get(0).getLSP().getLspIdentifiers_tlv().getTunnelSenderIPAddress());
	
	log.info("Package received from adress: "+pcepReport.getStateReportList().get(0).getLSP().getLspIdentifiers_tlv().getTunnelSenderIPAddress());
	
	
	if (!isSyncOver)
	{
		boolean syncFlag;
		int numLSPs = pcepReport.getStateReportList().size();
		for (int j = 0; j < numLSPs ; j++)
		{
			syncFlag = pcepReport.getStateReportList().get(j).getLSP().issFlag();
			if ((!syncFlag)&&(pcepReport.getStateReportList().get(j).getLSP().getLspId()==0))
			{
				isSyncOver = true;
				log.info("Sync is over");
	//			lspDB.setPCCSyncOver(addres);
			}
		}
	}
	
	for (int i = 0; i < pcepReport.getStateReportList().size(); i++)
	{			
		lspDB.processReport(pcepReport);
	}
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:36,代码来源:ReportProcessorThread.java

示例7: isInReport

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
private static boolean isInReport(String node, PCEPReport report) {
	for (int i=0; i<report.getStateReportList().get(0).getPath().geteRO().getEROSubobjectList().size();i++){
		if (node.equals(((OpenFlowUnnumberIfIDEROSubobject)report.getStateReportList().get(0).getPath().geteRO().getEROSubobjectList().get(i)).getSwitchID())){
			return true;
		}
	}
	return false;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:9,代码来源:Operacion34_Initiate.java

示例8: ClientRequestManager

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public ClientRequestManager(){
	log=LoggerFactory.getLogger("PCCClient");
	//this.out=out;
	locks = new Hashtable<Long, Object>();
	responses=new Hashtable<Long, PCEPResponse>();
	responsesInit=new Hashtable<Long, PCEPReport>();

	semaphores=new Hashtable<Long,Semaphore>();
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:10,代码来源:ClientRequestManager.java

示例9: notifyResponseInit

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public void notifyResponseInit(PCEPReport pcres, long timeIni){
	System.out.println("Entrando en Notify Resp Init");
	log.info("Entrando en Notify Resp Init");
	lastTime=timeIni;
	
	
	long idIni=pcres.getStateReportList().get(0).getSRP().getSRP_ID_number();
	System.out.println("Nos llega un" +idIni);
	responsesInit.put(new Long(idIni), pcres);
	
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:12,代码来源:ClientRequestManager.java

示例10: getTelink

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public PCEPReport getTelink()
{
	return telink;
}
 
开发者ID:telefonicaid,项目名称:netphony-gmpls-emulator,代码行数:5,代码来源:StatefulPCEPSession.java

示例11: setTelink

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public void setTelink(PCEPReport telink) 
{
	this.telink = telink;
}
 
开发者ID:telefonicaid,项目名称:netphony-gmpls-emulator,代码行数:5,代码来源:StatefulPCEPSession.java

示例12: respondABNO

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
private void respondABNO(Socket socket, DataInputStream in)
{
	try
	{
		byte[] salida2=null;
		int counter=0;
		while ((counter<200)&&(salida2==null)){	
			salida2=this.readMsg2(in);
			if (PCEPMessage.getMessageType(salida2)!=PCEPMessageTypes.MESSAGE_REPORT){
				salida2=null;
				System.out.println("No Report");
				in = new DataInputStream(socket.getInputStream());
			}

			Thread.currentThread().sleep(1000);
			counter++;
		}
		//PCEPReport pcepReport = new PCEPReport(salida2);
		log.info("Ouput(Sending Report):"+salida2.toString());
		if ((out== null)||(salida2==null))
		{
			System.out.println("No se crea bien el out");
		}
		else{
			PCEPReport pceprep=new PCEPReport(salida2);
			if (idToDelete==-1){
				this.oPtable.put((long)oPcounter.incrementAndGet(), new OpTable("ABNOController", vntmparams.getPMAddress(), String.valueOf(vntmparams.getPMPort()), pceprep.getStateReportList().get(0).getLSP().getLspId(), null));
				pceprep.getStateReportList().get(0).getLSP().setLspId((int)oPcounter.get());
				System.out.println("VNTM: Guardamos con la id="+oPcounter.get());
			} else {
				this.oPtable.remove(idToDelete);
				pceprep.getStateReportList().get(0).getLSP().setLspId((int)idToDelete);
			}
			log.info("Sending PCEP message");
			pceprep.encode();
			this.out.write(pceprep.getBytes());
			this.out.flush();
			this.printOPTable();
		}
	}
	catch (Exception e)
	{
		log.info(UtilsFunctions.exceptionToString(e));
	}
}
 
开发者ID:telefonicaid,项目名称:netphony-gmpls-emulator,代码行数:46,代码来源:VNTMSession.java

示例13: dispatchReport

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public void dispatchReport(PCEPReport pcepReport)
{	    
	reportMessageQueue.add(pcepReport);
   }
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:5,代码来源:ReportDispatcher.java

示例14: getReport

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
public PCEPReport getReport()
{
	return report;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:5,代码来源:PCEPClientSession.java

示例15: LSPTEInfo

import es.tid.pce.pcep.messages.PCEPReport; //导入依赖的package包/类
LSPTEInfo( PCEPReport pcepReport)
{
	this.pcepReport = pcepReport;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:5,代码来源:PCEManagementSession.java


注:本文中的es.tid.pce.pcep.messages.PCEPReport类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。