@Test public void testDescOps() { LinkDescription desc = BasicLinkOperator.combine(BLC, LD); assertEquals(NTIME.toString(), desc.annotations().value(AnnotationKeys.LATENCY)); assertEquals("true", desc.annotations().value(AnnotationKeys.DURABLE)); }
public static LinkDescription combine(BasicLinkConfig cfg, LinkDescription descr) { if (cfg == null) { return descr; } Link.Type type = descr.type(); if (cfg.type() != type) { type = cfg.type(); } SparseAnnotations sa = combine(cfg, descr.annotations()); return new DefaultLinkDescription(descr.src(), descr.dst(), type, sa); }
BasicLinkOperator implements ConfigOperator { public static LinkDescription combine(BasicLinkConfig cfg, LinkDescription descr) { if (cfg == null) { return descr; } Link.Type type = descr.type(); if (cfg.type() != type) { type = cfg.type(); } SparseAnnotations sa = combine(cfg, descr.annotations()); return new DefaultLinkDescription(descr.src(), descr.dst(), type, sa); } }
BasicLinkOperator implements ConfigOperator { public static LinkDescription combine(BasicLinkConfig cfg, LinkDescription descr) { if (cfg == null) { return descr; } Link.Type type = descr.type(); if (cfg.type() != type) { type = cfg.type(); } SparseAnnotations sa = combine(cfg, descr.annotations()); return new DefaultLinkDescription(descr.src(), descr.dst(), type, sa); } private  BasicLinkOperator(); }
BasicLinkOperator implements ConfigOperator { public static LinkDescription combine(BasicLinkConfig cfg, LinkDescription descr) { if (cfg == null) { return descr; } Link.Type type = descr.type(); if (cfg.type() != type) { type = cfg.type(); } SparseAnnotations sa = combine(cfg, descr.annotations()); return new DefaultLinkDescription(descr.src(), descr.dst(), type, sa); } private  BasicLinkOperator(); static LinkDescription combine(BasicLinkConfig cfg, LinkDescription descr); static SparseAnnotations combine(BasicLinkConfig cfg, SparseAnnotations an); static LinkDescription descriptionOf(
                ConnectPoint src, ConnectPoint dst, Link link); static LinkDescription descriptionOf(
                ConnectPoint src, ConnectPoint dst, BasicLinkConfig link); }
BasicLinkOperator implements ConfigOperator { public static LinkDescription combine(BasicLinkConfig cfg, LinkDescription descr) { if (cfg == null) { return descr; } Link.Type type = descr.type(); if (cfg.type() != type) { type = cfg.type(); } SparseAnnotations sa = combine(cfg, descr.annotations()); return new DefaultLinkDescription(descr.src(), descr.dst(), type, sa); } private  BasicLinkOperator(); static LinkDescription combine(BasicLinkConfig cfg, LinkDescription descr); static SparseAnnotations combine(BasicLinkConfig cfg, SparseAnnotations an); static LinkDescription descriptionOf(
                ConnectPoint src, ConnectPoint dst, Link link); static LinkDescription descriptionOf(
                ConnectPoint src, ConnectPoint dst, BasicLinkConfig link);  }