public class GearGroupResource extends AbstractOpenShiftResource implements IGearGroup
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest
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,
ApplicationResource application,
IRestService service)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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, setLinks
protected GearGroupResource(String uuid, String name, Collection<GearResourceDTO> gearDTOs, Map<String,CartridgeResourceDTO> cartridgeDTOs, 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 nameapplication
- the gear group's parent applicationservice
- the underlying REST Serviceprotected GearGroupResource(GearGroupResourceDTO dto, ApplicationResource application, IRestService service)
dto
- the associated GearGroupResourceDTO
application
- the parent applicationservicethe
- underlying REST Servicepublic final String getUUID()
IGearGroup
getUUID
in interface IGearGroup
public final String getName()
IGearGroup
getName
in interface IGearGroup
public Collection<IGear> getGears()
IGearGroup
getGears
in interface IGearGroup
public Collection<ICartridge> getCartridges()
IGearGroup
getCartridges
in interface IGearGroup
public void refresh() throws OpenShiftException
IOpenShiftResource
refresh
in interface IOpenShiftResource
OpenShiftException
Copyright © 2016 JBoss by Red Hat. All rights reserved.