public class EmbeddedCartridgeResource extends AbstractOpenShiftResource implements IEmbeddedCartridge
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest
NAME_10GEN_MMS_AGENT, NAME_CRON, NAME_HAPROXY, NAME_JENKINS_CLIENT, NAME_METRICS, NAME_MONGODB, NAME_MYSQL, NAME_PHPMYADMIN, NAME_POSTGRESQL, NAME_ROCKMONGO, NAME_SWITCHYARD
NAME_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, setLinks
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCreationLog, getMessages, hasCreationLog
protected EmbeddedCartridgeResource(CartridgeResourceDTO dto, ApplicationResource application)
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 CartridgeType getType()
getType
in interface ICartridge
public URL getUrl()
ICartridge
null if this is not a downloadable cartridge.
getUrl
in interface ICartridge
ICartridge.isDownloadable()
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 boolean isObsolete()
ICartridge
true
if this cartridge is obsolete, false
otherwise.isObsolete
in interface ICartridge
public IApplication getApplication()
IEmbeddedCartridge
getApplication
in interface IEmbeddedCartridge
protected void update(CartridgeResourceDTO dto)
public void setAdditionalGearStorage(int size)
setAdditionalGearStorage
in interface IEmbeddedCartridge
size
- The total size of storage in gigabytes for the gearpublic void refresh() throws OpenShiftException
refresh
in interface IOpenShiftResource
OpenShiftException
update(CartridgeResourceDTO)
,
ApplicationResource.refreshEmbeddedCartridges()
public void destroy() throws OpenShiftException
IEmbeddedCartridge
destroy
in interface IEmbeddedCartridge
OpenShiftException
public CartridgeResourceProperties getProperties()
IEmbeddedCartridge
getProperties
in interface IEmbeddedCartridge
public boolean equals(Object obj)
EmbeddedCartridgeResource
may be
compared to EmbeddableCartridge
.Copyright © 2015 JBoss by Red Hat. All rights reserved.