|
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.DomainResource
public class DomainResource
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource |
---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
Constructor Summary | |
---|---|
protected |
DomainResource(DomainResourceDTO domainDTO,
APIResource api)
|
protected |
DomainResource(String namespace,
String suffix,
Map<String,Link> links,
Messages messages,
APIResource api)
|
Method Summary | |
---|---|
boolean |
canCreateApplicationWithEnvironmentVariables()
Returns true if this domain can create application with environment variables. |
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge)
|
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
ApplicationScale scale)
|
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
ApplicationScale scale,
IGearProfile gearProfile)
|
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
ApplicationScale scale,
IGearProfile gearProfile,
String initialGitUrl)
Creates a new application with the given name and the given cartridge/framework. |
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
ApplicationScale scale,
IGearProfile gearProfile,
String initialGitUrl,
int timeout,
IEmbeddableCartridge... cartridges)
Creates a new application with the given name and the given cartridge/framework. |
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
ApplicationScale scale,
IGearProfile gearProfile,
String initialGitUrl,
int timeout,
Map<String,String> environmentVariables,
IEmbeddableCartridge... cartridges)
Creates a new application with the given name and the given cartridge/framework. |
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
ApplicationScale scale,
String initialGitUrl)
|
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
IGearProfile gearProfile)
|
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
IGearProfile gearProfile,
String initialGitUrl)
|
IApplication |
createApplication(String name,
IStandaloneCartridge cartridge,
String initialGitUrl)
|
void |
destroy()
Destroys the current domain. |
void |
destroy(boolean force)
Destroys the current domain, using the 'force' parameter to also destroy the domain applications. |
boolean |
equals(Object obj)
|
IApplication |
getApplicationByName(String name)
Returns the application identified by the given name. |
List<IApplication> |
getApplications()
|
List<IApplication> |
getApplicationsByCartridge(IStandaloneCartridge cartridge)
|
List<String> |
getAvailableCartridgeNames()
Returns the list of cartridges that can be used to create a new application. |
List<IGearProfile> |
getAvailableGearProfiles()
Returns the list of available gear size that the user can choose when creating a new application (application's gear size can't be changed after creation). |
String |
getId()
|
protected List<IApplication> |
getOrLoadApplications()
|
String |
getSuffix()
The domain suffix is the host part eg: 'rhcloud.com') |
IUser |
getUser()
Returns the currently connected user that manages this domain. |
boolean |
hasApplicationByCartridge(IStandaloneCartridge cartridge)
|
boolean |
hasApplicationByName(String name)
Returns true if the application identified by the given name exists in the domain. |
int |
hashCode()
|
void |
refresh()
Refresh the resource and its list of children resources that were previously loaded |
protected void |
removeApplication(IApplication application)
|
void |
rename(String id)
Rename the current domain with the given id.... |
String |
toString()
|
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 DomainResource(String namespace, String suffix, Map<String,Link> links, Messages messages, APIResource api)
protected DomainResource(DomainResourceDTO domainDTO, APIResource api)
Method Detail |
---|
public String getId()
getId
in interface IDomain
public String getSuffix()
IDomain
getSuffix
in interface IDomain
public void rename(String id) throws OpenShiftException
IDomain
rename
in interface IDomain
OpenShiftException
public IUser getUser() throws OpenShiftException
IDomain
getUser
in interface IDomain
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge) throws OpenShiftException
createApplication
in interface IDomain
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale) throws OpenShiftException
createApplication
in interface IDomain
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, String initialGitUrl) throws OpenShiftException
createApplication
in interface IDomain
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale, String initialGitUrl) throws OpenShiftException
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, IGearProfile gearProfile) throws OpenShiftException
createApplication
in interface IDomain
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, IGearProfile gearProfile, String initialGitUrl) throws OpenShiftException
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale, IGearProfile gearProfile) throws OpenShiftException
createApplication
in interface IDomain
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale, IGearProfile gearProfile, String initialGitUrl) throws OpenShiftException
IDomain
createApplication
in interface IDomain
name
- the name of the applicationcartridge
- the cartridge (the application type, ex. jbossas-7,
jbossews-2, php.5.2, etc.scale
- or null (will use default on openshift, ie, false)gearProfile
- ("small", "micro", "medium", "large", "exlarge", "jumbo") or
null (will use default on openshift, ie, 'small')initialGitUrl
- the git url for the initial template app to be used
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale, IGearProfile gearProfile, String initialGitUrl, int timeout, IEmbeddableCartridge... cartridges) throws OpenShiftException
IDomain
createApplication
in interface IDomain
name
- the name of the applicationcartridge
- the cartridge (the application type, ex. jbossas-7,
jbossews-2, php.5.2, etc.scale
- or null (will use default on openshift, ie, false)gearProfile
- ("small", "micro", "medium", "large", "exlarge", "jumbo") or
null (will use default on openshift, ie, 'small')initialGitUrl
- the git url for the initial template app to be usedtimeout
- the timeout value in millisecondscartridges
- the embeddable cartridges that shall get added to the new
application (the add-on cartridges mysql, mongodb, postgresql,
etc.)
OpenShiftException
public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale, IGearProfile gearProfile, String initialGitUrl, int timeout, Map<String,String> environmentVariables, IEmbeddableCartridge... cartridges) throws OpenShiftException
IDomain
createApplication
in interface IDomain
name
- the name of the applicationcartridge
- the cartridge (the application type, ex. jbossas-7,
jbossews-2, php.5.2, etc.scale
- or null (will use default on openshift, ie, false)gearProfile
- ("small", "micro", "medium", "large", "exlarge", "jumbo") or
null (will use default on openshift, ie, 'small')initialGitUrl
- the git url for the initial template app to be usedtimeout
- the timeout value in millisecondsenvironmentVariables
- the environment variables to be added to the applicationcartridges
- the embeddable cartridges that shall get added to the new
application (the add-on cartridges mysql, mongodb, postgresql,
etc.)
OpenShiftException
public boolean hasApplicationByName(String name) throws OpenShiftException
IDomain
hasApplicationByName
in interface IDomain
OpenShiftException
public IApplication getApplicationByName(String name) throws OpenShiftException
IDomain
getApplicationByName
in interface IDomain
OpenShiftException
public List<IApplication> getApplicationsByCartridge(IStandaloneCartridge cartridge) throws OpenShiftException
getApplicationsByCartridge
in interface IDomain
OpenShiftException
public boolean hasApplicationByCartridge(IStandaloneCartridge cartridge) throws OpenShiftException
hasApplicationByCartridge
in interface IDomain
OpenShiftException
public boolean canCreateApplicationWithEnvironmentVariables()
IDomain
true
if this domain can create application with environment variables. Returns false
otherwise.
canCreateApplicationWithEnvironmentVariables
in interface IDomain
IApplication.getEnvironmentVariables()
public void destroy() throws OpenShiftException
IDomain
destroy
in interface IDomain
OpenShiftException
public void destroy(boolean force) throws OpenShiftException
IDomain
destroy
in interface IDomain
OpenShiftException
public List<IApplication> getApplications() throws OpenShiftException
getApplications
in interface IDomain
OpenShiftException
protected List<IApplication> getOrLoadApplications() throws OpenShiftException
OpenShiftException
protected void removeApplication(IApplication application)
public List<String> getAvailableCartridgeNames() throws OpenShiftException
IDomain
getAvailableCartridgeNames
in interface IDomain
OpenShiftException
public List<IGearProfile> getAvailableGearProfiles() throws OpenShiftException
IDomain
getAvailableGearProfiles
in interface IDomain
OpenShiftException
public void refresh() throws OpenShiftException
IOpenShiftResource
refresh
in interface IOpenShiftResource
OpenShiftException
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
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 |