org.jclouds.elb.domain
Class InstanceHealth

java.lang.Object
  extended by org.jclouds.elb.domain.InstanceHealth

public class InstanceHealth
extends Object

the current state of an instance in a loadbalancer.

Author:
Adrian Cole
See Also:
doc

Nested Class Summary
static class InstanceHealth.Builder
           
 
Field Summary
protected  String description
           
protected  String instanceId
           
protected  com.google.common.base.Optional<String> reasonCode
           
protected  String state
           
 
Constructor Summary
protected InstanceHealth(String description, String instanceId, com.google.common.base.Optional<String> reasonCode, String state)
           
 
Method Summary
static InstanceHealth.Builder builder()
           
 boolean equals(Object obj)
          
 String getDescription()
          Provides a description of the instance.
 String getInstanceId()
          Provides an EC2 instance ID.
 com.google.common.base.Optional<String> getReasonCode()
          Provides information about the cause of OutOfService instances.
 String getState()
          Specifies the current status of the instance.
 int hashCode()
          
 InstanceHealth.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected final String description

instanceId

protected final String instanceId

reasonCode

protected final com.google.common.base.Optional<String> reasonCode

state

protected final String state
Constructor Detail

InstanceHealth

protected InstanceHealth(String description,
                         String instanceId,
                         com.google.common.base.Optional<String> reasonCode,
                         String state)
Method Detail

builder

public static InstanceHealth.Builder builder()

toBuilder

public InstanceHealth.Builder toBuilder()

getDescription

public String getDescription()
Provides a description of the instance.


getInstanceId

public String getInstanceId()
Provides an EC2 instance ID.


getReasonCode

public com.google.common.base.Optional<String> getReasonCode()
Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the LoadBalancer.


getState

public String getState()
Specifies the current status of the instance.


hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.