public class StandaloneCartridgeResource extends AbstractOpenShiftResource implements IStandaloneCartridge, IDeployedStandaloneCartridge
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequestNAME_JBOSSAS, NAME_JBOSSEAP, NAME_JBOSSEWS, NAME_JENKINS, NAME_PERL, NAME_PHP, NAME_PYTHON, NAME_RUBY, NAME_ZENDNAME_VERSION_DELIMITER| Modifier | Constructor and Description |
|---|---|
protected |
StandaloneCartridgeResource(CartridgeResourceDTO dto,
ApplicationResource application) |
protected |
StandaloneCartridgeResource(String name,
String displayName,
String description,
URL url,
CartridgeType cartridgeType,
boolean obsolete,
ApplicationResource application,
IRestService service,
Map<String,Link> links,
Messages messages) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAdditionalGearStorage()
Returns the additional gear storage for this cartridge
|
String |
getDescription()
Returns a description for this cartridge
|
String |
getDisplayName()
Returns a (human readable, nice) display name for this cartridge
|
IGearGroup |
getGearGroup()
Returns the gear group that this cartridge is deployed on
|
String |
getName()
Returns the name of this cartridge
|
CartridgeType |
getType() |
URL |
getUrl()
Returns the url at which the code for this cartridge may get downloaded.
|
int |
hashCode() |
boolean |
isDownloadable()
Returns
true if this is a downloadable cartridge whose code
may be downloaded at the url returned by ICartridge.getUrl() (cartridge
code will get downloaded upon creation). |
boolean |
isObsolete()
Returns
true if this cartridge is obsolete, false otherwise. |
void |
refresh()
Refreshes the content of this embedded cartridge.
|
void |
setAdditionalGearStorage(int size)
set the additional gear storage for this cartridge to the given value
|
String |
toString() |
getCreationLog, getLink, getMessages, hasCreationLog, setLinksprotected StandaloneCartridgeResource(CartridgeResourceDTO dto, ApplicationResource application)
protected StandaloneCartridgeResource(String name, String displayName, String description, URL url, CartridgeType cartridgeType, boolean obsolete, ApplicationResource application, IRestService service, Map<String,Link> links, Messages messages)
public void setAdditionalGearStorage(int size)
setAdditionalGearStorage in interface IDeployedStandaloneCartridgesize - The total size of storage in gigabytes for the gearpublic int getAdditionalGearStorage()
IDeployedStandaloneCartridgegetAdditionalGearStorage in interface IDeployedStandaloneCartridgepublic IGearGroup getGearGroup()
IDeployedStandaloneCartridgegetGearGroup in interface IDeployedStandaloneCartridgepublic void refresh()
throws OpenShiftException
refresh in interface IOpenShiftResourceOpenShiftException#update(CartridgeResourceDTO),
ApplicationResource.refreshEmbeddedCartridges()public String getName()
ICartridgegetName in interface ICartridgepublic String getDisplayName()
ICartridgegetDisplayName in interface ICartridgepublic String getDescription()
ICartridgegetDescription in interface ICartridgepublic boolean isDownloadable()
ICartridgetrue if this is a downloadable cartridge whose code
may be downloaded at the url returned by ICartridge.getUrl() (cartridge
code will get downloaded upon creation).
Examples:
isDownloadable in interface ICartridgetrue if this is a downloadable cartridgeICartridge.getUrl()public URL getUrl()
ICartridgenull if this is not a downloadable cartridge.getUrl in interface ICartridgeICartridge.isDownloadable()public CartridgeType getType()
getType in interface ICartridgepublic boolean isObsolete()
ICartridgetrue if this cartridge is obsolete, false otherwise.isObsolete in interface ICartridgeCopyright © 2016 JBoss by Red Hat. All rights reserved.