org.cloudfoundry.client.lib
Class CloudFoundryClient

java.lang.Object
  extended by org.cloudfoundry.client.lib.CloudFoundryClient
All Implemented Interfaces:
CloudFoundryOperations

public class CloudFoundryClient
extends Object
implements CloudFoundryOperations

A Java client to exercise the Cloud Foundry API.

Author:
Ramnivas Laddad, A.B.Srinivasan, Jennifer Hickey, Dave Syer, Thomas Risberg

Constructor Summary
CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl)
           
CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, CloudSpace sessionSpace)
           
CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, CloudSpace sessionSpace, HttpProxyConfiguration httpProxyConfiguration)
           
CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, HttpProxyConfiguration httpProxyConfiguration)
           
CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, String orgName, String spaceName)
           
CloudFoundryClient(CloudCredentials credentials, URL cloudControllerUrl, String orgName, String spaceName, HttpProxyConfiguration httpProxyConfiguration)
           
CloudFoundryClient(URL cloudControllerUrl)
          Construct client for anonymous user.
CloudFoundryClient(URL cloudControllerUrl, HttpProxyConfiguration httpProxyConfiguration)
          Constructors to use with an http proxy configuration.
 
Method Summary
 void addDomain(String domainName)
          Add domain to the current space of this session.
 void addRoute(String host, String domainName)
          Register a new route to the space of the current session.
 void bindService(String appName, String serviceName)
          Associate (provision) a service with an application.
 void createApplication(String appName, Staging staging, int memory, List<String> uris, List<String> serviceNames)
          Create application.
 void createService(CloudService service)
          Create a service.
 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 domain registered to the current organization of this session.
 void deleteRoute(String host, String domainName)
          Delete a registered route from the space of the current session.
 void deleteService(String service)
          Delete cloud service.
 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.
 int[] getApplicationMemoryChoices()
          Get choices for application memory quota.
 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)
          Get logs from most recent crash of the deployed application.
 List<CloudDomain> getDomains()
          Get list of all domain registered for the given space.
 List<CloudDomain> getDomainsForOrg()
          Get list of all domain registered for the current organization of this session.
 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)
          Get logs from the deployed application.
 List<CloudOrganization> getOrganizations()
          Get list of CloudOrganizations for the current cloud.
 List<CloudRoute> getRoutes(String domainName)
          Get the info for all routes for a domain belonging to the current space of this session.
 CloudService getService(String service)
          Get cloud service.
 List<CloudServiceOffering> getServiceOfferings()
          Get all service offerings.
 List<CloudService> getServices()
          Get list of cloud services.
 List<CloudSpace> getSpaces()
          Get list of CloudSpaces for the current cloud.
 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 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)
          Remove a domain from the space of the current session.
 void rename(String appName, String newName)
          Rename an application.
 StartingInfo restartApplication(String appName)
          Restart application.
 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.
 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 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 updateHttpProxyConfiguration(HttpProxyConfiguration httpProxyConfiguration)
          Update http proxy configuration settings.
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudFoundryClient

public CloudFoundryClient(URL cloudControllerUrl)
Construct client for anonymous user. Useful only to get to the '/info' endpoint.


CloudFoundryClient

public CloudFoundryClient(CloudCredentials credentials,
                          URL cloudControllerUrl)

CloudFoundryClient

public CloudFoundryClient(CloudCredentials credentials,
                          URL cloudControllerUrl,
                          CloudSpace sessionSpace)

CloudFoundryClient

public CloudFoundryClient(CloudCredentials credentials,
                          URL cloudControllerUrl,
                          String orgName,
                          String spaceName)

CloudFoundryClient

public CloudFoundryClient(URL cloudControllerUrl,
                          HttpProxyConfiguration httpProxyConfiguration)
Constructors to use with an http proxy configuration.


CloudFoundryClient

