de.jw.cloud42.core.domain
Class Instance

java.lang.Object
  extended by de.jw.cloud42.core.domain.Instance

public class Instance
extends java.lang.Object

Combines information contained in a ReservatioDescription and in a ReservatioDescription.Instance within one class. Wrapper around ReservationDescription.Instance of the Typica library since Axis2 does not recognize nested types. Only for use within the web service and the web application layer.

Author:
fbitzer

Constructor Summary
Instance(com.xerox.amazonws.ec2.ReservationDescription resDescr, int instanceIndex)
          Set member variables in constructur.
 
Method Summary
 java.lang.String getAvailabilityZone()
           
 java.lang.String getDnsName()
           
 java.lang.String[] getGroups()
           
 java.lang.String getImageId()
           
 java.lang.String getInstanceId()
           
 java.lang.String getInstanceType()
           
 java.lang.String getKernelId()
           
 java.lang.String getKeyName()
           
 java.util.Calendar getLaunchTime()
           
 java.lang.String getOwner()
           
 java.lang.String getPrivateDnsName()
           
 java.lang.String getRamdiskId()
           
 java.lang.String getReason()
           
 java.lang.String getReservationId()
           
 java.lang.String getState()
           
 int getStateCode()
           
 boolean isPending()
           
 boolean isRunning()
           
 boolean isShuttingDown()
           
 boolean isTerminated()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

public Instance(com.xerox.amazonws.ec2.ReservationDescription resDescr,
                int instanceIndex)
Set member variables in constructur.

Parameters:
resDescr - The "original" ReservationDescription of the instance that is wrapped.
instanceIndex - index of the instance within the ReservationDescription (usually 0, but may be >0 if more than one instances are contained within one ReservationDescription)
Method Detail

getReservationId

public java.lang.String getReservationId()

getOwner

public java.lang.String getOwner()

getGroups

public java.lang.String[] getGroups()

getImageId

public java.lang.String getImageId()

getInstanceId

public java.lang.String getInstanceId()

getPrivateDnsName

public java.lang.String getPrivateDnsName()

getDnsName

public java.lang.String getDnsName()

getReason

public java.lang.String getReason()

getKeyName

public java.lang.String getKeyName()

getState

public java.lang.String getState()

isRunning

public boolean isRunning()

isPending

public boolean isPending()

isShuttingDown

public boolean isShuttingDown()

isTerminated

public boolean isTerminated()

getStateCode

public int getStateCode()

getInstanceType

public java.lang.String getInstanceType()

getLaunchTime

public java.util.Calendar getLaunchTime()

getAvailabilityZone

public java.lang.String getAvailabilityZone()

getKernelId

public java.lang.String getKernelId()

getRamdiskId

public java.lang.String getRamdiskId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 just works! Software. All Rights Reserved.