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)
           
Cluster.Instance(org.jclouds.domain.Credentials loginCredentials, Set<String> roles, String publicIp, String privateIp, String id, org.jclouds.compute.domain.NodeMetadata nodeMetadata, DnsResolver dnsResolver)
           
 
Method Summary
 String getId()
           
 org.jclouds.domain.Credentials getLoginCredentials()
           
 org.jclouds.compute.domain.NodeMetadata getNodeMetadata()
           
 InetAddress getPrivateAddress()
           
 String getPrivateHostName()
          Deprecated. 
 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)

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,
                        DnsResolver dnsResolver)
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

@Deprecated
public String getPrivateHostName()
                          throws IOException
Deprecated. 

TODO Remove in version 0.9.0

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-2012 The Apache Software Foundation. All Rights Reserved.