org.apache.whirr
Class Cluster.Instance

java.lang.Object
  extended by org.apache.whirr.Cluster.Instance
Enclosing class:
Cluster

public static class Cluster.Instance
extends Object

This class represents a real node running in a cluster. An instance has one or more roles.

See Also:
InstanceTemplate

Constructor Summary
Cluster.Instance(org.jclouds.domain.Credentials loginCredentials, Set<String> roles, String publicIp, String privateIp, String id, org.jclouds.compute.domain.NodeMetadata nodeMetadata)
           
 
Method Summary
 String getId()
           
 org.jclouds.domain.Credentials getLoginCredentials()
           
 org.jclouds.compute.domain.NodeMetadata getNodeMetadata()
           
 InetAddress getPrivateAddress()
           
 String getPrivateHostName()
           
 String getPrivateIp()
           
 InetAddress getPublicAddress()
           
 String getPublicHostName()
           
 String getPublicIp()
           
 Set<String> getRoles()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cluster.Instance

public Cluster.Instance(org.jclouds.domain.Credentials loginCredentials,
                        Set<String> roles,
                        String publicIp,
                        String privateIp,
                        String id,
                        org.jclouds.compute.domain.NodeMetadata nodeMetadata)
Method Detail

getLoginCredentials

public org.jclouds.domain.Credentials getLoginCredentials()

getRoles

public Set<String> getRoles()

getPublicAddress

public InetAddress getPublicAddress()
                             throws IOException
Throws:
IOException

getPrivateAddress

public InetAddress getPrivateAddress()
                              throws IOException
Throws:
IOException

getPublicIp

public String getPublicIp()

getPublicHostName

public String getPublicHostName()
                         throws IOException
Throws:
IOException

getPrivateIp

public String getPrivateIp()

getPrivateHostName

public String getPrivateHostName()
                          throws IOException
Throws:
IOException

getId

public String getId()

getNodeMetadata

public org.jclouds.compute.domain.NodeMetadata getNodeMetadata()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.