public class CloudFoundryClient extends Object implements CloudFoundryOperations
Constructor and Description |
---|
CloudFoundryClient(CloudControllerClient cc)
Construct a client with a pre-configured CloudControllerClient
|
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl)
Construct client without a default org and space.
|
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
boolean trustSelfSignedCerts) |
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
CloudSpace sessionSpace)
Construct a client with a default CloudSpace.
|
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
CloudSpace sessionSpace,
boolean trustSelfSignedCerts) |
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
CloudSpace sessionSpace,
HttpProxyConfiguration httpProxyConfiguration) |
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
CloudSpace sessionSpace,
HttpProxyConfiguration httpProxyConfiguration,
boolean trustSelfSignedCerts) |
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
HttpProxyConfiguration httpProxyConfiguration) |
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
HttpProxyConfiguration httpProxyConfiguration,
boolean trustSelfSignedCerts) |
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
String orgName,
String spaceName)
Construct a client with a default space name and org name.
|
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
String orgName,
String spaceName,
boolean trustSelfSignedCerts) |
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
String orgName,
String spaceName,
HttpProxyConfiguration httpProxyConfiguration) |
CloudFoundryClient(CloudCredentials credentials,
URL cloudControllerUrl,
String orgName,
String spaceName,
HttpProxyConfiguration httpProxyConfiguration,
boolean trustSelfSignedCerts) |
CloudFoundryClient(URL cloudControllerUrl)
Construct client for anonymous user.
|
CloudFoundryClient(URL cloudControllerUrl,
boolean trustSelfSignedCerts) |
CloudFoundryClient(URL cloudControllerUrl,
HttpProxyConfiguration httpProxyConfiguration) |
CloudFoundryClient(URL cloudControllerUrl,
HttpProxyConfiguration httpProxyConfiguration,
boolean trustSelfSignedCerts) |
Modifier and Type | Method and Description |
---|---|
void |
addDomain(String domainName)
Add a private domain in the current organization.
|
void |
addRoute(String host,
String domainName)
Register a new route to the a domain.
|
void |
bindService(String appName,
String serviceName)
Associate (provision) a service with an application.
|
void |
createApplication(String appName,
Staging staging,
Integer disk,
Integer memory,
List<String> uris,
List<String> serviceNames)
Create application.
|
void |
createApplication(String appName,
Staging staging,
Integer memory,
List<String> uris,
List<String> serviceNames)
Create application.
|
void |
createQuota(CloudQuota quota)
Create quota
|
void |
createService(CloudService service)
Create a service.
|
void |
createServiceBroker(CloudServiceBroker serviceBroker)
Create a service broker.
|
void |
createSpace(String spaceName)
Create a space with the specified name
|
void |
createUserProvidedService(CloudService service,
Map<String,Object> credentials)
Create a user-provided service.
|
void |
createUserProvidedService(CloudService service,
Map<String,Object> credentials,
String syslogDrainUrl)
Create a user-provided service for logging.
|
void |
debugApplication(String appName,
CloudApplication.DebugMode mode)
Debug application.
|
void |
deleteAllApplications()
Delete all applications.
|
void |
deleteAllServices()
Delete all services.
|
void |
deleteApplication(String appName)
Delete application.
|
void |
deleteDomain(String domainName)
Delete a private domain in the current organization.
|
List<CloudRoute> |
deleteOrphanedRoutes()
Delete routes that do not have any application which is assigned to them.
|
void |
deleteQuota(String quotaName)
Delete quota by name
|
void |
deleteRoute(String host,
String domainName)
Delete a registered route from the space of the current session.
|
void |
deleteService(String service)
Delete cloud service.
|
void |
deleteServiceBroker(String name)
Delete a service broker.
|
void |
deleteSpace(String spaceName)
Delete a space with the specified name
|
CloudApplication |
getApplication(String appName)
Get cloud application with the specified name.
|
CloudApplication |
getApplication(UUID appGuid) |
InstancesInfo |
getApplicationInstances(CloudApplication app)
Get application instances info for application.
|
InstancesInfo |
getApplicationInstances(String appName)
Get application instances info for application.
|
List<CloudApplication> |
getApplications()
Get all cloud applications.
|
ApplicationStats |
getApplicationStats(String appName)
Get application stats for the app with the specified name.
|
URL |
getCloudControllerUrl()
Get the URL used for the cloud controller.
|
CloudInfo |
getCloudInfo()
Get CloudInfo for the current cloud.
|
CrashesInfo |
getCrashes(String appName)
Get crashes info for application.
|
Map<String,String> |
getCrashLogs(String appName)
Deprecated.
|
CloudDomain |
getDefaultDomain()
Gets the default domain for the current org, which is the first shared domain.
|
List<CloudDomain> |
getDomains()
Get list of all domain shared and private domains.
|
List<CloudDomain> |
getDomainsForOrg()
Get list of all domain registered for the current organization.
|
String |
getFile(String appName,
int instanceIndex,
String filePath)
Get file from the deployed application.
|
String |
getFile(String appName,
int instanceIndex,
String filePath,
int startPosition)
Get a the content, starting at a specific position, of a file from the deployed application.
|
String |
getFile(String appName,
int instanceIndex,
String filePath,
int startPosition,
int endPosition)
Get a range of content of a file from the deployed application.
|
String |
getFileTail(String appName,
int instanceIndex,
String filePath,
int length)
Get a the last bytes, with length as specified, of content of a file from the deployed application.
|
Map<String,String> |
getLogs(String appName)
Deprecated.
|
List<CloudOrganization> |
getOrganizations()
Get list of CloudOrganizations for the current cloud.
|
CloudOrganization |
getOrgByName(String orgName,
boolean required) |
List<CloudDomain> |
getPrivateDomains()
Get list of all private domains.
|
CloudQuota |
getQuotaByName(String quotaName,
boolean required)
Get quota by name
|
List<CloudQuota> |
getQuotas()
Get quota definitions
|
List<ApplicationLog> |
getRecentLogs(String appName)
Stream recent log entries.
|
List<CloudRoute> |
getRoutes(String domainName)
Get the info for all routes for a domain.
|
CloudService |
getService(String service)
Get cloud service.
|
CloudServiceBroker |
getServiceBroker(String name)
Get a service broker.
|
List<CloudServiceBroker> |
getServiceBrokers()
Get all service brokers.
|
List<CloudServiceOffering> |
getServiceOfferings()
Get all service offerings.
|
List<CloudService> |
getServices()
Get list of cloud services.
|
List<CloudDomain> |
getSharedDomains()
Get list of all shared domains.
|
CloudSpace |
getSpace(String spaceName)
Get space name with the specified name.
|
List<CloudSpace> |
getSpaces()
Get list of CloudSpaces for the current cloud.
|
CloudStack |
getStack(String name)
Get a stack by name.
|
List<CloudStack> |
getStacks()
Get the list of stacks available for staging applications.
|
String |
getStagingLogs(StartingInfo info,
int offset)
Get the staging log while an application is starting.
|
org.springframework.security.oauth2.common.OAuth2AccessToken |
login()
Login using the credentials already set for the client.
|
void |
logout()
Logout closing the current session.
|
void |
openFile(String appName,
int instanceIndex,
String filePath,
ClientHttpResponseCallback callback) |
void |
register(String email,
String password)
Register new user account with the provided credentials.
|
void |
registerRestLogListener(RestLogCallback callBack)
Register a new RestLogCallback
|
void |
removeDomain(String domainName)
Delete a private domain in the current organization.
|
void |
rename(String appName,
String newName)
Rename an application.
|
StartingInfo |
restartApplication(String appName)
Restart application.
|
void |
setQuotaToOrg(String orgName,
String quotaName)
Set quota to organization
|
void |
setResponseErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler)
Override the default REST response error handler with a custom error handler.
|
StartingInfo |
startApplication(String appName)
Start application.
|
void |
stopApplication(String appName)
Stop application.
|
StreamingLogToken |
streamLogs(String appName,
ApplicationLogListener listener)
Stream application logs produced after this method is called.
|
void |
unbindService(String appName,
String serviceName)
Un-associate (unprovision) a service from an application.
|
void |
unregister()
Unregister and log out the currently logged in user
|
void |
unRegisterRestLogListener(RestLogCallback callBack)
Un-register a RestLogCallback
|
void |
updateApplicationDiskQuota(String appName,
int disk)
Update application disk quota.
|
void |
updateApplicationEnv(String appName,
List<String> env)
Update application env using a list of strings each with one environment setting.
|
void |
updateApplicationEnv(String appName,
Map<String,String> env)
Update application env using a map where the key specifies the name of the environment variable
and the value the value of the environment variable..
|
void |
updateApplicationInstances(String appName,
int instances)
Update application instances.
|
void |
updateApplicationMemory(String appName,
int memory)
Update application memory.
|
void |
updateApplicationServices(String appName,
List<String> services)
Update application services.
|
void |
updateApplicationStaging(String appName,
Staging staging)
Update application staging information.
|
void |
updateApplicationUris(String appName,
List<String> uris)
Update application URIs.
|
void |
updatePassword(CloudCredentials credentials,
String newPassword)
Update the password for the logged in user using
the username/old_password provided in the credentials.
|
void |
updatePassword(String newPassword)
Update the password for the logged in user.
|
void |
updateQuota(CloudQuota quota,
String name)
Update Quota definition
|
void |
updateServiceBroker(CloudServiceBroker serviceBroker)
Update a service broker (unchanged forces catalog refresh).
|
void |
updateServicePlanVisibilityForBroker(String name,
boolean visibility)
Service plans are private by default when a service broker's catalog is
fetched/updated.
|
void |
uploadApplication(String appName,
ApplicationArchive archive)
Upload an application to Cloud Foundry.
|
void |
uploadApplication(String appName,
ApplicationArchive archive,
UploadStatusCallback callback)
Upload an application to Cloud Foundry.
|
void |
uploadApplication(String appName,
File file)
Upload an application to Cloud Foundry.
|
void |
uploadApplication(String appName,
File file,
UploadStatusCallback callback)
Upload an application to Cloud Foundry.
|
void |
uploadApplication(String appName,
String file)
Upload an application to Cloud Foundry.
|
void |
uploadApplication(String appName,
String fileName,
InputStream inputStream)
Upload an application to Cloud Foundry.
|
void |
uploadApplication(String appName,
String fileName,
InputStream inputStream,
UploadStatusCallback callback)
Upload an application to Cloud Foundry.
|
public CloudFoundryClient(URL cloudControllerUrl)
public CloudFoundryClient(URL cloudControllerUrl, boolean trustSelfSignedCerts)
public CloudFoundryClient(URL cloudControllerUrl, HttpProxyConfiguration httpProxyConfiguration)
public CloudFoundryClient(URL cloudControllerUrl, HttpProxyConfiguration httpProxyConfiguration, boolean trustSelfSignedCerts)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, boolean trustSelfSignedCerts)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, HttpProxyConfiguration httpProxyConfiguration)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, HttpProxyConfiguration httpProxyConfiguration, boolean trustSelfSignedCerts)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, CloudSpace sessionSpace)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, CloudSpace sessionSpace, boolean trustSelfSignedCerts)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, CloudSpace sessionSpace, HttpProxyConfiguration httpProxyConfiguration)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, CloudSpace sessionSpace, HttpProxyConfiguration httpProxyConfiguration, boolean trustSelfSignedCerts)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, String orgName, String spaceName)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, String orgName, String spaceName, boolean trustSelfSignedCerts)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, String orgName, String spaceName, HttpProxyConfiguration httpProxyConfiguration)
public CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, String orgName, String spaceName, HttpProxyConfiguration httpProxyConfiguration, boolean trustSelfSignedCerts)
public CloudFoundryClient(CloudControllerClient cc)
public void setResponseErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler)
CloudFoundryOperations
setResponseErrorHandler
in interface CloudFoundryOperations
public URL getCloudControllerUrl()
CloudFoundryOperations
getCloudControllerUrl
in interface CloudFoundryOperations
public CloudInfo getCloudInfo()
CloudFoundryOperations
getCloudInfo
in interface CloudFoundryOperations
public List<CloudSpace> getSpaces()
CloudFoundryOperations
getSpaces
in interface CloudFoundryOperations
public List<CloudOrganization> getOrganizations()
CloudFoundryOperations
getOrganizations
in interface CloudFoundryOperations
public void register(String email, String password)
CloudFoundryOperations
register
in interface CloudFoundryOperations
email
- the email accountpassword
- the passwordpublic void updatePassword(String newPassword)
CloudFoundryOperations
updatePassword
in interface CloudFoundryOperations
newPassword
- the new passwordpublic void updatePassword(CloudCredentials credentials, String newPassword)
CloudFoundryOperations
updatePassword
in interface CloudFoundryOperations
credentials
- current credentialsnewPassword
- the new passwordpublic void unregister()
CloudFoundryOperations
unregister
in interface CloudFoundryOperations
public org.springframework.security.oauth2.common.OAuth2AccessToken login()
CloudFoundryOperations
login
in interface CloudFoundryOperations
public void logout()
CloudFoundryOperations
logout
in interface CloudFoundryOperations
public List<CloudApplication> getApplications()
CloudFoundryOperations
getApplications
in interface CloudFoundryOperations
public CloudApplication getApplication(String appName)
CloudFoundryOperations
getApplication
in interface CloudFoundryOperations
appName
- name of the apppublic CloudApplication getApplication(UUID appGuid)
public ApplicationStats getApplicationStats(String appName)
CloudFoundryOperations
getApplicationStats
in interface CloudFoundryOperations
appName
- name of the apppublic void createApplication(String appName, Staging staging, Integer memory, List<String> uris, List<String> serviceNames)
CloudFoundryOperations
createApplication
in interface CloudFoundryOperations
appName
- application namestaging
- staging infomemory
- memory to use in MBuris
- list of URIs for the appserviceNames
- list of service names to bind to apppublic void createApplication(String appName, Staging staging, Integer disk, Integer memory, List<String> uris, List<String> serviceNames)
CloudFoundryOperations
createApplication
in interface CloudFoundryOperations
appName
- application namestaging
- staging infodisk
- disk quota to use in MBmemory
- memory to use in MBuris
- list of URIs for the appserviceNames
- list of service names to bind to apppublic void createService(CloudService service)
CloudFoundryOperations
createService
in interface CloudFoundryOperations
service
- cloud service infopublic void createUserProvidedService(CloudService service, Map<String,Object> credentials)
CloudFoundryOperations
createUserProvidedService
in interface CloudFoundryOperations
service
- cloud service infocredentials
- the user-provided service credentialspublic void createUserProvidedService(CloudService service, Map<String,Object> credentials, String syslogDrainUrl)
CloudFoundryOperations
createUserProvidedService
in interface CloudFoundryOperations
service
- cloud service infocredentials
- the user-provided service credentialssyslogDrainUrl
- for a logging servicepublic List<CloudRoute> deleteOrphanedRoutes()
CloudFoundryOperations
deleteOrphanedRoutes
in interface CloudFoundryOperations
public void uploadApplication(String appName, String file) throws IOException
CloudFoundryOperations
uploadApplication
in interface CloudFoundryOperations
appName
- application namefile
- path to the application archive or folderIOException
public void uploadApplication(String appName, File file) throws IOException
CloudFoundryOperations
uploadApplication
in interface CloudFoundryOperations
appName
- the application namefile
- the application archive or folderIOException
public void uploadApplication(String appName, File file, UploadStatusCallback callback) throws IOException
CloudFoundryOperations
uploadApplication
in interface CloudFoundryOperations
appName
- the application namefile
- the application archivecallback
- a callback interface used to provide progress information or nullIOException
public void uploadApplication(String appName, String fileName, InputStream inputStream) throws IOException
CloudFoundryOperations
uploadApplication
in interface CloudFoundryOperations
appName
- the application namefileName
- the logical name of the application fileinputStream
- the InputStream to read fromIOException
public void uploadApplication(String appName, String fileName, InputStream inputStream, UploadStatusCallback callback) throws IOException
CloudFoundryOperations
uploadApplication
in interface CloudFoundryOperations
appName
- the application namefileName
- the logical name of the application fileinputStream
- the InputStream to read fromcallback
- a callback interface used to provide progress information or nullIOException
public void uploadApplication(String appName, ApplicationArchive archive) throws IOException
CloudFoundryOperations
uploadApplication
in interface CloudFoundryOperations
appName
- the application namearchive
- the application archiveIOException
public void uploadApplication(String appName, ApplicationArchive archive, UploadStatusCallback callback) throws IOException
CloudFoundryOperations
uploadApplication
in interface CloudFoundryOperations
appName
- the application namearchive
- the application archivecallback
- a callback interface used to provide progress information or nullIOException
public StartingInfo startApplication(String appName)
CloudFoundryOperations
startApplication
in interface CloudFoundryOperations
appName
- name of applicationpublic void debugApplication(String appName, CloudApplication.DebugMode mode)
CloudFoundryOperations
debugApplication
in interface CloudFoundryOperations
appName
- name of applicationmode
- debug mode infopublic void stopApplication(String appName)
CloudFoundryOperations
stopApplication
in interface CloudFoundryOperations
appName
- name of applicationpublic StartingInfo restartApplication(String appName)
CloudFoundryOperations
restartApplication
in interface CloudFoundryOperations
appName
- name of applicationpublic void deleteApplication(String appName)
CloudFoundryOperations
deleteApplication
in interface CloudFoundryOperations
appName
- name of applicationpublic void deleteAllApplications()
CloudFoundryOperations
deleteAllApplications
in interface CloudFoundryOperations
public void deleteAllServices()
CloudFoundryOperations
deleteAllServices
in interface CloudFoundryOperations
public void updateApplicationDiskQuota(String appName, int disk)
CloudFoundryOperations
updateApplicationDiskQuota
in interface CloudFoundryOperations
appName
- name of applicationdisk
- new disk setting in MBpublic void updateApplicationMemory(String appName, int memory)
CloudFoundryOperations
updateApplicationMemory
in interface CloudFoundryOperations
appName
- name of applicationmemory
- new memory setting in MBpublic void updateApplicationInstances(String appName, int instances)
CloudFoundryOperations
updateApplicationInstances
in interface CloudFoundryOperations
appName
- name of applicationinstances
- number of instances to usepublic void updateApplicationServices(String appName, List<String> services)
CloudFoundryOperations
updateApplicationServices
in interface CloudFoundryOperations
appName
- name of appplicationservices
- list of services that should be bound to apppublic void updateApplicationStaging(String appName, Staging staging)
CloudFoundryOperations
updateApplicationStaging
in interface CloudFoundryOperations
appName
- name of appplicationstaging
- staging information for the apppublic void updateApplicationUris(String appName, List<String> uris)
CloudFoundryOperations
updateApplicationUris
in interface CloudFoundryOperations
appName
- name of applicationuris
- list of URIs the app should usepublic void updateApplicationEnv(String appName, Map<String,String> env)
CloudFoundryOperations
updateApplicationEnv
in interface CloudFoundryOperations
appName
- name of applicationenv
- map of environment settingspublic void updateApplicationEnv(String appName, List<String> env)
CloudFoundryOperations
updateApplicationEnv
in interface CloudFoundryOperations
appName
- name of applicationenv
- list of environment settingspublic Map<String,String> getLogs(String appName)
CloudFoundryOperations
getLogs
in interface CloudFoundryOperations
appName
- name of the applicationpublic StreamingLogToken streamLogs(String appName, ApplicationLogListener listener)
CloudFoundryOperations
streamLogs
in interface CloudFoundryOperations
appName
- the name of the applicationlistener
- listener object to be notifiedpublic List<ApplicationLog> getRecentLogs(String appName)
CloudFoundryOperations
getRecentLogs
in interface CloudFoundryOperations
appName
- the name of the applicationpublic Map<String,String> getCrashLogs(String appName)
CloudFoundryOperations
getCrashLogs
in interface CloudFoundryOperations
appName
- name of the applicationpublic String getStagingLogs(StartingInfo info, int offset)
CloudFoundryOperations
getStagingLogs
in interface CloudFoundryOperations
info
- starting information containing staging log file URL. Obtained
after starting an application.offset
- starting position from where content should be retrieved.public String getFile(String appName, int instanceIndex, String filePath)
CloudFoundryOperations
getFile
in interface CloudFoundryOperations
appName
- name of the applicationinstanceIndex
- instance indexfilePath
- path to the filepublic String getFile(String appName, int instanceIndex, String filePath, int startPosition)
CloudFoundryOperations
getFile
in interface CloudFoundryOperations
appName
- name of the applicationinstanceIndex
- instance indexfilePath
- path to the filestartPosition
- the starting position of the file contents (inclusive)public String getFile(String appName, int instanceIndex, String filePath, int startPosition, int endPosition)
CloudFoundryOperations
getFile
in interface CloudFoundryOperations
appName
- name of the applicationinstanceIndex
- instance indexfilePath
- path to the filestartPosition
- the starting position of the file contents (inclusive)endPosition
- the ending position of the file contents (exclusive)public void openFile(String appName, int instanceIndex, String filePath, ClientHttpResponseCallback callback)
public String getFileTail(String appName, int instanceIndex, String filePath, int length)
CloudFoundryOperations
getFileTail
in interface CloudFoundryOperations
appName
- name of the applicationinstanceIndex
- instance indexfilePath
- path to the filelength
- the length of the file contents to retrievepublic List<CloudService> getServices()
CloudFoundryOperations
getServices
in interface CloudFoundryOperations
public List<CloudServiceBroker> getServiceBrokers()
CloudFoundryOperations
getServiceBrokers
in interface CloudFoundryOperations
public CloudServiceBroker getServiceBroker(String name)
CloudFoundryOperations
getServiceBroker
in interface CloudFoundryOperations
name
- the service broker namepublic void createServiceBroker(CloudServiceBroker serviceBroker)
CloudFoundryOperations
createServiceBroker
in interface CloudFoundryOperations
serviceBroker
- cloud service broker infopublic void updateServiceBroker(CloudServiceBroker serviceBroker)
CloudFoundryOperations
updateServiceBroker
in interface CloudFoundryOperations
serviceBroker
- cloud service broker infopublic void deleteServiceBroker(String name)
CloudFoundryOperations
deleteServiceBroker
in interface CloudFoundryOperations
name
- the service broker namepublic void updateServicePlanVisibilityForBroker(String name, boolean visibility)
CloudFoundryOperations
updateServicePlanVisibilityForBroker
in interface CloudFoundryOperations
name
- the service broker namevisibility
- true for public, false for privatepublic CloudService getService(String service)
CloudFoundryOperations
getService
in interface CloudFoundryOperations
service
- name of servicepublic void deleteService(String service)
CloudFoundryOperations
deleteService
in interface CloudFoundryOperations
service
- name of servicepublic List<CloudServiceOffering> getServiceOfferings()
CloudFoundryOperations
getServiceOfferings
in interface CloudFoundryOperations
public void bindService(String appName, String serviceName)
CloudFoundryOperations
bindService
in interface CloudFoundryOperations
appName
- the application nameserviceName
- the service namepublic void unbindService(String appName, String serviceName)
CloudFoundryOperations
unbindService
in interface CloudFoundryOperations
appName
- the application nameserviceName
- the service namepublic InstancesInfo getApplicationInstances(String appName)
CloudFoundryOperations
getApplicationInstances
in interface CloudFoundryOperations
appName
- name of application.public InstancesInfo getApplicationInstances(CloudApplication app)
CloudFoundryOperations
getApplicationInstances
in interface CloudFoundryOperations
app
- the application.public CrashesInfo getCrashes(String appName)
CloudFoundryOperations
getCrashes
in interface CloudFoundryOperations
appName
- name of applicationpublic List<CloudStack> getStacks()
CloudFoundryOperations
getStacks
in interface CloudFoundryOperations
public CloudStack getStack(String name)
CloudFoundryOperations
getStack
in interface CloudFoundryOperations
name
- the name of the stack to getpublic void rename(String appName, String newName)
CloudFoundryOperations
rename
in interface CloudFoundryOperations
appName
- the current namenewName
- the new namepublic List<CloudDomain> getDomainsForOrg()
CloudFoundryOperations
getDomainsForOrg
in interface CloudFoundryOperations
public List<CloudDomain> getPrivateDomains()
CloudFoundryOperations
getPrivateDomains
in interface CloudFoundryOperations
public List<CloudDomain> getSharedDomains()
CloudFoundryOperations
getSharedDomains
in interface CloudFoundryOperations
public List<CloudDomain> getDomains()
CloudFoundryOperations
getDomains
in interface CloudFoundryOperations
public CloudDomain getDefaultDomain()
CloudFoundryOperations
getDefaultDomain
in interface CloudFoundryOperations
public void addDomain(String domainName)
CloudFoundryOperations
addDomain
in interface CloudFoundryOperations
domainName
- the domain to addpublic void deleteDomain(String domainName)
CloudFoundryOperations
deleteDomain
in interface CloudFoundryOperations
domainName
- the domain to deletepublic void removeDomain(String domainName)
CloudFoundryOperations
removeDomain
in interface CloudFoundryOperations
domainName
- the domain to removepublic List<CloudRoute> getRoutes(String domainName)
CloudFoundryOperations
getRoutes
in interface CloudFoundryOperations
domainName
- the domain the routes belong topublic void addRoute(String host, String domainName)
CloudFoundryOperations
addRoute
in interface CloudFoundryOperations
host
- the host of the route to registerdomainName
- the domain of the route to registerpublic void deleteRoute(String host, String domainName)
CloudFoundryOperations
deleteRoute
in interface CloudFoundryOperations
host
- the host of the route to deletedomainName
- the domain of the route to deletepublic void registerRestLogListener(RestLogCallback callBack)
CloudFoundryOperations
registerRestLogListener
in interface CloudFoundryOperations
callBack
- the callback to be registeredpublic void unRegisterRestLogListener(RestLogCallback callBack)
CloudFoundryOperations
unRegisterRestLogListener
in interface CloudFoundryOperations
callBack
- the callback to be un-registeredpublic CloudOrganization getOrgByName(String orgName, boolean required)
public List<CloudQuota> getQuotas()
CloudFoundryOperations
getQuotas
in interface CloudFoundryOperations
public CloudQuota getQuotaByName(String quotaName, boolean required)
CloudFoundryOperations
getQuotaByName
in interface CloudFoundryOperations
public void setQuotaToOrg(String orgName, String quotaName)
CloudFoundryOperations
setQuotaToOrg
in interface CloudFoundryOperations
public void createQuota(CloudQuota quota)
CloudFoundryOperations
createQuota
in interface CloudFoundryOperations
public void deleteQuota(String quotaName)
CloudFoundryOperations
deleteQuota
in interface CloudFoundryOperations
public void updateQuota(CloudQuota quota, String name)
CloudFoundryOperations
updateQuota
in interface CloudFoundryOperations
public void createSpace(String spaceName)
CloudFoundryOperations
createSpace
in interface CloudFoundryOperations
public void deleteSpace(String spaceName)
CloudFoundryOperations
deleteSpace
in interface CloudFoundryOperations
spaceName
- name of the spacepublic CloudSpace getSpace(String spaceName)
CloudFoundryOperations
getSpace
in interface CloudFoundryOperations
spaceName
- name of the spaceCopyright © 2014. All rights reserved.