OpenShift Java Client 2.5.0.Final

com.openshift.internal.client
Class Gear

java.lang.Object
  extended by com.openshift.internal.client.Gear
All Implemented Interfaces:
IGear

public class Gear
extends Object
implements IGear

A gear that a cartridge is running on.

Author:
Andre Dietisheim

Constructor Summary
Gear(String id, GearState state, String sshUrl)
           
 
Method Summary
 String getId()
          Returns the id of this gear.
 String getSshUrl()
          The URL to use when connecting with SSH in the following form: ssh://<username>@<host>
 GearState getState()
          Returns the state of this gear
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gear

public Gear(String id,
            GearState state,
            String sshUrl)
Method Detail

getId

public String getId()
Description copied from interface: IGear
Returns the id of this gear.

Specified by:
getId in interface IGear
Returns:
the id

getState

public GearState getState()
Description copied from interface: IGear
Returns the state of this gear

Specified by:
getState in interface IGear
Returns:
the state

getSshUrl

public String getSshUrl()
Description copied from interface: IGear
The URL to use when connecting with SSH in the following form: ssh://<username>@<host>

Specified by:
getSshUrl in interface IGear
Returns:
the sshUrl

toString

public String toString()
Overrides:
toString in class Object

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.