org.jclouds.ec2.domain
Class InstanceStateChange

java.lang.Object
  extended by org.jclouds.ec2.domain.InstanceStateChange
All Implemented Interfaces:
Comparable<InstanceStateChange>

public class InstanceStateChange
extends Object
implements Comparable<InstanceStateChange>

Author:
Adrian Cole
See Also:

Constructor Summary
InstanceStateChange(String region, String instanceId, InstanceState currentState, InstanceState previousState)
           
 
Method Summary
 int compareTo(InstanceStateChange o)
           
 boolean equals(Object obj)
           
 InstanceState getCurrentState()
           
 String getInstanceId()
           
 InstanceState getPreviousState()
           
 String getRegion()
          Instances are tied to Availability Zones.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceStateChange

public InstanceStateChange(String region,
                           String instanceId,
                           InstanceState currentState,
                           InstanceState previousState)
Method Detail

compareTo

public int compareTo(InstanceStateChange o)
Specified by:
compareTo in interface Comparable<InstanceStateChange>

getRegion

public String getRegion()
Instances are tied to Availability Zones. However, the instance ID is tied to the Region.


getInstanceId

public String getInstanceId()

getCurrentState

public InstanceState getCurrentState()

getPreviousState

public InstanceState getPreviousState()

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-2011 jclouds. All Rights Reserved.