public class APIResource extends AbstractOpenShiftResource implements IOpenShiftConnection
AbstractOpenShiftResource.ServiceRequest| Modifier | Constructor and Description |
|---|---|
protected |
APIResource(String login,
String password,
IRestService service,
Map<String,Link> links) |
| Modifier and Type | Method and Description |
|---|---|
IDomain |
createDomain(String id) |
void |
disconnect() |
IDomain |
getDefaultDomain() |
IDomain |
getDomain(String id) |
List<IDomain> |
getDomains()
Returns the domains associated with the current OpenShift connection.
|
List<IEmbeddableCartridge> |
getEmbeddableCartridges()
Returns the available embeddable cartridges associated with the current
OpenShift connection.
|
ExecutorService |
getExecutorService()
Returns the executor service instance that's available in this
connection.
|
protected String |
getLogin() |
protected String |
getPassword() |
String |
getServer()
Returns the server this connection is bound to.
|
List<ICartridge> |
getStandaloneCartridges()
Returns the available standalone cartridges associated with the current
OpenShift connection.
|
IUser |
getUser()
Returns the user associated with the current OpenShift connection.
|
protected boolean |
hasDomain(String name) |
void |
refresh()
Refresh the resource and its list of children resources that were previously loaded
|
protected void |
removeDomain(IDomain domain)
Called after a domain has been destroyed
|
void |
setEnableSSLCertChecks(boolean doSSLChecks)
Sets flag for enabling SSL certificate checks (i.e.
|
void |
setProxyHost(String proxyHost)
Sets the HTTP proxy hostname
|
void |
setProxyPort(String proxyPort)
Sets the HTTP proxy port
|
void |
setProxySet(boolean proxySet)
Sets flag for using an HTTP proxy
|
areLinksLoaded, getCreationLog, getLink, getService, hasCreationLogprotected final String getLogin()
protected final String getPassword()
public String getServer()
IOpenShiftConnectiongetServer in interface IOpenShiftConnectionpublic void setEnableSSLCertChecks(boolean doSSLChecks)
IOpenShiftConnectionsetEnableSSLCertChecks in interface IOpenShiftConnectionpublic void setProxySet(boolean proxySet)
IOpenShiftConnectionsetProxySet in interface IOpenShiftConnectionpublic void setProxyHost(String proxyHost)
IOpenShiftConnectionsetProxyHost in interface IOpenShiftConnectionpublic void setProxyPort(String proxyPort)
IOpenShiftConnectionsetProxyPort in interface IOpenShiftConnectionpublic IUser getUser() throws OpenShiftException
IOpenShiftConnectiongetUser in interface IOpenShiftConnectionOpenShiftExceptionpublic List<IDomain> getDomains() throws OpenShiftException
IOpenShiftConnectiongetDomains in interface IOpenShiftConnectionOpenShiftExceptionpublic IDomain getDomain(String id) throws OpenShiftException
OpenShiftExceptionpublic IDomain getDefaultDomain()
public IDomain createDomain(String id) throws OpenShiftException
OpenShiftExceptionpublic List<ICartridge> getStandaloneCartridges() throws OpenShiftException
IOpenShiftConnectiongetStandaloneCartridges in interface IOpenShiftConnectionOpenShiftExceptionpublic List<IEmbeddableCartridge> getEmbeddableCartridges() throws OpenShiftException
IOpenShiftConnectiongetEmbeddableCartridges in interface IOpenShiftConnectionOpenShiftExceptionpublic void refresh()
throws OpenShiftException
IOpenShiftResourcerefresh in interface IOpenShiftResourceOpenShiftExceptionprotected void removeDomain(IDomain domain)
domain - the domain to remove from the API's domains list.protected boolean hasDomain(String name) throws OpenShiftException
OpenShiftExceptionpublic ExecutorService getExecutorService()
IOpenShiftConnectiongetExecutorService in interface IOpenShiftConnectionExecutorService,
Executorspublic void disconnect()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.