about research toolkit development

Workspace Management Service


Introduction


Service Interface

For interface see the factory and service WSDLs.


Usage Examples

DynamicAccountsClient.java in the client directory demonstrates how to call the various operations to make use of the whole package.

  1. Deploy the client (it is deployed by default when running ant deploy from the top directory).

  2. Source the jars in $GLOBUS_LOCATION/lib (one of which is the client stubs).

    $ source $GLOBUS_LOCATION/etc/globus-devel-env.sh
    
  3. Create a pool account with default ttl (default host is localhost:8443)

    $ java org.globus.dynamicAccounts.client.DynamicAccountsClient 

    Output:
    EPR Address: https://127.0.0.1:8443/wsrf/services/DynamicAccountsService
    Reference property[0]:
    <ns1:AccountKey xmlns:ns1="http://www.globus.org/08/2004/dynamicAccounts">gpool010</ns1:AccountKey>
    
    localName gpool010
    owner DN /DC=org/DC=doegrids/OU=People/CN=Timothy Freeman 964650
    
  4. Given you know the key, delete a resource (which in turn removes the pool mapping):

    $ java org.globus.dynamicAccounts.client.DynamicAccountsClient -d gpool010
    (the key is used here to construct an EPR, normally you would have EPR in memory)

    Output:
    local account name gpool010
    Owner DN /DC=org/DC=doegrids/OU=People/CN=Timothy Freeman 964650
    Deleting account ... success
    

Other:

  • Create an account with ttl 1 minutes

      $ java org.globus.dynamicAccounts.client.DynamicAccountsClient -a 1
    (Switch to container terminal to watch the automatic expiry)

  • Create account on another machine and different port

      $ java org.globus.dynamicAccounts.client.DynamicAccountsClient -h somehost.com -p 8080 -a 1

  • Add DEBUG ouput to the container to see the arguments to the backend program (needs container restart to take effect):

    add to $GLOBUS_LOCATION/container-log4j.properties:
    log4j.category.org.globus.dynamicAccounts=DEBUG