|
OpenShift Java Client 2.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openshift.internal.client.AbstractOpenShiftResource
com.openshift.internal.client.EmbeddedCartridgeResource
public class EmbeddedCartridgeResource
A cartridge that is embedded into an application.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource |
---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
Field Summary |
---|
Fields inherited from interface com.openshift.client.cartridge.IEmbeddableCartridge |
---|
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 |
Fields inherited from interface com.openshift.client.cartridge.ICartridge |
---|
NAME_VERSION_DELIMITER |
Constructor Summary | |
---|---|
protected |
EmbeddedCartridgeResource(CartridgeResourceDTO dto,
ApplicationResource application)
|
Method Summary | |
---|---|
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 |
protected CartridgeType |
getType()
|
URL |
getUrl()
The url at which this cartridge may be reached |
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). |
void |
refresh()
Refreshes the content of this embedded cartridge. |
String |
toString()
|
protected void |
update(CartridgeResourceDTO dto)
|
Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource |
---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.openshift.client.IOpenShiftResource |
---|
getCreationLog, getMessages, hasCreationLog |
Constructor Detail |
---|
protected EmbeddedCartridgeResource(CartridgeResourceDTO dto, ApplicationResource application)
Method Detail |
---|
public String getName()
ICartridge
getName
in interface ICartridge
public String getDisplayName()
ICartridge
getDisplayName
in interface ICartridge
public String getDescription()
ICartridge
getDescription
in interface ICartridge
protected CartridgeType getType()
public URL getUrl()
IEmbeddedCartridge
getUrl
in interface ICartridge
getUrl
in interface IEmbeddedCartridge
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 IApplication getApplication()
IEmbeddedCartridge
getApplication
in interface IEmbeddedCartridge
protected void update(CartridgeResourceDTO dto)
public 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 int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
EmbeddedCartridgeResource
may be
compared to EmbeddableCartridge
.
equals
in class Object
public String toString()
toString
in class Object
|
OpenShift Java Client 2.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |