OpenShift Java Client 2.5.0.Final

com.openshift.internal.client.cartridge
Class BaseCartridge

java.lang.Object
  extended by com.openshift.internal.client.cartridge.BaseCartridge
All Implemented Interfaces:
ICartridge
Direct Known Subclasses:
EmbeddableCartridge, StandaloneCartridge

public abstract class BaseCartridge
extends Object
implements ICartridge

A (base) cartridge for an OpenShift application.

Author:
Andre Dietisheim
See Also:
EmbeddableCartridge, StandaloneCartridge

Field Summary
 
Fields inherited from interface com.openshift.client.cartridge.ICartridge
NAME_VERSION_DELIMITER
 
Constructor Summary
protected BaseCartridge(String name)
           
protected BaseCartridge(String name, String displayName, String description)
           
protected BaseCartridge(String name, URL url)
           
protected BaseCartridge(String name, URL url, String displayName, String description)
           
protected BaseCartridge(URL url)
           
 
Method Summary
 boolean equals(Object obj)
           
 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
 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).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseCartridge

protected BaseCartridge(String name)

BaseCartridge

protected BaseCartridge(URL url)

BaseCartridge

protected BaseCartridge(String name,
                        URL url)

BaseCartridge

protected BaseCartridge(String name,
                        String displayName,
                        String description)

BaseCartridge

protected BaseCartridge(String name,
                        URL url,
                        String displayName,
                        String description)
Method Detail

getName

public String getName()
Description copied from interface: ICartridge
Returns the name of this cartridge

Specified by:
getName in interface ICartridge
Returns:
the name

getDisplayName

public String getDisplayName()
Description copied from interface: ICartridge
Returns a (human readable, nice) display name for this cartridge

Specified by:
getDisplayName in interface ICartridge
Returns:
the display name

getDescription

public String getDescription()
Description copied from interface: ICartridge
Returns a description for this cartridge

Specified by:
getDescription in interface ICartridge
Returns:
the description

isDownloadable

public boolean isDownloadable()
Description copied from interface: ICartridge
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). Examples:

Specified by:
isDownloadable in interface ICartridge
Returns:
true if this is a downloadable cartridge
See Also:
ICartridge.getUrl()

getUrl

public URL getUrl()
Description copied from interface: ICartridge
Returns the url at which the code for this cartridge may get downloaded. Returns null if this is not a downloadable cartridge.

Specified by:
getUrl in interface ICartridge
Returns:
the url if downloadable cartridge or null
See Also:
ICartridge.isDownloadable()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.