Java 类net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler 实例源码

项目:fresco_floodlight    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getNumTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:iTAP-controller    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:SDN-Multicast    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getNumTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:arscheduler    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getNumTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:floodlight1.2-delay    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getNumTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:floodlight-hardware    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getNumTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:ACAMPController    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getNumTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:fast-failover-demo    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:floodlightLB    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getNumTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:DSC    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:floodlight    文件:SwitchRepresentation.java   
public SwitchRepresentation(@Nonnull IOFSwitch sw, @Nonnull OFSwitchHandshakeHandler handshakeHandler) {
    Preconditions.checkNotNull(sw, "switch must not be null");
    Preconditions.checkNotNull(handshakeHandler, "handshakeHandler must not be null");

    // IOFSwitch
    this.buffers = sw.getBuffers();
    this.capabilities = sw.getCapabilities();
    this.tables = sw.getTables();
    this.inetAddress = sw.getInetAddress();
    this.sortedPorts = sw.getSortedPorts();
    this.isConnected = sw.isConnected();
    this.connectedSince = sw.getConnectedSince();
    this.dpid = sw.getId();
    this.attributes = sw.getAttributes();
    this.isActive = sw.isActive();

    // OFSwitchHandshakeHandler
    this.connections = handshakeHandler.getConnections();
    this.handshakeState = handshakeHandler.getState();
    this.quarantineReason = handshakeHandler.getQuarantineReason();
}
项目:fresco_floodlight    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:iTAP-controller    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:SDN-Multicast    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:arscheduler    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:floodlight1.2-delay    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:floodlight-hardware    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:ACAMPController    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:fast-failover-demo    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:floodlightLB    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:DSC    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:floodlight    文件:MockSwitchManager.java   
@Override
public SwitchRepresentation getSwitchRepresentation(DatapathId dpid) {
    IOFSwitch sw = this.switches.get(dpid);
    OFSwitchHandshakeHandler handler = this.switchHandlers.get(dpid);

    if(sw != null && handler != null) {
        return new SwitchRepresentation(sw, handler);
    }
    return null;
}
项目:open-kilda    文件:MockSwitchManager.java   
public MockSwitchManager(){
    switchHandlers = new ConcurrentHashMap<DatapathId, OFSwitchHandshakeHandler>();
    switches = new ConcurrentHashMap<DatapathId, IOFSwitch>();
    counters = new SwitchManagerCounters(new DebugCounterServiceImpl());
    //switchListeners = new CopyOnWriteArrayList<IOFSwitchListener>();
}
项目:open-kilda    文件:MockSwitchManager.java   
public void setSwitchHandshakeHandlers(Map<DatapathId, OFSwitchHandshakeHandler> handlers) {
    this.switchHandlers = handlers;
}
项目:open-kilda    文件:MockSwitchManager.java   
@Override
public ImmutableList<OFSwitchHandshakeHandler>
        getSwitchHandshakeHandlers() {
    return ImmutableList.copyOf(this.switchHandlers.values());
}
项目:fresco_floodlight    文件:MockSwitchManager.java   
public MockSwitchManager(){
    switchHandlers = new ConcurrentHashMap<DatapathId, OFSwitchHandshakeHandler>();
    switches = new ConcurrentHashMap<DatapathId, IOFSwitch>();
    counters = new SwitchManagerCounters(new DebugCounterServiceImpl());
    //switchListeners = new CopyOnWriteArrayList<IOFSwitchListener>();
}
项目:fresco_floodlight    文件:MockSwitchManager.java   
public void setSwitchHandshakeHandlers(Map<DatapathId, OFSwitchHandshakeHandler> handlers) {
    this.switchHandlers = handlers;
}
项目:fresco_floodlight    文件:MockSwitchManager.java   
@Override
public ImmutableList<OFSwitchHandshakeHandler>
        getSwitchHandshakeHandlers() {
    return ImmutableList.copyOf(this.switchHandlers.values());
}
项目:iTAP-controller    文件:MockSwitchManager.java   
public MockSwitchManager(){
    switchHandlers = new ConcurrentHashMap<DatapathId, OFSwitchHandshakeHandler>();
    switches = new ConcurrentHashMap<DatapathId, IOFSwitch>();
    counters = new SwitchManagerCounters(new DebugCounterServiceImpl());
    //switchListeners = new CopyOnWriteArrayList<IOFSwitchListener>();
}
项目:iTAP-controller    文件:MockSwitchManager.java   
public void setSwitchHandshakeHandlers(Map<DatapathId, OFSwitchHandshakeHandler> handlers) {
    this.switchHandlers = handlers;
}
项目:iTAP-controller    文件:MockSwitchManager.java   
@Override
public ImmutableList<OFSwitchHandshakeHandler>
        getSwitchHandshakeHandlers() {
    return ImmutableList.copyOf(this.switchHandlers.values());
}
项目:SDN-Multicast    文件:MockSwitchManager.java   
public MockSwitchManager(){
    switchHandlers = new ConcurrentHashMap<DatapathId, OFSwitchHandshakeHandler>();
    switches = new ConcurrentHashMap<DatapathId, IOFSwitch>();
    counters = new SwitchManagerCounters(new DebugCounterServiceImpl());
    //switchListeners = new CopyOnWriteArrayList<IOFSwitchListener>();
}
项目:SDN-Multicast    文件:MockSwitchManager.java   
public void setSwitchHandshakeHandlers(Map<DatapathId, OFSwitchHandshakeHandler> handlers) {
    this.switchHandlers = handlers;
}
项目:SDN-Multicast    文件:MockSwitchManager.java   
@Override
public ImmutableList<OFSwitchHandshakeHandler>
        getSwitchHandshakeHandlers() {
    return ImmutableList.copyOf(this.switchHandlers.values());
}
项目:arscheduler    文件:MockSwitchManager.java   
public MockSwitchManager(){
    switchHandlers = new ConcurrentHashMap<DatapathId, OFSwitchHandshakeHandler>();
    switches = new ConcurrentHashMap<DatapathId, IOFSwitch>();
    counters = new SwitchManagerCounters(new DebugCounterServiceImpl());
    //switchListeners = new CopyOnWriteArrayList<IOFSwitchListener>();
}
项目:arscheduler    文件:MockSwitchManager.java   
public void setSwitchHandshakeHandlers(Map<DatapathId, OFSwitchHandshakeHandler> handlers) {
    this.switchHandlers = handlers;
}
项目:arscheduler    文件:MockSwitchManager.java   
@Override
public ImmutableList<OFSwitchHandshakeHandler>
        getSwitchHandshakeHandlers() {
    return ImmutableList.copyOf(this.switchHandlers.values());
}
项目:floodlight1.2-delay    文件:MockSwitchManager.java   
public MockSwitchManager(){
    switchHandlers = new ConcurrentHashMap<DatapathId, OFSwitchHandshakeHandler>();
    switches = new ConcurrentHashMap<DatapathId, IOFSwitch>();
    counters = new SwitchManagerCounters(new DebugCounterServiceImpl());
    //switchListeners = new CopyOnWriteArrayList<IOFSwitchListener>();
}
项目:floodlight1.2-delay    文件:MockSwitchManager.java   
public void setSwitchHandshakeHandlers(Map<DatapathId, OFSwitchHandshakeHandler> handlers) {
    this.switchHandlers = handlers;
}
项目:floodlight1.2-delay    文件:MockSwitchManager.java   
@Override
public ImmutableList<OFSwitchHandshakeHandler>
        getSwitchHandshakeHandlers() {
    return ImmutableList.copyOf(this.switchHandlers.values());
}