org.globus.cog.abstraction.interfaces
Interface Service

All Known Subinterfaces:
ExecutionService
All Known Implementing Classes:
ExecutionServiceImpl, ServiceImpl

public interface Service

This interface abstracts the remote Grid Service required for the execution of the Task. It contains the provider specific details such as the service contact and security context.


Field Summary
static int DEFAULT_SERVICE
          Represents the index for the default service among an ordered list of services.
static int FILE_OPERATION
          Represents a file operation service
static int FILE_TRANSFER
          Represents a file transfer service
static int FILE_TRANSFER_DESTINATION_SERVICE
          Represents the index for the destination service in a file transfer task.
static int FILE_TRANSFER_SOURCE_SERVICE
          Represents the index for the source service in a file transfer task.
static int INFORMATION_QUERY
          Represents a information query service.
static int JOB_SUBMISSION
          Represents a job submission service
static int JOB_SUBMISSION_SERVICE
          Represents the index for the job submission service among an ordered list of services.
 
Method Summary
 Enumeration getAllAttributes()
           
 Object getAttribute(String name)
           
 Identity getIdentity()
          Returns the unique Identity assigned to this Service.
 String getName()
          Returns the user-friendly name assigned to this Service.
 String getProvider()
          Returns the provider associated with this Service.
 SecurityContext getSecurityContext()
          Returns the SecurityContextassociated with this Service.
 ServiceContact getServiceContact()
          Returns the ServiceContactassociated with this Service.
 int getType()
          Returns the type of the remote service
 void setAttribute(String name, Object value)
           
 void setIdentity(Identity identity)
          Sets a unique Identity for this Service.
 void setName(String name)
          Sets the name of this Service.
 void setProvider(String provider)
          Sets the provider for this service.
 void setSecurityContext(SecurityContext securityContext)
          Sets the SecurityContextassociated with this Service.
 void setServiceContact(ServiceContact serviceContact)
          Sets the ServiceContactassociated with this Service.
 void setType(int type)
          Sets the type of this Service.
 

Field Detail

JOB_SUBMISSION

public static final int JOB_SUBMISSION
Represents a job submission service

See Also:
Constant Field Values

FILE_TRANSFER

public static final int FILE_TRANSFER
Represents a file transfer service

See Also:
Constant Field Values

INFORMATION_QUERY

public static final int INFORMATION_QUERY
Represents a information query service. Not implemented at this time.

See Also:
Constant Field Values

FILE_OPERATION

public static final int FILE_OPERATION
Represents a file operation service

See Also:
Constant Field Values

JOB_SUBMISSION_SERVICE

public static final int JOB_SUBMISSION_SERVICE
Represents the index for the job submission service among an ordered list of services.

See Also:
Constant Field Values

DEFAULT_SERVICE

public static final int DEFAULT_SERVICE
Represents the index for the default service among an ordered list of services.

See Also:
Constant Field Values

FILE_TRANSFER_SOURCE_SERVICE

public static final int FILE_TRANSFER_SOURCE_SERVICE
Represents the index for the source service in a file transfer task.

See Also:
Constant Field Values

FILE_TRANSFER_DESTINATION_SERVICE

public static final int FILE_TRANSFER_DESTINATION_SERVICE
Represents the index for the destination service in a file transfer task.

See Also:
Constant Field Values
Method Detail

setIdentity

public void setIdentity(Identity identity)
Sets a unique Identity for this Service.

Parameters:
identity - the unique Identity.

getIdentity

public Identity getIdentity()
Returns the unique Identity assigned to this Service.


setName

public void setName(String name)
Sets the name of this Service. Defines a user-friendly name which need not be unique.

Parameters:
name - a string specifying the name of this Service.

getName

public String getName()
Returns the user-friendly name assigned to this Service.


setProvider

public void setProvider(String provider)
Sets the provider for this service. Based on the provider, the TaskHandlerwill translate all the abstract elements of the Taskbound to this service into provider-specific constructs

Parameters:
provider - a String representing the provider for this Service.

getProvider

public String getProvider()
Returns the provider associated with this Service.


setType

public void setType(int type)
Sets the type of this Service. Valid types are JOB_SUBMISSION,FILE_TRANSFER, and FILE_OPERATION

Parameters:
type - an integer representing the type of the remote service

getType

public int getType()
Returns the type of the remote service


setServiceContact

public void setServiceContact(ServiceContact serviceContact)
Sets the ServiceContactassociated with this Service.


getServiceContact

public ServiceContact getServiceContact()
Returns the ServiceContactassociated with this Service.


setSecurityContext

public void setSecurityContext(SecurityContext securityContext)
Sets the SecurityContextassociated with this Service.


getSecurityContext

public SecurityContext getSecurityContext()
Returns the SecurityContextassociated with this Service.


setAttribute

public void setAttribute(String name,
                         Object value)

getAttribute

public Object getAttribute(String name)

getAllAttributes

public Enumeration getAllAttributes()