public CloudFoundryClient(CloudCredentials credentials,
                          URL cloudControllerUrl,
                          HttpProxyConfiguration httpProxyConfiguration)

CloudFoundryClient

public CloudFoundryClient(CloudCredentials credentials,
                          URL cloudControllerUrl,
                          CloudSpace sessionSpace,
                          HttpProxyConfiguration httpProxyConfiguration)

CloudFoundryClient

public CloudFoundryClient(CloudCredentials credentials,
                          URL cloudControllerUrl,
                          String orgName,
                          String spaceName,
                          HttpProxyConfiguration httpProxyConfiguration)
Method Detail

setResponseErrorHandler

public void setResponseErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler)
Description copied from interface: CloudFoundryOperations
Override the default REST response error handler with a custom error handler.

Specified by:
setResponseErrorHandler in interface CloudFoundryOperations

getCloudControllerUrl

public URL getCloudControllerUrl()
Description copied from interface: CloudFoundryOperations
Get the URL used for the cloud controller.

Specified by:
getCloudControllerUrl in interface CloudFoundryOperations
Returns:
the cloud controller URL

getCloudInfo

public CloudInfo getCloudInfo()
Description copied from interface: CloudFoundryOperations
Get CloudInfo for the current cloud.

Specified by:
getCloudInfo in interface CloudFoundryOperations
Returns:
CloudInfo object containing the cloud info

getSpaces

public List<CloudSpace> getSpaces()
Description copied from interface: CloudFoundryOperations
Get list of CloudSpaces for the current cloud.

Specified by:
getSpaces in interface CloudFoundryOperations
Returns:
List of CloudSpace objects containing the space info

getOrganizations

public List<CloudOrganization> getOrganizations()
Description copied from interface: CloudFoundryOperations
Get list of CloudOrganizations for the current cloud.

Specified by:
getOrganizations in interface CloudFoundryOperations
Returns:
List of CloudOrganizations objects containing the organization info

register

public void register(String email,
                     String password)
Description copied from interface: CloudFoundryOperations
Register new user account with the provided credentials.

Specified by:
register in interface CloudFoundryOperations
Parameters:
email - the email account
password - the password

updatePassword

public void updatePassword(String newPassword)
Description copied from interface: CloudFoundryOperations
Update the password for the logged in user.

Specified by:
updatePassword in interface CloudFoundryOperations
Parameters:
newPassword - the new password

updatePassword

public void updatePassword(CloudCredentials credentials,
                           String newPassword)
Description copied from interface: CloudFoundryOperations
Update the password for the logged in user using the username/old_password provided in the credentials.

Specified by:
updatePassword in interface CloudFoundryOperations
Parameters:
credentials - current credentials
newPassword - the new password

unregister

public void unregister()
Description copied from interface: CloudFoundryOperations
Unregister and log out the currently logged in user

Specified by:
unregister in interface CloudFoundryOperations

login

public org.springframework.security.oauth2.common.OAuth2AccessToken login()
Description copied from interface: CloudFoundryOperations
Login using the credentials already set for the client.

Specified by:
login in interface CloudFoundryOperations
Returns:
authentication token

logout

public void logout()
Description copied from interface: CloudFoundryOperations
Logout closing the current session.

Specified by:
logout in interface CloudFoundryOperations

getApplications

public List<CloudApplication> getApplications()
Description copied from interface: CloudFoundryOperations
Get all cloud applications.

Specified by:
getApplications in interface CloudFoundryOperations
Returns:
list of cloud applications

getApplication

public CloudApplication getApplication(String appName)
Description copied from interface: CloudFoundryOperations
Get cloud application with the specified name.

Specified by:
getApplication in interface CloudFoundryOperations
Parameters:
appName - name of the app
Returns:
the cloud application

getApplication

public CloudApplication getApplication(UUID appGuid)

getApplicationStats

public ApplicationStats getApplicationStats(String appName)
Description copied from interface: CloudFoundryOperations
Get application stats for the app with the specified name.

