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


Java MDTEDB类代码示例

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


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

示例1: DefaultSinglePathComputingSSON

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public DefaultSinglePathComputingSSON(ComputingRequest pathReq,TEDB ted ){
	this.ted=ted;
	try {
		if (ted.getClass().equals(SimpleTEDB.class)){
			this.networkGraph= ((SimpleTEDB)ted).getDuplicatedNetworkGraph();
		} else if (ted.getClass().equals(MDTEDB.class) ){
			//this.networkGraph= ((MDTEDB)ted).getDuplicatedNetworkGraph();
			this.networkGraph=null;
		} else if (ted.getClass().equals(SimpleITTEDB.class) ){
			this.networkGraph= ((SimpleITTEDB)ted).getDuplicatedNetworkGraph();
		}

		this.pathReq=pathReq;	
	}catch (Exception e){
		this.pathReq=pathReq;
		this.networkGraph=null;
	}
	
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:20,代码来源:DefaultSinglePathComputingSSON.java

示例2: DefaultSinglePathComputing

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public DefaultSinglePathComputing(ComputingRequest pathReq,TEDB ted ){
	this.ted=ted;
	try {
		if (ted.getClass().equals(SimpleTEDB.class)){
			this.networkGraph= ((SimpleTEDB)ted).getDuplicatedNetworkGraph();
		} else if (ted.getClass().equals(MDTEDB.class) ){
			//this.networkGraph= ((MDTEDB)ted).getDuplicatedNetworkGraph();
			this.networkGraph=null;
		} else if (ted.getClass().equals(SimpleITTEDB.class) ){
			this.networkGraph= ((SimpleITTEDB)ted).getDuplicatedNetworkGraph();
		}

		this.pathReq=pathReq;	
	}catch (Exception e){
		this.pathReq=pathReq;
		this.networkGraph=null;
	}

}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:20,代码来源:DefaultSinglePathComputing.java

示例3: SSONResourceManager

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public SSONResourceManager(SimpleLocalTEDB tedb, Inet4Address localID, MDTEDB MDted){
	this.ted=tedb;
	this.MDted=MDted;
	this.localID=localID;
	log=LoggerFactory.getLogger("ROADM");
	M_Allocation = new Hashtable<LSPKey,Integer>();
	N_Allocation = new Hashtable<LSPKey,Integer>();
	proxHopIPv4List = new Hashtable<LSPKey,Inet4Address>();
	previousHopIPv4List = new Hashtable<LSPKey,Inet4Address>();
	outputInterfaceNode = new Hashtable<LSPKey,Integer>();
}
 
开发者ID:telefonicaid,项目名称:netphony-gmpls-emulator,代码行数:12,代码来源:SSONResourceManager.java

示例4: WSONResourceManager

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public WSONResourceManager(SimpleLocalTEDB tedb, Inet4Address localID, MDTEDB MDted){
	this.ted=tedb;
	this.localID=localID;
	log=LoggerFactory.getLogger("ROADM");
	lspLambdaAllocation = new Hashtable<LSPKey,Integer>();
	proxHopIPv4List = new Hashtable<LSPKey,Inet4Address>();
	previousHopIPv4List = new Hashtable<LSPKey,Inet4Address>();
}
 
开发者ID:telefonicaid,项目名称:netphony-gmpls-emulator,代码行数:9,代码来源:WSONResourceManager.java

示例5: main

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public static void  main(String []args)
	{
		ArrayList<TMPlugin> pluginsList = new ArrayList<TMPlugin>();
		TopologyModuleParamsArray params;
		
		if (args.length >=1 ){
			params=new TopologyModuleParamsArray(args[0]);
		}else{
			params=new TopologyModuleParamsArray();
		}
		params.initialize();	
		
		
		TopologiesDataBase sTop = new TopologiesDataBase();
		
//	    sTop.addTEDB("255.255.255.255", new SimpleTEDB() );
//		
//		((SimpleTEDB)sTop.getDB()).createGraph();
//		
		MultiDomainTEDB mdTed = new MDTEDB();
		sTop.setMdTed(mdTed);
		
		//((SimpleTEDB)sTop.getDB()).createGraph();
		Lock lock = new ReentrantLock();
		
		
		TMManagementServer TMms=new TMManagementServer(sTop,params,pluginsList);
		TMms.start();
		
		(new TMModuleInitiater(sTop, params, lock, pluginsList)).intiate();
		
	}
 
开发者ID:telefonicaid,项目名称:netphony-topology,代码行数:33,代码来源:TopologyModuleMain.java

示例6: MDHPCEMinNumberDomainsKSPAlgorithm

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public MDHPCEMinNumberDomainsKSPAlgorithm(ComputingRequest pathReq,TEDB ted,ChildPCERequestManager cprm , ReachabilityManager rm){
	if(ted.isITtedb()){
		this.networkGraph=((ITMDTEDB)ted).getDuplicatedMDNetworkGraph();
	}else{
		this.networkGraph=((MDTEDB)ted).getDuplicatedMDNetworkGraph();
	}
	this.reachabilityManager=rm;
	this.pathReq=pathReq;		
	this.childPCERequestManager=cprm;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:11,代码来源:MDHPCEMinNumberDomainsKSPAlgorithm.java

示例7: MDHPCEMinNumberDomainsAlgorithm

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public MDHPCEMinNumberDomainsAlgorithm(ComputingRequest pathReq,TEDB ted,ChildPCERequestManager cprm , ReachabilityManager rm){
	if(ted.isITtedb()){
		this.networkGraph=((ITMDTEDB)ted).getDuplicatedMDNetworkGraph();
	}else{
		this.networkGraph=((MDTEDB)ted).getDuplicatedMDNetworkGraph();
	}
	this.reachabilityManager=rm;
	this.pathReq=pathReq;		
	this.childPCERequestManager=cprm;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:11,代码来源:MDHPCEMinNumberDomainsAlgorithm.java

示例8: MinTransitDomainsInterLayerAlgorithm

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public MinTransitDomainsInterLayerAlgorithm(ComputingRequest pathReq,TEDB ted,ChildPCERequestManager cprm , ReachabilityManager rm){
	if(ted.isITtedb()){
		this.networkGraph=((ITMDTEDB)ted).getDuplicatedMDNetworkGraph();
	}else{
		this.networkGraph=((MDTEDB)ted).getDuplicatedMDNetworkGraph();
	}
	this.reachabilityManager=rm;
	this.pathReq=pathReq;		
	this.childPCERequestManager=cprm;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:11,代码来源:MinTransitDomainsInterLayerAlgorithm.java

示例9: ParentPCEManagementSession

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public ParentPCEManagementSession(Socket s, ChildPCERequestManager cprm, RequestDispatcher requestDispatcher, MDTEDB mdtedb,SimpleTEDB simpleTedb, ReachabilityManager rm, PCEPSessionsInformation pcepSessionManager,MultiDomainTopologyUpdater mdtu, MultiDomainLSPDB multiDomainLSPDB){
	this.socket=s;
	this.cprm=cprm;
	this.requestDispatcher=requestDispatcher;
	this.mdtedb=mdtedb;
	this.rm=rm;
	log=LoggerFactory.getLogger("PCEServer");
	isITcapable=false;
	this.pcepSessionManager=pcepSessionManager;
	this.mdtu=mdtu;
	this.simpleTedb=simpleTedb;
	this.multiDomainLSPDB=multiDomainLSPDB;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:14,代码来源:ParentPCEManagementSession.java

示例10: ParentPCEManagementSever

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public ParentPCEManagementSever(ChildPCERequestManager cprm, RequestDispatcher requestDispatcher, MDTEDB mdtedb,SimpleTEDB simpleTEDB, ReachabilityManager rm, PCEPSessionsInformation pcepSessionManager,MultiDomainTopologyUpdater mdtu,int parentPCEManagementPort, MultiDomainLSPDB multiDomainLSPDB){
	log =LoggerFactory.getLogger("PCEServer");
	this.cprm=cprm;
	this.requestDispatcher=requestDispatcher;
	this.mdtedb=mdtedb;
	this.simpleTedb=simpleTEDB;
	this.rm=rm;
	isITcapable=false;
	this.pcepSessionManager=pcepSessionManager;
	this.mdtu=mdtu;
	this.parentPCEManagementPort=parentPCEManagementPort;
	this.multiDomainLSPDB=multiDomainLSPDB;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:14,代码来源:ParentPCEManagementSever.java

示例11: setConfig

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
/**
 * Class constructor with two parameters.
 *     config[0] Main node properties configuration file.
 *     config[1] Default node properties configuration file.
 */
public void setConfig(String[] config) {
	// @// TODO: 05/12/2016 Implements this config method.
	// Create information of te Node
	if((config == null)||(config.length!=2)) {
		nodeInformation = new NodeInformation();
	} else {
		nodeInformation = new NodeInformation(config[0], config[1]);
	}
	
	nodeInformation.readNodeConfiguration();
	log3.info("Info: "+nodeInformation.toString());
	if (nodeInformation.isRsvpMode()== true){
		// Create the RSVP Manager
		rsvpManager = new RSVPManager();
	}
	log3.info("Log de OSPF Creado!!");
	// Creamos el LSP Manager
	managerLSP = new LSPManager(isStateful);

	//Create the PathComputationClient
	PCC = new PathComputationClient();

	//The Traffic Engineering Database
	ted=new SimpleLocalTEDB();
	if (nodeInformation.getNodeTechnology()==TechnologyParameters.SSON){
		((SimpleLocalTEDB)ted).initializeFromFile(nodeInformation.getTopologyName(), null, false, 0, Integer.MAX_VALUE, true , false);
	}else
		((SimpleLocalTEDB)ted).initializeFromFile(nodeInformation.getTopologyName(), null, false, 0, Integer.MAX_VALUE, false , false);

	// Create the Multi Domain TEDB
	MDted = new MDTEDB();
	// Initialice
	((MDTEDB)MDted).initializeFromFileInterDomainLinks(nodeInformation.getTopologyName());

	//TEDB CREADA --> recorrer grafo y podar
	SimpleDirectedWeightedGraph<Object, IntraDomainEdge> LocalGraph = defineLocalTEDB.podateGraph(((SimpleTEDB)ted).getNetworkGraph(), nodeInformation.getId());
	((SimpleLocalTEDB)ted).setNetworkGraph(LocalGraph);

	log.info("Is Multi-Domain, create the MDTEDB!");
	//MDTEDB CREADA --> recorrer grafo y podar
	DirectedWeightedMultigraph<Object, InterDomainEdge> MDLocalGraph = defineLocalTEDB.podateMDGraph(((MDTEDB)MDted).getNetworkDomainGraph(), nodeInformation.getId());
	((MDTEDB)MDted).setNetworkDomainGraph(MDLocalGraph);

	//Creamos el Resource Manager (con MDted Siempre)
	if (nodeInformation.getNodeTechnology() == TechnologyParameters.MPLS){
		resourceManager = new MPLSResourceManager((SimpleLocalTEDB)ted, nodeInformation.getId(), (MDTEDB)MDted);
	}else if (nodeInformation.getNodeTechnology() == TechnologyParameters.WSON){
		resourceManager = new WSONResourceManager((SimpleLocalTEDB)ted, nodeInformation.getId(), (MDTEDB)MDted);
	}else if (nodeInformation.getNodeTechnology() == TechnologyParameters.SSON){
		resourceManager = new SSONResourceManager((SimpleLocalTEDB)ted, nodeInformation.getId(), (MDTEDB)MDted);
	}else if (nodeInformation.getNodeTechnology() == TechnologyParameters.UNKNOWN){
		log.error("Technology not valid!");
		System.exit(-1);
	}

	//OSPF
	ospfController = new OSPFController();

	// Configure all the Modules
	if (nodeInformation.isRsvpMode()== true){
		rsvpManager.configureRSVPManager(nodeInformation.getId(), resourceManager, managerLSP);
		managerLSP.configureLSPManager(rsvpManager, nodeInformation.getId(), PCC, resourceManager, nodeInformation.isRsvpMode());
	}else{
		managerLSP.configureLSPManager(null, nodeInformation.getId(), PCC, resourceManager, nodeInformation.isRsvpMode());
	}
	ospfController.configureOSPFController(nodeInformation.getId(), ted, nodeInformation.getLocalNodeAddress());
	//Fast PCEP Session for remote invokation
	fastPCEPSessionServer = new FastPCEPSessionServer(this.getManagerLSP(), nodeInformation.getId(), nodeInformation.getNodeTechnology());

	//Automatic PCCNode Session
	nodeInformation.setStatefull(false);
	rlsserver = new RemoteLSPInitPCEPSessionServer(managerLSP, nodeInformation.getId(), nodeInformation.getNodeTechnology(), nodeInformation.isStatefull());
}
 
开发者ID:telefonicaid,项目名称:netphony-gmpls-emulator,代码行数:79,代码来源:NetworkNode.java

示例12: MPLSResourceManager

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public MPLSResourceManager(SimpleLocalTEDB tedb, Inet4Address localID, MDTEDB MDted){
	this.ted=tedb;
	this.localID=localID;
}
 
开发者ID:telefonicaid,项目名称:netphony-gmpls-emulator,代码行数:5,代码来源:MPLSResourceManager.java

示例13: LocalMDHPCEMinNumberDomainsAlgorithm

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public LocalMDHPCEMinNumberDomainsAlgorithm(ComputingRequest pathReq,TEDB ted, ChildPCERequestManager cprm, LocalChildRequestManager lcrm , ReachabilityManager rm){
	this.ted =  new SimpleTEDB();
	if(ted.isITtedb()){
		this.networkGraph=((ITMDTEDB)ted).getDuplicatedMDNetworkGraph();
	}else{
		this.networkGraph=((MDTEDB)ted).getDuplicatedMDNetworkGraph();
		MDTEDB multiDomainTed = (MDTEDB)ted;
		SimpleTEDB simple_ted = multiDomainTed.getSimple_ted();
		
		networkGraphIntra = simple_ted.getDuplicatedNetworkGraph();
					
		Iterator<Object> iter = simple_ted.getDuplicatedNetworkGraph().vertexSet().iterator();
		
		log.info("Comprobando Simple TEDB");
		log.info(simple_ted.printTopology());
		while(iter.hasNext()){
			
			log.info("Vertex: "+iter.next().toString());
			
		}			
		log.info("Simple TEDB comprobada");
					
		this.ted=simple_ted;
	}
	if(cam_sson==null){
		try {
			Class<?> aClass_SSON = Class.forName("es.tid.pce.computingEngine.algorithms.sson.Dynamic_RSAManager");
			try{
				Class<?> aClass2_SSON =  Class.forName("es.tid.pce.computingEngine.algorithms.sson.Dynamic_RSAPreComputation");
				cam_sson= (ComputingAlgorithmManagerSSON)aClass_SSON.newInstance();
				cam2_sson= (ComputingAlgorithmPreComputationSSON) aClass2_SSON.newInstance();
				cam2_sson.setTEDB(this.ted);
				cam2_sson.initialize();
				cam_sson.setPreComputation(cam2_sson);
			}catch (Exception e2){
				e2.printStackTrace();				
			}
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	log.info(cam2_sson.printTopology(0));
	this.reachabilityManager=rm;
	this.pathReq=pathReq;		
	this.localChildRequestManager=lcrm;
	this.childPCERequestManager=cprm;
	
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:50,代码来源:LocalMDHPCEMinNumberDomainsAlgorithm.java

示例14: LocalMDHPCEMinNumberDomainsKSPAlgorithm

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public LocalMDHPCEMinNumberDomainsKSPAlgorithm(ComputingRequest pathReq,TEDB ted, ChildPCERequestManager cprm, LocalChildRequestManager lcrm , ReachabilityManager rm){
	this.ted =  new SimpleTEDB();
	if(ted.isITtedb()){
		this.networkGraph=((ITMDTEDB)ted).getDuplicatedMDNetworkGraph();
	}else{
		this.networkGraph=((MDTEDB)ted).getDuplicatedMDNetworkGraph();
		MDTEDB multiDomainTed = (MDTEDB)ted;
		SimpleTEDB simple_ted = multiDomainTed.getSimple_ted();
		
		networkGraphIntra = simple_ted.getDuplicatedNetworkGraph();
					
		Iterator<Object> iter = simple_ted.getDuplicatedNetworkGraph().vertexSet().iterator();
		
		log.info("Comprobando Simple TEDB");
		log.info(simple_ted.printTopology()); //Hay que revisar el print topology
		while(iter.hasNext()){
			
			log.info("Vertex: "+iter.next().toString());
			
		}			
		log.info("Simple TEDB comprobada");
					
		this.ted=simple_ted;
	}
	if(cam_sson==null){
		try {
			Class<?> aClass_SSON = Class.forName("tid.pce.computingEngine.algorithms.sson.AURE_SSON_algorithmManager");
			try{
				Class<?> aClass2_SSON =  Class.forName("tid.pce.computingEngine.algorithms.sson.AURE_SSON_algorithmPreComputation");
				cam_sson= (ComputingAlgorithmManagerSSON)aClass_SSON.newInstance();
				cam2_sson= (ComputingAlgorithmPreComputationSSON) aClass2_SSON.newInstance();
				cam2_sson.setTEDB(this.ted);
				cam2_sson.initialize();
				cam_sson.setPreComputation(cam2_sson);
			}catch (Exception e2){
				e2.printStackTrace();				
			}
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	log.info(cam2_sson.toString());
	log.info(cam2_sson.printTopology(0));
	this.reachabilityManager=rm;
	this.pathReq=pathReq;		
	this.localChildRequestManager=lcrm;
	this.childPCERequestManager=cprm;
	
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:51,代码来源:LocalMDHPCEMinNumberDomainsKSPAlgorithm.java

示例15: MultiDomainTopologyUpdater

import es.tid.tedb.MDTEDB; //导入依赖的package包/类
public MultiDomainTopologyUpdater(MDTEDB multiDomainTEDB, boolean bgpActivated){
	log=LoggerFactory.getLogger("MultiDomainTologyUpdater");
	multiDomainUpdateQueue= new LinkedBlockingQueue<MultiDomainUpdate>();
	this.multiDomainTEDB=multiDomainTEDB;
	this.bgpActivated=bgpActivated;
}
 
开发者ID:telefonicaid,项目名称:netphony-pce,代码行数:7,代码来源:MultiDomainTopologyUpdater.java


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