public class EmbeddedCartridgeResource extends AbstractOpenShiftResource implements IEmbeddedCartridge
AbstractOpenShiftResource.ServiceRequest
NAME_10GEN_MMS_AGENT, NAME_HAPROXY, NAME_JENKINS_CLIENT, NAME_METRICS, NAME_MONGODB, NAME_MYSQL, NAME_PHPMYADMIN, NAME_POSTGRESQL, NAME_ROCKMONGO
NAME_VERSION_DELIMITER
Modifier | Constructor and Description |
---|---|
protected |
EmbeddedCartridgeResource(String info,
CartridgeResourceDTO dto,
ApplicationResource application) |
protected |
EmbeddedCartridgeResource(String name,
String displayName,
String description,
CartridgeType type,
String info,
Map<String,Link> links,
Messages messages,
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
|
protected CartridgeType |
getType() |
String |
getUrl()
The url at which this cartridge may be reached
|
int |
hashCode() |
void |
refresh()
Refresh the resource and its list of children resources that were
previously loaded
|
String |
toString() |
areLinksLoaded, getCreationLog, getLink, getMessages, getService, hasCreationLog
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCreationLog, getMessages, hasCreationLog
protected EmbeddedCartridgeResource(String info, CartridgeResourceDTO dto, ApplicationResource application)
protected EmbeddedCartridgeResource(String name, String displayName, String description, CartridgeType type, String info, Map<String,Link> links, Messages messages, 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
protected CartridgeType getType()
public IApplication getApplication()
IEmbeddedCartridge
getApplication
in interface IEmbeddedCartridge
public String getUrl() throws OpenShiftException
IEmbeddedCartridge
getUrl
in interface IEmbeddedCartridge
OpenShiftException
public void refresh() throws OpenShiftException
IOpenShiftResource
refresh
in interface IOpenShiftResource
OpenShiftException
public void destroy() throws OpenShiftException
IEmbeddedCartridge
destroy
in interface IEmbeddedCartridge
OpenShiftException
public boolean equals(Object obj)
EmbeddedCartridgeResource
may be
compared to EmbeddableCartridge
.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.