Specified by:
getApplicationStats in interface CloudFoundryOperations
Parameters:
appName - name of the app
Returns:
the cloud application stats

getApplicationMemoryChoices

public int[] getApplicationMemoryChoices()
Description copied from interface: CloudFoundryOperations
Get choices for application memory quota.

Specified by:
getApplicationMemoryChoices in interface CloudFoundryOperations
Returns:
memory choices in MB

createApplication

public void createApplication(String appName,
                              Staging staging,
                              int memory,
                              List<String> uris,
                              List<String> serviceNames)
Description copied from interface: CloudFoundryOperations
Create application.

Specified by:
createApplication in interface CloudFoundryOperations
Parameters:
appName - application name
staging - staging info
memory - memory to use in MB
uris - list of URIs for the app
serviceNames - list of service names to bind to app

createService

public void createService(CloudService service)
Description copied from interface: CloudFoundryOperations
Create a service.

Specified by:
createService in interface CloudFoundryOperations
Parameters:
service - cloud service info

uploadApplication

public void uploadApplication(String appName,
                              String file)
                       throws IOException
Description copied from interface: CloudFoundryOperations
Upload an application.

Specified by:
uploadApplication in interface CloudFoundryOperations
Parameters:
appName - application name
file - path to the application archive or folder
Throws:
IOException

uploadApplication

public void uploadApplication(String appName,
                              File file)
                       throws IOException
Description copied from interface: CloudFoundryOperations
Upload an application to cloud foundry.

Specified by:
uploadApplication in interface CloudFoundryOperations
Parameters:
appName - the application name
file - the application archive or folder
Throws:
IOException

uploadApplication

public void uploadApplication(String appName,
                              File file,
                              UploadStatusCallback callback)
                       throws IOException
Description copied from interface: CloudFoundryOperations
Upload an application to cloud foundry.

Specified by:
uploadApplication in interface CloudFoundryOperations
Parameters:
appName - the application name
file - the application archive
callback - a callback interface used to provide progress information or null
Throws:
IOException

uploadApplication

public void uploadApplication(String appName,
                              ApplicationArchive archive)
                       throws IOException
Description copied from interface: CloudFoundryOperations
Upload an application to cloud foundry.

Specified by:
uploadApplication in interface CloudFoundryOperations
Parameters:
appName - the application name
archive - the application archive
Throws:
IOException

uploadApplication

public void uploadApplication(String appName,
                              ApplicationArchive archive,
                              UploadStatusCallback callback)
                       throws IOException
Description copied from interface: CloudFoundryOperations
Upload an application to cloud foundry.

Specified by:
uploadApplication in interface CloudFoundryOperations
Parameters:
appName - the application name
archive - the application archive
callback - a callback interface used to provide progress information or null
Throws:
IOException

startApplication

public StartingInfo startApplication(String appName)
Description copied from interface: CloudFoundryOperations
Start application. May return starting info if the response obtained after the start request contains headers. If the response does not contain headers, null is returned instead.

Specified by:
startApplication in interface CloudFoundryOperations
Parameters:
appName - name of application
Returns:
Starting info containing response headers, if headers are present in the response. If there are no headers, return null.

debugApplication

public void debugApplication(String appName,
                             CloudApplication.DebugMode mode)
Description copied from interface: CloudFoundryOperations
Debug application.

Specified by:
debugApplication in interface CloudFoundryOperations
Parameters:
appName - name of application
mode - debug mode info

stopApplication

public void stopApplication(String appName)
Description copied from interface: CloudFoundryOperations
Stop application.

Specified by:
stopApplication in interface CloudFoundryOperations
Parameters:
appName - name of application

restartApplication

public StartingInfo restartApplication(String appName)
Description copied from interface: CloudFoundryOperations
Restart application.

