本文整理汇总了Java中es.tid.pce.pcepsession.PCEPSessionsInformation类的典型用法代码示例。如果您正苦于以下问题:Java PCEPSessionsInformation类的具体用法?Java PCEPSessionsInformation怎么用?Java PCEPSessionsInformation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PCEPSessionsInformation类属于es.tid.pce.pcepsession包,在下文中一共展示了PCEPSessionsInformation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addPCE
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public void addPCE(boolean manually, Inet4Address pceAddress, int pcepPort, boolean setStateful, boolean setActive, LSPManager lspManager,boolean setSRCapable,int MSD){
log.info("Adding PCE");
int pcepport = Integer.valueOf(pcepPort).intValue();
PCEPSessionsInformation pcepSessionsInformation = new PCEPSessionsInformation();
pcepSessionsInformation.setStateful(setStateful);
pcepSessionsInformation.setStateful(setActive);
pcepSessionsInformation.setSRCapable(setSRCapable);
pcepSessionsInformation.setMSD(MSD);
EmulatedPCCPCEPSession PCEsession = new EmulatedPCCPCEPSession(pceAddress.getCanonicalHostName(), pcepport,false,pcepSessionsInformation,lspManager);
this.setPceSession(PCEsession);
this.setCrm(PCEsession.crm);
lspManager.setPCESession(PCEsession);
PCEsession.start();
}
示例2: EmulatedPCCPCEPSession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
/**
* Constructor of the PCE Session
* @param ip IP Address of the peer PCE
* @param port Port of the peer PCE
*/
public EmulatedPCCPCEPSession(String ip, int port, boolean no_delay, PCEPSessionsInformation pcepSessionManager) {
super(pcepSessionManager);
this.setFSMstate(PCEPValues.PCEP_STATE_IDLE);
log=LoggerFactory.getLogger("PCCClient");
//log.setLevel(Level.OFF);
this.peerPCE_IPaddress=ip;
this.peerPCE_port=port;
crm= new ClientRequestManager();
this.keepAliveLocal=30;
this.deadTimerLocal=120;
timer=new Timer();
this.no_delay=no_delay;
this.pcepSessionManager=pcepSessionManager;
this.lspManager = null;
this.sessionStarted=new Semaphore(0);
}
示例3: createVNTMSession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
/**
* Create the VNTM Session
* @param networkEmulatorParams
* @return
*/
static EmulatedPCCPCEPSession createVNTMSession(LSPConfirmationDispatcher lspDispatcher,
NetworkLSPManager networkLSPManager){
/*************************************/
//Hastable para los LSPs IDs
/*************************************/
VNTMParameters VNTMParams = new VNTMParameters();
VNTMParams.initialize(testerParams.getVNTMFile());
PCEPSessionsInformation VNTMpcepSessionManager=new PCEPSessionsInformation();
EmulatedPCCPCEPSession PCEsessionVNTM = null;
if (lspDispatcher!=null){
PCEsessionVNTM = new EmulatedPCCPCEPSession(VNTMParams.getVNTMAddress(),VNTMParams.getVNTMPort(),false, lspDispatcher, VNTMpcepSessionManager);
}else{
PCEsessionVNTM = new EmulatedPCCPCEPSession(VNTMParams.getVNTMAddress(),VNTMParams.getVNTMPort(),false/*,lspDispatcher, networkLSPManager*/,VNTMpcepSessionManager);
}
PCEsessionVNTM.start();
return PCEsessionVNTM;
}
示例4: main
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
/**
* @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 <host> <port>");
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);
}
示例5: VNTMClientSession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public VNTMClientSession(Socket s,PCEPSessionsInformation pcepSessionManager,String SourceString, String DestString, String sourceMAC, String destMAC, int source_interface, int destination_interface, String operation)
{
super(pcepSessionManager);
this.socket=s;
log=LoggerFactory.getLogger("ABNO Controller");
timer=new Timer();
this.keepAliveLocal=30;
this.deadTimerLocal=180;
this.source = SourceString;
this.dest = DestString;
this.sourceMAC = sourceMAC;
this.destMAC = destMAC;
this.source_interface = source_interface;
this.destination_interface = destination_interface;
this.operation = operation;
}
示例6: ParentPCESession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public ParentPCESession(Socket s, ParentPCEServerParameters params, RequestDispatcher requestDispatcher, MultiDomainInitiateDispatcher mdiniDispatcher, TEDB ted, MultiDomainTopologyUpdater mdt, ChildPCERequestManager childPCERequestManager, ReachabilityManager rm, PCEPSessionsInformation pcepSessionManager){
super(pcepSessionManager);
//super("ParentPCESession");
this.setFSMstate(PCEPValues.PCEP_STATE_IDLE);
log=LoggerFactory.getLogger("PCEServer");
log.info("New Parent PCESession: "+s);
this.socket = s;
this.requestDispatcher=requestDispatcher;
this.mdt=mdt;
this.rm=rm;
this.params = params;
timer=new Timer();
this.keepAliveLocal=params.getKeepAliveTimer();
this.deadTimerLocal=params.getDeadTimer();
this.childPCERequestManager=childPCERequestManager;
this.mdiniDispatcher=mdiniDispatcher;
}
示例7: PCCPCEPSession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
/**
* Constructor of the PCE Session
* @param ip IP Address of the peer PCE
* @param port Port of the peer PCE
* @param no_delay -
* @param pcepSessionManager -
*/
public PCCPCEPSession(String ip, int port, boolean no_delay, PCEPSessionsInformation pcepSessionManager) {
super(pcepSessionManager);
this.setFSMstate(PCEPValues.PCEP_STATE_IDLE);
log=LoggerFactory.getLogger("PCCClient");
//log.setLevel(Level.OFF);
this.peerPCE_IPaddress=ip;
this.peerPCE_port=port;
crm= new ClientRequestManager();
this.keepAliveLocal=30;
this.deadTimerLocal=120;
timer=new Timer();
this.no_delay=no_delay;
this.pcepSessionManager=pcepSessionManager;
this.sessionStarted=new Semaphore(0);
}
示例8: DomainPCESession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public DomainPCESession(Socket s, PCEServerParameters params,
RequestDispatcher requestDispatcher, TEDB ted,NotificationDispatcher notificationDispatcher,
ReservationManager rm, PCEPSessionsInformation pcepSessionInformation,
ReportDispatcher reportDispatcher, SingleDomainInitiateDispatcher iniDispatcher){
super(pcepSessionInformation);
this.setFSMstate(PCEPValues.PCEP_STATE_IDLE);
log=LoggerFactory.getLogger("PCEServer");
log.info("New Domain PCESession: "+s);
this.socket = s;
try {
s.setTcpNoDelay(params.isNodelay());
} catch (SocketException e) {
e.printStackTrace();
}
this.requestDispatcher=requestDispatcher;
this.params = params;
timer=new Timer();
this.keepAliveLocal=params.getKeepAliveTimer();
this.deadTimerLocal=params.getDeadTimer();
this.notificationDispatcher=notificationDispatcher;
this.rm=rm;
this.internalSessionID=getNewInternalSessionID();
this.reportDispatcher = reportDispatcher;
this.iniDispatcher=iniDispatcher;
}
示例9: BackupPCESession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public BackupPCESession(String ip, int port, boolean no_delay,TEDB ted,CollaborationPCESessionManager collaborationPCESessionManager, NotificationDispatcher notificationDispatcher,Timer timer, PCEPSessionsInformation pcepSessionInformation/*, String localIP, int localPort*/) {
super(pcepSessionInformation);
this.setFSMstate(PCEPValues.PCEP_STATE_IDLE);
log=LoggerFactory.getLogger("PCEServer");
this.primaryPCE_IPaddress=ip;
this.primaryPCE_port=port;
//crm= new ClientRequestManager();
this.keepAliveLocal=30;
this.deadTimerLocal=120;
this.timer=timer;
this.no_delay=no_delay;
this.collaborationPCESessionManager=collaborationPCESessionManager;
this.notificationDispatcher=notificationDispatcher;
/*this.localIPaddress=localIP;
this.localPort=localPort;*/
}
示例10: ChildPCESession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public ChildPCESession(RequestDispatcher PCCRequestDispatcherChild, PCEServerParameters params, RequestQueue parentPCERequestQueue, TEDB ted, Timer timer,LinkedBlockingQueue<PCEPMessage> parentPCESendingQueue,ParentPCERequestManager childPCERequestManager, Inet4Address domainId, PCEPSessionsInformation pcepSessionInformation, SingleDomainInitiateDispatcher iniDispatcher) {
super(pcepSessionInformation);
this.PCCRequestDispatcherChild=PCCRequestDispatcherChild;
this.state=PCEPValues.PCEP_STATE_IDLE;
this.parentPCERequestQueue=parentPCERequestQueue;
log=LoggerFactory.getLogger(params.getPCEServerLogFile());
this.requestDispatcher=requestDispatcher;
this.ted=ted;
this.params = params;
this.timer = timer;
this.parentPCESendingQueue=parentPCESendingQueue;
this.childPCERequestManager=childPCERequestManager;
this.keepAliveLocal=30;
this.deadTimerLocal=120;
this.iniDispatcher=iniDispatcher;
//this.sendingThread = new Sender(new LinkedBlockingQueue<PCEPMessage>(), output);
try {
this.domainId=domainId;
this.pceId=(Inet4Address) Inet4Address.getLocalHost();
log.info("pceId"+pceId);
log.info("domainId"+domainId);
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
示例11: RemoteLSPInitPCEPSessionServer
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public RemoteLSPInitPCEPSessionServer(String ip, boolean no_delay, PCEPSessionsInformation pcepSessionManager,
ClientRequestManagerPrueba crm) {
super(pcepSessionManager);
this.setFSMstate(PCEPValues.PCEP_STATE_IDLE);
log=LoggerFactory.getLogger("PCCClient");
this.peerNode_IPaddress=ip;
this.crm= crm;
this.keepAliveLocal=30;
this.deadTimerLocal=120;
timer=new Timer();
this.no_delay=no_delay;
this.pcepSessionManager=pcepSessionManager;
}
示例12: RemoteLSPInitPCEPSession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public RemoteLSPInitPCEPSession(Socket socket, PCEPSessionsInformation pcepSessionManager, ClientRequestManagerPrueba crm) {
super(pcepSessionManager);
this.log=LoggerFactory.getLogger("ROADM");
timer=new Timer();
this.serverSocket=socket;
this.crm=crm;
}
示例13: RemoteLSPInitPCEPSession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public RemoteLSPInitPCEPSession(Socket s, LSPManager lspManager, Inet4Address idRoadm, PCEPSessionsInformation pcepSessionManager) {
super(pcepSessionManager);
this.lspManager=lspManager;
this.socket=s;
this.idRoadm=idRoadm;
this.log=LoggerFactory.getLogger("ROADM");
timer=new Timer();
lspIdsCorelation = new Hashtable<Long,Long>();
}
示例14: createVNTMSession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
/**
* Create the VNTM Session
* @param networkEmulatorParams
* @return
*/
static EmulatedPCCPCEPSession createVNTMSession(){
VNTMParameters VNTMParams = new VNTMParameters();
VNTMParams.initialize(testerParams.getVNTMFile());
EmulatedPCCPCEPSession PCEsessionVNTM = new EmulatedPCCPCEPSession(VNTMParams.getVNTMAddress(),VNTMParams.getVNTMPort(),false, new PCEPSessionsInformation());
PCEsessionVNTM.start();
return PCEsessionVNTM;
}
示例15: StatefulPCEPSession
import es.tid.pce.pcepsession.PCEPSessionsInformation; //导入依赖的package包/类
public StatefulPCEPSession(Socket s,PCEPSessionsInformation pcepSessionManager, int message_type)
{
super(pcepSessionManager);
this.socket=s;
log=LoggerFactory.getLogger("Stateful");
//log.setLevel(Level.OFF);
timer=new Timer();
this.keepAliveLocal=30;
this.deadTimerLocal=180;
this.messagetype=message_type;
this.operation="add";
}