public class EmbeddedCartridgeResource extends AbstractOpenShiftResource implements IEmbeddedCartridge
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequestNAME_10GEN_MMS_AGENT, NAME_CRON, NAME_HAPROXY, NAME_JENKINS_CLIENT, NAME_METRICS, NAME_MONGODB, NAME_MYSQL, NAME_PHPMYADMIN, NAME_POSTGRESQL, NAME_ROCKMONGO, NAME_SWITCHYARDNAME_VERSION_DELIMITER| Modifier | Constructor and Description |
|---|---|
protected |
EmbeddedCartridgeResource(CartridgeResourceDTO dto,
ApplicationResource application) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this cartridge (and removes it from the list of existing cartridges)
|
boolean |
equals(Object obj)
TODO: implement fully correct #equals and #hashcode.
|
IApplication |
getApplication()
Returns the application this cartridge is embedded into.
|
String |
getDescription()
Returns a description for this cartridge
|
String |
getDisplayName()
Returns a (human readable, nice) display name for this cartridge
|
String |
getName()
Returns the name of this cartridge
|
CartridgeResourceProperties |
getProperties()
Returns the properties for this embedded 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)
Update the additional gear storage for this cartridge to the given value
|
String |
toString() |
protected void |
update(CartridgeResourceDTO dto) |
getCreationLog, getLink, getMessages, hasCreationLog, setLinksclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCreationLog, getMessages, hasCreationLogprotected EmbeddedCartridgeResource(CartridgeResourceDTO dto, ApplicationResource application)
public String getName()
ICartridgegetName in interface ICartridgepublic String getDisplayName()
ICartridgegetDisplayName in interface ICartridgepublic String getDescription()
ICartridgegetDescription in interface ICartridgepublic CartridgeType getType()
getType in interface ICartridgepublic URL getUrl()
ICartridgenull if this is not a downloadable cartridge.getUrl in interface ICartridgeICartridge.isDownloadable()public 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 boolean isObsolete()
ICartridgetrue if this cartridge is obsolete, false otherwise.isObsolete in interface ICartridgepublic IApplication getApplication()
IEmbeddedCartridgegetApplication in interface IEmbeddedCartridgeprotected void update(CartridgeResourceDTO dto)
public void setAdditionalGearStorage(int size)
setAdditionalGearStorage in interface IEmbeddedCartridgesize - The total size of storage in gigabytes for the gearpublic void refresh()
throws OpenShiftException
refresh in interface IOpenShiftResourceOpenShiftExceptionupdate(CartridgeResourceDTO),
ApplicationResource.refreshEmbeddedCartridges()public void destroy()
throws OpenShiftException
IEmbeddedCartridgedestroy in interface IEmbeddedCartridgeOpenShiftExceptionpublic CartridgeResourceProperties getProperties()
IEmbeddedCartridgegetProperties in interface IEmbeddedCartridgepublic boolean equals(Object obj)
EmbeddedCartridgeResource may be
compared to EmbeddableCartridge.Copyright © 2016 JBoss by Red Hat. All rights reserved.