Specified by:
restartApplication in interface CloudFoundryOperations
Parameters:
appName - name of application

deleteApplication

public void deleteApplication(String appName)
Description copied from interface: CloudFoundryOperations
Delete application.

Specified by:
deleteApplication in interface CloudFoundryOperations
Parameters:
appName - name of application

deleteAllApplications

public void deleteAllApplications()
Description copied from interface: CloudFoundryOperations
Delete all applications.

Specified by:
deleteAllApplications in interface CloudFoundryOperations

deleteAllServices

public void deleteAllServices()
Description copied from interface: CloudFoundryOperations
Delete all services.

Specified by:
deleteAllServices in interface CloudFoundryOperations

updateApplicationMemory

public void updateApplicationMemory(String appName,
                                    int memory)
Description copied from interface: CloudFoundryOperations
Update application memory.

Specified by:
updateApplicationMemory in interface CloudFoundryOperations
Parameters:
appName - name of application
memory - new memory setting

updateApplicationInstances

public void updateApplicationInstances(String appName,
                                       int instances)
Description copied from interface: CloudFoundryOperations
Update application instances.

Specified by:
updateApplicationInstances in interface CloudFoundryOperations
Parameters:
appName - name of application
instances - number of instances to use

updateApplicationServices

public void updateApplicationServices(String appName,
                                      List<String> services)
Description copied from interface: CloudFoundryOperations
Update application services.

Specified by:
updateApplicationServices in interface CloudFoundryOperations
Parameters:
appName - name of appplication
services - list of services that should be bound to app

updateApplicationStaging

public void updateApplicationStaging(String appName,
                                     Staging staging)
Description copied from interface: CloudFoundryOperations
Update application staging information.

Specified by:
updateApplicationStaging in interface CloudFoundryOperations
Parameters:
appName - name of appplication
staging - staging information for the app

updateApplicationUris

public void updateApplicationUris(String appName,
                                  List<String> uris)
Description copied from interface: CloudFoundryOperations
Update application URIs.

Specified by:
updateApplicationUris in interface CloudFoundryOperations
Parameters:
appName - name of application
uris - list of URIs the app should use

updateApplicationEnv

public void updateApplicationEnv(String appName,
                                 Map<String,String> env)
Description copied from interface: CloudFoundryOperations
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..

Specified by:
updateApplicationEnv in interface CloudFoundryOperations
Parameters:
appName - name of application
env - map of environment settings

updateApplicationEnv

public void updateApplicationEnv(String appName,
                                 List<String> env)
Description copied from interface: CloudFoundryOperations
Update application env using a list of strings each with one environment setting.

Specified by:
updateApplicationEnv in interface CloudFoundryOperations
Parameters:
appName - name of application
env - list of environment settings

getLogs

public Map<String,String> getLogs(String appName)
Description copied from interface: CloudFoundryOperations
Get logs from the deployed application. The logs will be returned in a Map keyed by the path of the log file (logs/stderr.log, logs/stdout.log).

Specified by:
getLogs in interface CloudFoundryOperations
Parameters:
appName - name of the application
Returns:
a Map containing the logs. The logs will be returned with the path to the log file used as the key and the full content of the log file will be returned as a String value for the corresponding key.

getCrashLogs

public Map<String,String> getCrashLogs(String appName)
Description copied from interface: CloudFoundryOperations
Get logs from most recent crash of the deployed application. The logs will be returned in a Map keyed by the path of the log file (logs/stderr.log, logs/stdout.log).

Specified by:
getCrashLogs in interface CloudFoundryOperations
Parameters:
appName - name of the application
Returns:
a Map containing the logs. The logs will be returned with the path to the log file used as the key and the full content of the log file will be returned as a String value for the corresponding key.

getStagingLogs

public String getStagingLogs(StartingInfo info,
                             int offset)
Description copied from interface: CloudFoundryOperations
Get the staging log while an application is starting. A null value indicates that no further checks for staging logs should occur as staging logs are no longer available.

