de.fzj.unicore.uas.client
Class StorageFactoryClient

java.lang.Object
  extended by de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
      extended by de.fzj.unicore.uas.client.BaseUASClient
          extended by de.fzj.unicore.uas.client.StorageFactoryClient

public class StorageFactoryClient
extends BaseUASClient

Client for the StorageFactory service

Since:
6.2.3
Author:
schuller

Field Summary
 
Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
epr, proxyMaker, retryDecider, securityProperties, url
 
Constructor Summary
StorageFactoryClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
          connect to the given StorageFactory using default security settings
StorageFactoryClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr, IUASSecurityProperties sec)
           
StorageFactoryClient(java.lang.String endpointUrl, org.w3.x2005.x08.addressing.EndpointReferenceType epr)
          connect to the given StorageFactory using default security settings
StorageFactoryClient(java.lang.String endpointUrl, org.w3.x2005.x08.addressing.EndpointReferenceType epr, IUASSecurityProperties sec)
           
 
Method Summary
 StorageClient createSMS()
           
 StorageClient createSMS(java.util.Calendar initialTerminationTime)
           
 StorageClient createSMS(org.unigrids.x2006.x04.services.smf.CreateSMSDocument in)
          create an SMS instance as described by the given CreateSMSDocument
 StorageClient createSMS(java.lang.String type, java.lang.String name, java.util.Calendar initialTerminationTime)
          create a SMS of the specified type with the supplied initial termination time
 java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> getAccessibleStorages()
          gets the SMSSs that are accessible for this client
 org.unigrids.x2006.x04.services.smf.StorageDescriptionType[] getBackendStorageDescription()
           
 org.unigrids.x2006.x04.services.smf.StorageFactoryPropertiesDocument getResourcePropertiesDocument()
          returns the service's TargetSystemPropertiesDocument
 java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> getStorages()
           
 
Methods inherited from class de.fzj.unicore.uas.client.BaseUASClient
extractReceiver, getSecurityProperties, getServerVersion, setRetryDefaults
 
Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
checkConnection, checkConnection, destroy, getConnectionStatus, getCurrentTime, getEPR, getLT, getMultipleResourceProperties, getResourceProperty, getResourcePropertyDocument, GetResourcePropertyDocument, getRP, getTerminationTime, getUpdateInterval, getUrl, makeProxy, queryResourceProperties, setConnectionTimeout, setConnectionTimeout, setRetryHandler, setTerminationTime, setUpdateInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageFactoryClient

public StorageFactoryClient(java.lang.String endpointUrl,
                            org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                            IUASSecurityProperties sec)
                     throws java.lang.Exception
Parameters:
endpointUrl - - the URL to connect to
epr - - the EPR of the target service
sec - - the security settings to use
Throws:
java.lang.Exception

StorageFactoryClient

public StorageFactoryClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                            IUASSecurityProperties sec)
                     throws java.lang.Exception
Parameters:
epr - - the EPR of the target service
sec - - the security settings to use
Throws:
java.lang.Exception

StorageFactoryClient

public StorageFactoryClient(java.lang.String endpointUrl,
                            org.w3.x2005.x08.addressing.EndpointReferenceType epr)
                     throws java.lang.Exception
connect to the given StorageFactory using default security settings

Parameters:
endpointUrl -
epr -
Throws:
java.lang.Exception

StorageFactoryClient

public StorageFactoryClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
                     throws java.lang.Exception
connect to the given StorageFactory using default security settings

Parameters:
epr -
Throws:
java.lang.Exception
Method Detail

createSMS

public StorageClient createSMS(org.unigrids.x2006.x04.services.smf.CreateSMSDocument in)
                        throws java.lang.Exception
create an SMS instance as described by the given CreateSMSDocument

Parameters:
in - - describes the instance to be created
Returns:
a StorageClient for accessing the newly created SMS
Throws:
java.lang.Exception

createSMS

public StorageClient createSMS(java.lang.String type,
                               java.lang.String name,
                               java.util.Calendar initialTerminationTime)
                        throws java.lang.Exception
create a SMS of the specified type with the supplied initial termination time

Parameters:
type - - the backend storage type (can be null if default should be used
name - - the name of the storage
initialTerminationTime - - the termination time
Returns:
Throws:
de.fzj.unicore.wsrflite.xmlbeans.BaseFault
java.lang.Exception

createSMS

public StorageClient createSMS(java.util.Calendar initialTerminationTime)
                        throws java.lang.Exception
Throws:
java.lang.Exception

createSMS

public StorageClient createSMS()
                        throws java.lang.Exception
Throws:
java.lang.Exception

getResourcePropertiesDocument

public org.unigrids.x2006.x04.services.smf.StorageFactoryPropertiesDocument getResourcePropertiesDocument()
                                                                                                   throws java.lang.Exception
returns the service's TargetSystemPropertiesDocument

Parameters:
endpointUrl -
epr -
Throws:
java.lang.Exception

getStorages

public java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> getStorages()

getAccessibleStorages

public java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> getAccessibleStorages()
                                                                                        throws java.lang.Exception
gets the SMSSs that are accessible for this client

Returns:
accessible SMS addresses
Throws:
java.lang.Exception

getBackendStorageDescription

public org.unigrids.x2006.x04.services.smf.StorageDescriptionType[] getBackendStorageDescription()
                                                                                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.