Examples of PhysicalNodeInfo


Examples of com.cloudera.flume.master.logical.LogicalNameManager.PhysicalNodeInfo

        .genEventSink(lsnk));

    String tgtLn = FlumeBuilder.buildSimpleArg((CommonTree) lsnk.getChild(0)
        .getChild(1));

    PhysicalNodeInfo pni = nameMan.getPhysicalNodeInfo(tgtLn);

    String tgtPhysNode = getPhysicalNode(tgtLn);

    if (tgtPhysNode == null || pni == null) {
      // force a translation to an valid but incomplete translation
      pni = new PhysicalNodeInfo() {
        @Override
        public String getPhysicalSink() {
          return "fail( \"" + orig + "\" )";
        }

        @Override
        public String getPhysicalSource() {
          return "fail";
        }
      };
    }

    String snk = pni.getPhysicalSink();
    if (snk == null) {
      // bail out
      return null;
    }
View Full Code Here

Examples of com.cloudera.flume.master.logical.LogicalNameManager.PhysicalNodeInfo

      // do nothing,
      return lsrcTree;
    }

    // check logical name manager
    PhysicalNodeInfo pni = nameMan.getPhysicalNodeInfo(ln);
    if (pni == null) {
      // bail out
      nameMan.updateNode(ln);
      pni = nameMan.getPhysicalNodeInfo(ln);
      if (pni == null) {
        // return failure.
        LOG.warn("Logical node '" + ln
            + "' has not been assigned to a physical node yet");
        String src = "fail( \"logical node not mapped to physical node yet\" )";
        CommonTree psrcTree = FlumeBuilder.parseSource(src);
        PatternMatch.replaceChildren(lsrcTree, psrcTree);

        return lsrcTree;
      }
    }

    String src = pni.getPhysicalSource();

    String phys = getPhysicalNode(ln);
    if (phys == null) {
      src = "fail( \"no physical translation for " + ln + "\" )";
    }
View Full Code Here

Examples of com.cloudera.flume.master.logical.LogicalNameManager.PhysicalNodeInfo

        .genEventSink(lsnk));

    String tgtLn = FlumeBuilder.buildSimpleArg((CommonTree) lsnk.getChild(0)
        .getChild(1)).toString();

    PhysicalNodeInfo pni = nameMan.getPhysicalNodeInfo(tgtLn);

    String tgtPhysNode = getPhysicalNode(tgtLn);

    if (tgtPhysNode == null || pni == null) {
      // force a translation to an valid but incomplete translation
      pni = new PhysicalNodeInfo() {
        @Override
        public String getPhysicalSink() {
          return "fail( \"" + orig + "\" )";
        }

        @Override
        public String getPhysicalSource() {
          return "fail";
        }
      };
    }

    String snk = pni.getPhysicalSink();
    if (snk == null) {
      // bail out
      return null;
    }
View Full Code Here

Examples of com.cloudera.flume.master.logical.LogicalNameManager.PhysicalNodeInfo

      // do nothing,
      return lsrcTree;
    }

    // check logical name manager
    PhysicalNodeInfo pni = nameMan.getPhysicalNodeInfo(ln);
    if (pni == null) {
      // bail out
      nameMan.updateNode(ln);
      pni = nameMan.getPhysicalNodeInfo(ln);
      if (pni == null) {
        // return failure.
        LOG.warn("Logical node '" + ln
            + "' has not been assigned to a physical node yet");
        String src = "fail( \"logical node not mapped to physical node yet\" )";
        CommonTree psrcTree = FlumeBuilder.parseSource(src);
        PatternMatch.replaceChildren(lsrcTree, psrcTree);

        return lsrcTree;
      }
    }

    String src = pni.getPhysicalSource();

    String phys = getPhysicalNode(ln);
    if (phys == null) {
      src = "fail( \"no physical translation for " + ln + "\" )";
    }
View Full Code Here

Examples of com.cloudera.flume.master.logical.LogicalNameManager.PhysicalNodeInfo

    final String orig = StringEscapeUtils.escapeJava(FlumeSpecGen
        .genEventSink(lsnk));

    String tgtLn = FlumeBuilder.buildArg((CommonTree) lsnk.getChild(1));

    PhysicalNodeInfo pni = nameMan.getPhysicalNodeInfo(tgtLn);

    String tgtPhysNode = getPhysicalNode(tgtLn);

    if (tgtPhysNode == null || pni == null) {
      // force a translation to an valid but incomplete translation
      pni = new PhysicalNodeInfo() {
        @Override
        public String getPhysicalSink() {
          return "fail( \"" + orig + "\" )";
        }

        @Override
        public String getPhysicalSource() {
          return "fail";
        }
      };
    }

    String snk = pni.getPhysicalSink();
    if (snk == null) {
      // bail out
      return null;
    }
View Full Code Here

Examples of com.cloudera.flume.master.logical.LogicalNameManager.PhysicalNodeInfo

      // do nothing,
      return lsrcTree;
    }

    // check logical name manager
    PhysicalNodeInfo pni = nameMan.getPhysicalNodeInfo(ln);
    if (pni == null) {
      // bail out
      nameMan.updateNode(ln);
      pni = nameMan.getPhysicalNodeInfo(ln);
      if (pni == null) {
        // return failure.
        return null;
      }
    }

    String src = pni.getPhysicalSource();

    String phys = getPhysicalNode(ln);
    if (phys == null) {
      src = "fail( \"no physical translation for " + ln + "\" )";
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.