本文整理汇总了Java中es.tid.pce.pcep.objects.tlvs.LSPDatabaseVersionTLV类的典型用法代码示例。如果您正苦于以下问题:Java LSPDatabaseVersionTLV类的具体用法?Java LSPDatabaseVersionTLV怎么用?Java LSPDatabaseVersionTLV使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LSPDatabaseVersionTLV类属于es.tid.pce.pcep.objects.tlvs包,在下文中一共展示了LSPDatabaseVersionTLV类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLsp_database_version_tlv
import es.tid.pce.pcep.objects.tlvs.LSPDatabaseVersionTLV; //导入依赖的package包/类
public LSPDatabaseVersionTLV getLsp_database_version_tlv() {
return lsp_database_version_tlv;
}
示例2: setLsp_database_version_tlv
import es.tid.pce.pcep.objects.tlvs.LSPDatabaseVersionTLV; //导入依赖的package包/类
public void setLsp_database_version_tlv(
LSPDatabaseVersionTLV lsp_database_version_tlv) {
this.lsp_database_version_tlv = lsp_database_version_tlv;
}
示例3: getLspDBVersion_tlv
import es.tid.pce.pcep.objects.tlvs.LSPDatabaseVersionTLV; //导入依赖的package包/类
public LSPDatabaseVersionTLV getLspDBVersion_tlv()
{
return lspDBVersion_tlv;
}
示例4: setLspDBVersion_tlv
import es.tid.pce.pcep.objects.tlvs.LSPDatabaseVersionTLV; //导入依赖的package包/类
public void setLspDBVersion_tlv(LSPDatabaseVersionTLV lspDBVersion_tlv)
{
this.lspDBVersion_tlv = lspDBVersion_tlv;
}
示例5: sendUpdate
import es.tid.pce.pcep.objects.tlvs.LSPDatabaseVersionTLV; //导入依赖的package包/类
private void sendUpdate(LSPTEInfo val) throws UnknownHostException
{
SRP rsp = new SRP();
rsp.setSRP_ID_number(1);
SymbolicPathNameTLV symPathName= new SymbolicPathNameTLV();
symPathName.setSymbolicPathNameID(ObjectParameters.redundancyID);
rsp.setSymPathName(symPathName);
//tedb.getDomainReachabilityIPv4Prefix();
PCEPUpdate m_update = new PCEPUpdate();
UpdateRequest state_report = new UpdateRequest();
LSP lsp = new LSP();
//Delegate the LSP
lsp.setDFlag(true);
//No sync
lsp.setSFlag(false);
//Is LSP operational?
lsp.setOpFlags(ObjectParameters.LSP_OPERATIONAL_UP);
lsp.setLspId(1);
IPv4LSPIdentifiersTLV lspIdTLV = new IPv4LSPIdentifiersTLV();
//lspIdTLV.setLspID((lspte.getIdLSP().intValue()));
lspIdTLV.setTunnelID(1234);
lspIdTLV.setTunnelSenderIPAddress((Inet4Address)Inet4Address.getLocalHost());
//FIXME
//lspIdTLV.setExtendedTunnelID(extendedTunnelID);
lsp.setLspIdentifiers_tlv(lspIdTLV);
SymbolicPathNameTLV symbPathName = new SymbolicPathNameTLV();
/*This id should be unique within the PCC*/
symbPathName.setSymbolicPathNameID(ByteBuffer.allocate(8).putLong(lsp.getLspId()).array());
lsp.setSymbolicPathNameTLV_tlv(symbPathName);
LSPDatabaseVersionTLV lspdDTLV = new LSPDatabaseVersionTLV();
/*A change has been made so the database version is aumented*/
lspdDTLV.setLSPStateDBVersion(2);
state_report.setLsp(lsp);
state_report.setSrp(rsp);
//Do the Path thing well.
Path path = new Path();
ExplicitRouteObject auxERO = new ExplicitRouteObject();
path.setEro(auxERO);
BandwidthRequested bw = new BandwidthRequested();
bw.setBw(1);
path.setBandwidth(bw);
/*
LinkedList<Metric> metricList = new LinkedList<Metric>();
Metric metric = new Metric();
metric.setPbit(false);
metric.setBoundBit(false);
*/
state_report.setPath(path);
m_update.addStateReport(state_report);
out.println("Sending First PCEPUpdate message");
//oneSession.sendPCEPMessage(m_update);
}