Exemple #1
0
  public FVSlicer(FVEventLoop loop, FVClassifier fvClassifier, String sliceName) {
    this.loop = loop;
    this.fvClassifier = fvClassifier;
    this.sliceName = sliceName;
    this.isConnected = false;
    this.msgStream = null;
    this.missSendLength = 128; // openflow default (?) findout... TODO
    this.allowAllPorts = false;
    this.reconnectSeconds = 0;
    this.isShutdown = false;
    this.floodPerms = false;
    this.allowedPorts = new HashMap<Short, Boolean>();
    this.allowedBufferIDs = new LRULinkedHashMap<Integer, Integer>(10, MAX_ALLOWED_BUFFER_IDS);
    this.stats = SendRecvDropStats.createSharedStats(sliceName);

    FlowvisorImpl.addListener(this); // FVConfig.watch(this, FVConfig.FLOW_TRACKING);
    try {
      setFlowTracking(FlowvisorImpl.getProxy().gettrack_flows());
    } catch (ConfigError e) {
      setFlowTracking(false);
    }
    // updateFlowTrackingConfig();
  }