Package com.linkedin.databus.core.util

Examples of com.linkedin.databus.core.util.IdNamePair


    Collection<LogicalSource> sources = _relay.getSourcesIdNameRegistry().getAllSources();
    if (1 == protoVersion)
    {
      ArrayList<IdNamePair> sourcePairs = new ArrayList<IdNamePair>(sources.size());
      for (LogicalSource source: sources) sourcePairs.add(new IdNamePair(source.getId().longValue(), source.getName()));
      mapper.writeValue(out, sourcePairs);
    }
    else if (2 == protoVersion) mapper.writeValue(out, sources);
    else throw new InvalidRequestParamValueException(COMMAND_NAME, VERSION_PARAM_NAME,
                                                     Integer.toString(protoVersion));
View Full Code Here

TOP

Related Classes of com.linkedin.databus.core.util.IdNamePair

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.