Package com.cloudera.flume.conf.avro

Examples of com.cloudera.flume.conf.avro.AvroFlumeConfigData


   */
  static protected byte[] serializeConfigs(Map<String, FlumeConfigData> cfgs)
      throws IOException {
    Map<CharSequence, AvroFlumeConfigData> map = new HashMap<CharSequence, AvroFlumeConfigData>();
    for (Entry<String, FlumeConfigData> e : cfgs.entrySet()) {
      AvroFlumeConfigData avroConfig = MasterClientServerAvro.configToAvro(e
          .getValue());

      map.put(new Utf8(e.getKey()), avroConfig);
    }

View Full Code Here


  }
  public synchronized FlumeConfigData getConfig(LogicalNode n)
      throws IOException {
    try {
      ensureInitialized();
      AvroFlumeConfigData config = masterClient.getConfig(n.getName());
      if (config == null) {
        // master has not config for node
        LOG.debug("Master does not have config data for me.");
        return null;
      }
View Full Code Here

  public Map<CharSequence, AvroFlumeConfigData> getConfigs()
      throws AvroRemoteException {
    Map<CharSequence, AvroFlumeConfigData> out = new HashMap<CharSequence, AvroFlumeConfigData>();
    Map<String, FlumeConfigData> results = this.delegate.getConfigs();
    for (String key : results.keySet()) {
      AvroFlumeConfigData cfg = MasterClientServerAvro.configToAvro(results
          .get(key));
      out.put(key, cfg);
    }
    return out;
  }
View Full Code Here

  public static AvroFlumeConfigData configToAvro(FlumeConfigData in) {
    if (in == null) {
      return null;
    }
    AvroFlumeConfigData out = new AvroFlumeConfigData();
    out.timestamp = in.timestamp;
    out.sourceConfig = in.sourceConfig;
    out.sinkConfig = in.sinkConfig;
    out.sourceVersion = in.sourceVersion;
    out.sinkVersion = in.sinkVersion;
View Full Code Here

  public static AvroFlumeConfigData configToAvro(FlumeConfigData in) {
    if (in == null) {
      return null;
    }
    AvroFlumeConfigData out = new AvroFlumeConfigData();
    out.timestamp = in.timestamp;
    out.sourceConfig = in.sourceConfig;
    out.sinkConfig = in.sinkConfig;
    out.sourceVersion = in.sourceVersion;
    out.sinkVersion = in.sinkVersion;
View Full Code Here

  }

  public synchronized FlumeConfigData getConfig(String n) throws IOException {
    try {
      ensureInitialized();
      AvroFlumeConfigData config = masterClient.getConfig(n);
      if (config == null) {
        // master has not config for node
        LOG.debug("Master does not have config data for me.");
        return null;
      }
View Full Code Here

  public Map<CharSequence, AvroFlumeConfigData> getConfigs()
      throws AvroRemoteException {
    Map<CharSequence, AvroFlumeConfigData> out = new HashMap<CharSequence, AvroFlumeConfigData>();
    Map<String, FlumeConfigData> results = this.delegate.getConfigs();
    for (String key : results.keySet()) {
      AvroFlumeConfigData cfg = MasterClientServerAvro.configToAvro(results
          .get(key));
      out.put(key, cfg);
    }
    return out;
  }
View Full Code Here

  public static AvroFlumeConfigData configToAvro(FlumeConfigData in) {
    if (in == null) {
      return null;
    }
    AvroFlumeConfigData out = new AvroFlumeConfigData();
    out.timestamp = in.timestamp;
    out.sourceConfig = in.sourceConfig;
    out.sinkConfig = in.sinkConfig;
    out.sourceVersion = in.sourceVersion;
    out.sinkVersion = in.sinkVersion;
View Full Code Here

   */
  static protected byte[] serializeConfigs(Map<String, FlumeConfigData> cfgs)
      throws IOException {
    Map<CharSequence, AvroFlumeConfigData> map = new HashMap<CharSequence, AvroFlumeConfigData>();
    for (Entry<String, FlumeConfigData> e : cfgs.entrySet()) {
      AvroFlumeConfigData avroConfig = MasterClientServerAvro.configToAvro(e
          .getValue());

      map.put(new Utf8(e.getKey()), avroConfig);
    }

View Full Code Here

TOP

Related Classes of com.cloudera.flume.conf.avro.AvroFlumeConfigData

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.