Specified by:
getStagingLogs in interface CloudFoundryOperations
Parameters:
info - starting information containing staging log file URL. Obtained after starting an application.
offset - starting position from where content should be retrieved.
Returns:
portion of the staging log content starting from the offset. It may contain multiple lines. Returns null if no further content is available.

getFile

public String getFile(String appName,
                      int instanceIndex,
                      String filePath)
Description copied from interface: CloudFoundryOperations
Get file from the deployed application.

Specified by:
getFile in interface CloudFoundryOperations
Parameters:
appName - name of the application
instanceIndex - instance index
filePath - path to the file
Returns:
the contents of the file

getFile

public String getFile(String appName,
                      int instanceIndex,
                      String filePath,
                      int startPosition)
Description copied from interface: CloudFoundryOperations
Get a the content, starting at a specific position, of a file from the deployed application.

Specified by:
getFile in interface CloudFoundryOperations
Parameters:
appName - name of the application
instanceIndex - instance index
filePath - path to the file
startPosition - the starting position of the file contents (inclusive)
Returns:
the contents of the file

getFile

public String getFile(String appName,
                      int instanceIndex,
                      String filePath,
                      int startPosition,
                      int endPosition)
Description copied from interface: CloudFoundryOperations
Get a range of content of a file from the deployed application. The range begins at the specified startPosition and extends to the character at endPosition - 1.

Specified by:
getFile in interface CloudFoundryOperations
Parameters:
appName - name of the application
instanceIndex - instance index
filePath - path to the file
startPosition - the starting position of the file contents (inclusive)
endPosition - the ending position of the file contents (exclusive)
Returns:
the contents of the file

getFileTail

public String getFileTail(String appName,
                          int instanceIndex,
                          String filePath,
                          int length)
Description copied from interface: CloudFoundryOperations
Get a the last bytes, with length as specified, of content of a file from the deployed application.

Specified by:
getFileTail in interface CloudFoundryOperations
Parameters:
appName - name of the application
instanceIndex - instance index
filePath - path to the file
length - the length of the file contents to retrieve
Returns:
the contents of the file

getServices

public List<CloudService> getServices()
Description copied from interface: CloudFoundryOperations
Get list of cloud services.

Specified by:
getServices in interface CloudFoundryOperations
Returns:
list of cloud services

getService

public CloudService getService(String service)
Description copied from interface: CloudFoundryOperations
Get cloud service.

Specified by:
getService in interface CloudFoundryOperations
Parameters:
service - name of service
Returns:
the cloud service info

deleteService

public void deleteService(String service)
Description copied from interface: CloudFoundryOperations
Delete cloud service.

Specified by:
deleteService in interface CloudFoundryOperations
Parameters:
service - name of service

getServiceOfferings

public List<CloudServiceOffering> getServiceOfferings()
Description copied from interface: CloudFoundryOperations
Get all service offerings.

Specified by:
getServiceOfferings in interface CloudFoundryOperations
Returns:
list of service offerings

bindService

public void bindService(String appName,
                        String serviceName)
Description copied from interface: CloudFoundryOperations
Associate (provision) a service with an application.

Specified by:
bindService in interface CloudFoundryOperations
Parameters:
appName - the application name
serviceName - the service name

unbindService

public void unbindService(String appName,
                          String serviceName)
Description copied from interface: CloudFoundryOperations
Un-associate (unprovision) a service from an application.

Specified by:
unbindService in interface CloudFoundryOperations
Parameters:
appName - the application name
serviceName - the service name

getApplicationInstances

public InstancesInfo getApplicationInstances(String appName)
Description copied from interface: CloudFoundryOperations
Get application instances info for application.

Specified by:
getApplicationInstances in interface CloudFoundryOperations
Parameters:
appName - name of application.
Returns:
instances info

getApplicationInstances

