Package com.dianping.cat.home.nettopo.entity

Examples of com.dianping.cat.home.nettopo.entity.Connection


        switchB.setState(switchA.getState());
        netTopologyB.addSwitch(switchB);
      }

      for (Connection connectionA : netTopologyA.getConnections()) {
        Connection connectionB = new Connection();
        for (Interface interA : connectionA.getInterfaces()) {
          Interface interB = new Interface();
          interB.setDomain(interA.getDomain());
          interB.setGroup(interA.getGroup());
          interB.setKey(interA.getKey());
          interB.setIn(interA.getIn());
          interB.setOut(interA.getOut());
          interB.setInstate(interA.getInstate());
          interB.setOutstate(interA.getOutstate());
          interB.setInstate(interA.getInstate());
          interB.setOutstate(interA.getOutstate());
          interB.setInDiscardsState(interA.getInDiscardsState());
          interB.setOutDiscardsState(interA.getOutDiscardsState());
          interB.setInErrorsState(interA.getInErrorsState());
          interB.setOutErrorsState(interA.getOutErrorsState());
          connectionB.addInterface(interB);
        }
        connectionB.setInsum(connectionA.getInsum());
        connectionB.setOutsum(connectionA.getOutsum());
        connectionB.setFrom(connectionA.getFrom());
        connectionB.setTo(connectionA.getTo());
        connectionB.setInstate(connectionA.getInstate());
        connectionB.setOutstate(connectionA.getOutstate());
        connectionB.setInDiscardsState(connectionA.getInDiscardsState());
        connectionB.setOutDiscardsState(connectionA.getOutDiscardsState());
        connectionB.setInErrorsState(connectionA.getInErrorsState());
        connectionB.setOutErrorsState(connectionA.getOutErrorsState());
        netTopologyB.addConnection(connectionB);
      }

      to.addNetTopology(netTopologyB);
    }
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.nettopo.entity.Connection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.