public class GearGroupResource extends AbstractOpenShiftResource implements IGearGroup
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequestNO_ADDITIONAL_GEAR_STORAGE| Modifier | Constructor and Description |
|---|---|
protected |
GearGroupResource(GearGroupResourceDTO dto,
ApplicationResource application,
IRestService service)
Constructor.
|
protected |
GearGroupResource(String uuid,
String name,
Collection<GearResourceDTO> gearDTOs,
Map<String,CartridgeResourceDTO> cartridgeDTOs,
int additionalStorage,
ApplicationResource application,
IRestService service)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAdditionalStorage()
Returns the additional storage configured for this gear group in gigabytes
|
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
|
getCreationLog, getLink, getMessages, hasCreationLog, setLinksprotected GearGroupResource(String uuid, String name, Collection<GearResourceDTO> gearDTOs, Map<String,CartridgeResourceDTO> cartridgeDTOs, int additionalStorage, ApplicationResource application, IRestService service)
uuid - the gear group's UUIDname - the gear group's namegearDTOs - the gear group's gearscartridgeDTOs - the gear group's cartridges, indexed by their nameadditionalStorage - the gear group's additional storage valueapplication - the gear group's parent applicationservice - the underlying REST Serviceprotected GearGroupResource(GearGroupResourceDTO dto, ApplicationResource application, IRestService service)
dto - the associated GearGroupResourceDTOapplication - the parent applicationservicethe - underlying REST Servicepublic final String getUUID()
IGearGroupgetUUID in interface IGearGrouppublic final String getName()
IGearGroupgetName in interface IGearGrouppublic Collection<IGear> getGears()
IGearGroupgetGears in interface IGearGrouppublic int getAdditionalStorage()
IGearGroupgetAdditionalStorage in interface IGearGrouppublic Collection<ICartridge> getCartridges()
IGearGroupgetCartridges in interface IGearGrouppublic void refresh()
throws OpenShiftException
IOpenShiftResourcerefresh in interface IOpenShiftResourceOpenShiftExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.