OpenShift Java Client 2.5.0.Final

com.openshift.internal.client
Class GearGroupResource

java.lang.Object
  extended by com.openshift.internal.client.AbstractOpenShiftResource
      extended by com.openshift.internal.client.GearGroupResource
All Implemented Interfaces:
IGearGroup, IOpenShiftResource

public class GearGroupResource
extends AbstractOpenShiftResource
implements IGearGroup

Author:
Andre Dietisheim, Xavier Coulon

Nested Class Summary
 
Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest
 
Constructor Summary
protected GearGroupResource(GearGroupResourceDTO dto, ApplicationResource application, IRestService service)
          Constructor.
protected GearGroupResource(String uuid, String name, Collection<GearResourceDTO> gearDTOs, Map<String,CartridgeResourceDTO> cartridgeDTOs, ApplicationResource application, IRestService service)
          Constructor.
 
Method Summary
 Collection<ICartridge> getCartridges()
          Returns the cartridges in this gear group resource
 Collection<IGear> getGears()
          Returns the gears in this gear group resource
 String getName()
          Returns the name of this gear groups
 String getUUID()
          Returns the uuid of this gear groups.
 void refresh()
          Refresh the resource and its list of children resources that were previously loaded
 
Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource
getCreationLog, getLink, getMessages, hasCreationLog, setLinks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GearGroupResource

protected GearGroupResource(String uuid,
                            String name,
                            Collection<GearResourceDTO> gearDTOs,
                            Map<String,CartridgeResourceDTO> cartridgeDTOs,
                            ApplicationResource application,
                            IRestService service)
Constructor.

Parameters:
uuid - the gear group's UUID
name - the gear group's name
gearDTOs - the gear group's gears
cartridgeDTOs - the gear group's cartridges, indexed by their name
application - the gear group's parent application
service - the underlying REST Service

GearGroupResource

protected GearGroupResource(GearGroupResourceDTO dto,
                            ApplicationResource application,
                            IRestService service)
Constructor.

Parameters:
dto - the associated GearGroupResourceDTO
application - the parent application
servicethe - underlying REST Service
Method Detail

getUUID

public final String getUUID()
Description copied from interface: IGearGroup
Returns the uuid of this gear groups.

Specified by:
getUUID in interface IGearGroup
Returns:
the uuid

getName

public final String getName()
Description copied from interface: IGearGroup
Returns the name of this gear groups

Specified by:
getName in interface IGearGroup
Returns:
the name

getGears

public Collection<IGear> getGears()
Description copied from interface: IGearGroup
Returns the gears in this gear group resource

Specified by:
getGears in interface IGearGroup
Returns:
the gears

getCartridges

public Collection<ICartridge> getCartridges()
Description copied from interface: IGearGroup
Returns the cartridges in this gear group resource

Specified by:
getCartridges in interface IGearGroup
Returns:
the cartridges

refresh

public void refresh()
             throws OpenShiftException
Description copied from interface: IOpenShiftResource
Refresh the resource and its list of children resources that were previously loaded

Specified by:
refresh in interface IOpenShiftResource
Throws:
OpenShiftException

OpenShift Java Client 2.5.0.Final

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