mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
writing mgmt...
This commit is contained in:
1 parent
444ee7251c
commit
6ad273be42
14 files changed
+153
No files matched your search
@@ -2,6 +2,8 @@ package component;
|
||||
|
||||
import encoding.*;
|
||||
|
||||
import javax.sound.sampled.Control;
|
||||
|
||||
/*
|
||||
* @Author: Wang Feng
|
||||
* @Description: 表示一个控制命令参数 Capacity
|
||||
@@ -12,6 +14,13 @@ import encoding.*;
|
||||
public class ControlParameterCapacity implements TlvComponentBase,InitialAble, IEncodingAble {
|
||||
private long capacity;
|
||||
|
||||
public ControlParameterCapacity(){
|
||||
}
|
||||
|
||||
public ControlParameterCapacity(long capacity){
|
||||
this.setCapacity(capacity);
|
||||
}
|
||||
|
||||
public long getCapacity() {
|
||||
return capacity;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@ import encoding.*;
|
||||
public class ControlParameterCost implements TlvComponentBase,InitialAble,IEncodingAble{
|
||||
private long cost;
|
||||
|
||||
public ControlParameterCost(){
|
||||
}
|
||||
|
||||
public ControlParameterCost(long cost){
|
||||
this.setCost(cost);
|
||||
}
|
||||
|
||||
public long getCost() {
|
||||
return cost;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@ import encoding.*;
|
||||
public class ControlParameterCount implements TlvComponentBase,InitialAble, IEncodingAble {
|
||||
private long count;
|
||||
|
||||
public ControlParameterCount(){
|
||||
}
|
||||
|
||||
public ControlParameterCount(long count){
|
||||
this.setCount(count);
|
||||
}
|
||||
|
||||
public long getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@ import encoding.*;
|
||||
public class ControlParameterExpireTime implements TlvComponentBase,InitialAble, IEncodingAble {
|
||||
private long expireTime;
|
||||
|
||||
public ControlParameterExpireTime(){
|
||||
}
|
||||
|
||||
public ControlParameterExpireTime(long expireTime){
|
||||
this.setExpireTime(expireTime);
|
||||
}
|
||||
|
||||
public long getExpireTime() {
|
||||
return expireTime;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,13 @@ import java.nio.charset.StandardCharsets;
|
||||
public class ControlParameterLocalUri implements TlvComponentBase, InitialAble, IEncodingAble {
|
||||
private String localUri;
|
||||
|
||||
public ControlParameterLocalUri(){
|
||||
}
|
||||
|
||||
public ControlParameterLocalUri(String localUri){
|
||||
this.setLocalUri(localUri);
|
||||
}
|
||||
|
||||
public String getLocalUri() {
|
||||
return localUri;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@ import encoding.*;
|
||||
public class ControlParameterLogicFaceId implements TlvComponentBase,InitialAble,IEncodingAble{
|
||||
private long logicFaceId;
|
||||
|
||||
public ControlParameterLogicFaceId(){
|
||||
}
|
||||
|
||||
public ControlParameterLogicFaceId(long logicFaceId){
|
||||
this.setLogicFaceId(logicFaceId);
|
||||
}
|
||||
|
||||
public long getLogicFaceId() {
|
||||
return logicFaceId;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@ import encoding.*;
|
||||
public class ControlParameterLogicFacePersistency implements TlvComponentBase,InitialAble, IEncodingAble {
|
||||
private long persistency;
|
||||
|
||||
public ControlParameterLogicFacePersistency(){
|
||||
}
|
||||
|
||||
public ControlParameterLogicFacePersistency(long persistency){
|
||||
this.setPersistency(persistency);
|
||||
}
|
||||
|
||||
public long getPersistency() {
|
||||
return persistency;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@ import encoding.*;
|
||||
public class ControlParameterMtu implements TlvComponentBase,InitialAble,IEncodingAble{
|
||||
private long mtu;
|
||||
|
||||
public ControlParameterMtu(){
|
||||
}
|
||||
|
||||
public ControlParameterMtu(long mtu){
|
||||
this.setMtu(mtu);
|
||||
}
|
||||
|
||||
public long getMtu() {
|
||||
return mtu;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@ import encoding.*;
|
||||
public class ControlParameterPrefix implements TlvComponentBase,InitialAble, IEncodingAble {
|
||||
private Identifier prefix;
|
||||
|
||||
public ControlParameterPrefix(){
|
||||
}
|
||||
|
||||
public ControlParameterPrefix(Identifier prefix){
|
||||
this.setPrefix(prefix);
|
||||
}
|
||||
|
||||
public Identifier getPrefix() {
|
||||
return prefix;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,13 @@ import java.nio.charset.StandardCharsets;
|
||||
public class ControlParameterUri implements TlvComponentBase, InitialAble, IEncodingAble {
|
||||
private String uri;
|
||||
|
||||
public ControlParameterUri(){
|
||||
}
|
||||
|
||||
public ControlParameterUri(String uri){
|
||||
this.setUri(uri);
|
||||
}
|
||||
|
||||
public String getUri() {
|
||||
return uri;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,13 @@ import encoding.*;
|
||||
public class ControlParameterUriScheme implements TlvComponentBase,InitialAble,IEncodingAble{
|
||||
private long uriScheme;
|
||||
|
||||
public ControlParameterUriScheme(){
|
||||
}
|
||||
|
||||
public ControlParameterUriScheme(long uriScheme){
|
||||
this.setUriScheme(uriScheme);
|
||||
}
|
||||
|
||||
public long getUriScheme() {
|
||||
return uriScheme;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package mgmt;
|
||||
|
||||
import packet.Interest;
|
||||
|
||||
/*
|
||||
* @Author: Wang Feng
|
||||
* @Description:
|
||||
* @Version: 1.0.0
|
||||
* @Date: 20:21 2021/4/12
|
||||
* @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
|
||||
*/
|
||||
public class Command {
|
||||
public static Interest CreateCommandIdentifierInterest(){
|
||||
Interest interest=new Interest();
|
||||
// ...
|
||||
return interest;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package mgmt;
|
||||
|
||||
import component.*;
|
||||
import encoding.Block;
|
||||
import encoding.Encoder;
|
||||
import encoding.IEncodingAble;
|
||||
import packet.PacketException;
|
||||
|
||||
/*
|
||||
* @Author: Wang Feng
|
||||
* @Description: 表示与 MIR 本地管理模块进行通信时的控制信令参数
|
||||
* @Version: 1.0.0
|
||||
* @Date: 20:21 2021/4/12
|
||||
* @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
|
||||
*/
|
||||
public class ControlParameters implements IEncodingAble {
|
||||
// fib add 必须字段
|
||||
public ControlParameterPrefix controlParameterPrefix =new ControlParameterPrefix(); // 前缀标识
|
||||
public ControlParameterLogicFaceId controlParameterLogicFaceId=new ControlParameterLogicFaceId(); // 逻辑faceId
|
||||
public ControlParameterCost controlParameterCost=new ControlParameterCost(); // 链路代价
|
||||
public ControlParameterCapacity controlParameterCapacity =new ControlParameterCapacity(); // CS 容量
|
||||
public ControlParameterCount controlParameterCount=new ControlParameterCount(); // 需要删除的cs表项数
|
||||
public ControlParameterExpireTime controlParameterExpireTime=new ControlParameterExpireTime(); // 超时时间
|
||||
public ControlParameterUri controlParameterUri=new ControlParameterUri(); // 远端地址
|
||||
public ControlParameterLocalUri controlParameterLocalUri=new ControlParameterLocalUri(); // 本地地址
|
||||
public ControlParameterLogicFacePersistency controlParameterLogicFacePersistency=new ControlParameterLogicFacePersistency(); // 逻辑接口持久性
|
||||
public ControlParameterUriScheme controlParameterUriScheme=new ControlParameterUriScheme(); // 逻辑地址模式
|
||||
public ControlParameterMtu controlParameterMtu=new ControlParameterMtu(); // MTU
|
||||
|
||||
|
||||
@Override
|
||||
public int wireEncode(Encoder encoder) throws ComponentException, PacketException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean wireDecode(Block block) throws ComponentException, PacketException {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package mgmt;
|
||||
|
||||
import util.StringHelper;
|
||||
|
||||
/*
|
||||
* @Author: Wang Feng
|
||||
* @Description:
|
||||
* @Version: 1.0.0
|
||||
* @Date: 20:22 2021/4/12
|
||||
* @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
|
||||
*/
|
||||
public class ControlResponse {
|
||||
public int Code; // 状态码
|
||||
public String Msg; // 信息
|
||||
public String Data; // 数据
|
||||
}
|
||||
Reference in new issue
Block a user