public class StandaloneCartridgeResource extends AbstractOpenShiftResource implements IStandaloneCartridge, IDeployedStandaloneCartridge
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest
NAME_JBOSSAS, NAME_JBOSSEAP, NAME_JBOSSEWS, NAME_JENKINS, NAME_PERL, NAME_PHP, NAME_PYTHON, NAME_RUBY, NAME_ZEND
NAME_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, setLinks
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)
public void setAdditionalGearStorage(int size)
setAdditionalGearStorage
in interface IDeployedStandaloneCartridge
size
- The total size of storage in gigabytes for the gearpublic int getAdditionalGearStorage()
IDeployedStandaloneCartridge
getAdditionalGearStorage
in interface IDeployedStandaloneCartridge
public IGearGroup getGearGroup()
IDeployedStandaloneCartridge
getGearGroup
in interface IDeployedStandaloneCartridge
public void refresh() throws OpenShiftException
refresh
in interface IOpenShiftResource
OpenShiftException
#update(CartridgeResourceDTO)
,
ApplicationResource.refreshEmbeddedCartridges()
public String getName()
ICartridge
getName
in interface ICartridge
public String getDisplayName()
ICartridge
getDisplayName
in interface ICartridge
public String getDescription()
ICartridge
getDescription
in interface ICartridge
public boolean isDownloadable()
ICartridge
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).
Examples:
isDownloadable
in interface ICartridge
true
if this is a downloadable cartridgeICartridge.getUrl()
public URL getUrl()
ICartridge
null if this is not a downloadable cartridge.
getUrl
in interface ICartridge
ICartridge.isDownloadable()
public CartridgeType getType()
getType
in interface ICartridge
public boolean isObsolete()
ICartridge
true
if this cartridge is obsolete, false
otherwise.isObsolete
in interface ICartridge
Copyright © 2016 JBoss by Red Hat. All rights reserved.