org.globus.exec.utils.service
Class ManagedJobHelper

java.lang.Object
  extended byorg.globus.exec.utils.service.ManagedJobHelper

public class ManagedJobHelper
extends java.lang.Object

Constants class for Managed Job.


Field Summary
static java.lang.String HANDLE_SEPARATOR
           
 
Constructor Summary
ManagedJobHelper()
           
 
Method Summary
static org.apache.axis.message.addressing.EndpointReferenceType getEndpoint(java.lang.String handle)
           
static java.lang.String getHandle(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
          Return string representing the endpoint to the job.
static SimpleResourceKey getResourceKey(java.lang.String keyValue)
          This function is public so that consumers can use it to generate the key object to a resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDLE_SEPARATOR

public static final java.lang.String HANDLE_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

ManagedJobHelper

public ManagedJobHelper()
Method Detail

getResourceKey

public static SimpleResourceKey getResourceKey(java.lang.String keyValue)
This function is public so that consumers can use it to generate the key object to a resource. There is no need for a specific ResourceKey class as the actual key value is just a string.


getHandle

public static java.lang.String getHandle(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
Return string representing the endpoint to the job. The service URL and the resource ID are extracted from the endpoint reference in order to create the handle. Any other data in the EPR such as other reference properties, parameters or policies is lost in the "conversion". An EPR can be created out of the handle by using the getEndpoint(String) function.

Parameters:
endpoint - EndpointReferenceType the endpoint to convert
Returns:
String the handle, of format handle :== HANDLE_SEPARATOR

getEndpoint

public static org.apache.axis.message.addressing.EndpointReferenceType getEndpoint(java.lang.String handle)
                                                                            throws java.lang.Exception
Throws:
java.lang.Exception