org.duracloud.servicesadminclient
Class ServicesAdminClient

java.lang.Object
  extended by org.duracloud.servicesadminclient.ServicesAdminClient

public class ServicesAdminClient
extends java.lang.Object

Author:
Andrew Woods

Constructor Summary
ServicesAdminClient()
           
 
Method Summary
 RestHttpHelper.HttpResponse deleteServiceBundle(java.lang.String bundleId)
           
 java.lang.String getBaseURL()
           
 RestHttpHelper getRester()
           
 ServiceSerializer getSerializer()
           
 java.util.Map<java.lang.String,java.lang.String> getServiceConfig(java.lang.String configId)
           
 RestHttpHelper.HttpResponse getServiceListing()
           
 java.util.Map<java.lang.String,java.lang.String> getServiceProps(java.lang.String serviceId)
           
 ComputeService.ServiceStatus getServiceStatus(java.lang.String serviceId)
           
 boolean isServiceDeployed(java.lang.String bundleId)
           
 RestHttpHelper.HttpResponse postServiceBundle(java.io.File file)
           
 RestHttpHelper.HttpResponse postServiceBundle(java.lang.String fileName, java.io.InputStream stream, long length)
           
 RestHttpHelper.HttpResponse postServiceConfig(java.lang.String configId, java.util.Map<java.lang.String,java.lang.String> config)
           
 void setBaseURL(java.lang.String baseURL)
           
 void setRester(RestHttpHelper rester)
           
 void setSerializer(ServiceSerializer serializer)
           
 RestHttpHelper.HttpResponse startServiceBundle(java.lang.String bundleId)
           
 RestHttpHelper.HttpResponse stopServiceBundle(java.lang.String bundleId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicesAdminClient

public ServicesAdminClient()
Method Detail

postServiceBundle

public RestHttpHelper.HttpResponse postServiceBundle(java.lang.String fileName,
                                                     java.io.InputStream stream,
                                                     long length)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

postServiceBundle

public RestHttpHelper.HttpResponse postServiceBundle(java.io.File file)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

deleteServiceBundle

public RestHttpHelper.HttpResponse deleteServiceBundle(java.lang.String bundleId)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

startServiceBundle

public RestHttpHelper.HttpResponse startServiceBundle(java.lang.String bundleId)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

stopServiceBundle

public RestHttpHelper.HttpResponse stopServiceBundle(java.lang.String bundleId)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

getServiceListing

public RestHttpHelper.HttpResponse getServiceListing()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

getServiceConfig

public java.util.Map<java.lang.String,java.lang.String> getServiceConfig(java.lang.String configId)
                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

postServiceConfig

public RestHttpHelper.HttpResponse postServiceConfig(java.lang.String configId,
                                                     java.util.Map<java.lang.String,java.lang.String> config)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

getServiceStatus

public ComputeService.ServiceStatus getServiceStatus(java.lang.String serviceId)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

getServiceProps

public java.util.Map<java.lang.String,java.lang.String> getServiceProps(java.lang.String serviceId)
                                                                 throws java.lang.Exception
Throws:
java.lang.Exception

isServiceDeployed

public boolean isServiceDeployed(java.lang.String bundleId)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getRester

public RestHttpHelper getRester()

setRester

public void setRester(RestHttpHelper rester)

getSerializer

public ServiceSerializer getSerializer()

setSerializer

public void setSerializer(ServiceSerializer serializer)

getBaseURL

public java.lang.String getBaseURL()

setBaseURL

public void setBaseURL(java.lang.String baseURL)


Copyright © 2009-2010 DuraSpace. All Rights Reserved.