public InstancesInfo getApplicationInstances(CloudApplication app)
Description copied from interface: CloudFoundryOperations
Get application instances info for application.

Specified by:
getApplicationInstances in interface CloudFoundryOperations
Parameters:
app - the application.
Returns:
instances info

getCrashes

public CrashesInfo getCrashes(String appName)
Description copied from interface: CloudFoundryOperations
Get crashes info for application.

Specified by:
getCrashes in interface CloudFoundryOperations
Parameters:
appName - name of application
Returns:
crashes info

rename

public void rename(String appName,
                   String newName)
Description copied from interface: CloudFoundryOperations
Rename an application.

Specified by:
rename in interface CloudFoundryOperations
Parameters:
appName - the current name
newName - the new name

getDomainsForOrg

public List<CloudDomain> getDomainsForOrg()
Description copied from interface: CloudFoundryOperations
Get list of all domain registered for the current organization of this session.

Specified by:
getDomainsForOrg in interface CloudFoundryOperations
Returns:
list of domains

getDomains

public List<CloudDomain> getDomains()
Description copied from interface: CloudFoundryOperations
Get list of all domain registered for the given space.

Specified by:
getDomains in interface CloudFoundryOperations
Returns:
list of domains

addDomain

public void addDomain(String domainName)
Description copied from interface: CloudFoundryOperations
Add domain to the current space of this session. If the domain doesn't exist for the organization it will be created.

Specified by:
addDomain in interface CloudFoundryOperations
Parameters:
domainName - the domain to add

deleteDomain

public void deleteDomain(String domainName)
Description copied from interface: CloudFoundryOperations
Delete a domain registered to the current organization of this session.

Specified by:
deleteDomain in interface CloudFoundryOperations
Parameters:
domainName - the domain to delete

removeDomain

public void removeDomain(String domainName)
Description copied from interface: CloudFoundryOperations
Remove a domain from the space of the current session.

Specified by:
removeDomain in interface CloudFoundryOperations
Parameters:
domainName - the domain to delete

getRoutes

public List<CloudRoute> getRoutes(String domainName)
Description copied from interface: CloudFoundryOperations
Get the info for all routes for a domain belonging to the current space of this session.

Specified by:
getRoutes in interface CloudFoundryOperations
Parameters:
domainName - the domain the routes belong to
Returns:
list of routes

addRoute

public void addRoute(String host,
                     String domainName)
Description copied from interface: CloudFoundryOperations
Register a new route to the space of the current session.

Specified by:
addRoute in interface CloudFoundryOperations
Parameters:
host - the host of the route to register
domainName - the domain of the route to register

deleteRoute

public void deleteRoute(String host,
                        String domainName)
Description copied from interface: CloudFoundryOperations
Delete a registered route from the space of the current session.

Specified by:
deleteRoute in interface CloudFoundryOperations
Parameters:
host - the host of the route to delete
domainName - the domain of the route to delete

updateHttpProxyConfiguration

public void updateHttpProxyConfiguration(HttpProxyConfiguration httpProxyConfiguration)
Description copied from interface: CloudFoundryOperations
Update http proxy configuration settings.

Specified by:
updateHttpProxyConfiguration in interface CloudFoundryOperations
Parameters:
httpProxyConfiguration - the new configuration settings

registerRestLogListener

public void registerRestLogListener(RestLogCallback callBack)
Description copied from interface: CloudFoundryOperations
Register a new RestLogCallback

Specified by:
registerRestLogListener in interface CloudFoundryOperations
Parameters:
callBack - the callback to be registered

unRegisterRestLogListener

public void unRegisterRestLogListener(RestLogCallback callBack)
Description copied from interface: CloudFoundryOperations
Un-register a RestLogCallback

Specified by:
unRegisterRestLogListener in interface CloudFoundryOperations
Parameters:
callBack - the callback to be un-registered


Copyright © 2013. All rights reserved.