Package voldemort.utils

Examples of voldemort.utils.HostNamePair


                    System.exit(2);
                }

                String externalHostName = line[0];
                String internalHostName = line.length > 1 ? line[1] : externalHostName;
                hostNamePairs.add(new HostNamePair(externalHostName, internalHostName));
            }
        } catch(IOException e) {
            throw new RuntimeException(e);
        } finally {
            if(li != null)
View Full Code Here


        List<HostNamePair> hostNamePairs = new ArrayList<HostNamePair>();

        for(ReservationDescription res: ec2.describeInstances(Collections.<String> emptyList())) {
            if(res.getInstances() != null) {
                for(Instance instance: res.getInstances()) {
                    HostNamePair hostNamePair = getHostNamePair(instance);

                    if(hostNamePair == null) {
                        if(logger.isWarnEnabled())
                            logger.warn("Instance "
                                        + instance.getInstanceId()
View Full Code Here

                                             + state);

                            continue;
                        }

                        HostNamePair hostNamePair = getHostNamePair(instance);

                        if(hostNamePair == null) {
                            if(logger.isWarnEnabled())
                                logger.warn("Instance "
                                            + instance.getInstanceId()
                                            + " in running state, but missing external and/or internal host name");

                            continue;
                        }

                        hostNamePairs.add(hostNamePair);

                        if(logger.isInfoEnabled())
                            logger.info("Instance " + instance.getInstanceId()
                                        + " running with external host name: "
                                        + hostNamePair.getExternalHostName()
                                        + ", internal host name: "
                                        + hostNamePair.getInternalHostName());

                        instanceIds.remove(instance.getInstanceId());
                    }
                }
            }
View Full Code Here

                                                                      : "";

        if(externalHostName.length() == 0 || internalHostName.length() == 0)
            return null;

        return new HostNamePair(externalHostName, internalHostName);
    }
View Full Code Here

TOP

Related Classes of voldemort.utils.HostNamePair

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.