org.globus.cog.abstraction.impl.common.task
Class ServiceImpl

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.task.ServiceImpl
All Implemented Interfaces:
Service
Direct Known Subclasses:
ExecutionServiceImpl

public class ServiceImpl
extends Object
implements Service


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.Service
DEFAULT_SERVICE, FILE_OPERATION, FILE_TRANSFER, FILE_TRANSFER_DESTINATION_SERVICE, FILE_TRANSFER_SOURCE_SERVICE, INFORMATION_QUERY, JOB_SUBMISSION, JOB_SUBMISSION_SERVICE
 
Constructor Summary
ServiceImpl()
           
ServiceImpl(int type)
           
ServiceImpl(String provider, int type, ServiceContact serviceContact, SecurityContext securityContext)
           
ServiceImpl(String provider, ServiceContact serviceContact, SecurityContext securityContext)
           
 
Method Summary
 int getActiveCount()
           
 Enumeration getAllAttributes()
           
 Object getAttribute(String name)
           
 int getCompletedCount()
           
 int getFailedCount()
           
 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 setActiveCount(int count)
           
 void setAttribute(String name, Object value)
           
 void setCompletedCount(int count)
           
 void setFailedCount(int count)
           
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceImpl

public ServiceImpl()

ServiceImpl

public ServiceImpl(int type)

ServiceImpl

public ServiceImpl(String provider,
                   ServiceContact serviceContact,
                   SecurityContext securityContext)

ServiceImpl

public ServiceImpl(String provider,
                   int type,
                   ServiceContact serviceContact,
                   SecurityContext securityContext)
Method Detail

setIdentity

public void setIdentity(Identity identity)
Description copied from interface: Service
Sets a unique Identity for this Service.

Specified by:
setIdentity in interface Service
Parameters:
identity - the unique Identity.

getIdentity

public Identity getIdentity()
Description copied from interface: Service
Returns the unique Identity assigned to this Service.

Specified by:
getIdentity in interface Service

setName

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

Specified by:
setName in interface Service
Parameters:
name - a string specifying the name of this Service.

getName

public String getName()
Description copied from interface: Service
Returns the user-friendly name assigned to this Service.

Specified by:
getName in interface Service

setProvider

public void setProvider(String provider)
Description copied from interface: Service
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

Specified by:
setProvider in interface Service
Parameters:
provider - a String representing the provider for this Service.

getProvider

public String getProvider()
Description copied from interface: Service
Returns the provider associated with this Service.

Specified by:
getProvider in interface Service

setType

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

Specified by:
setType in interface Service
Parameters:
type - an integer representing the type of the remote service

getType

public int getType()
Description copied from interface: Service
Returns the type of the remote service

Specified by:
getType in interface Service

setServiceContact

public void setServiceContact(ServiceContact serviceContact)
Description copied from interface: Service
Sets the ServiceContactassociated with this Service.

Specified by:
setServiceContact in interface Service

getServiceContact

public ServiceContact getServiceContact()
Description copied from interface: Service
Returns the ServiceContactassociated with this Service.

Specified by:
getServiceContact in interface Service

setSecurityContext

public void setSecurityContext(SecurityContext securityContext)
Description copied from interface: Service
Sets the SecurityContextassociated with this Service.

Specified by:
setSecurityContext in interface Service

getSecurityContext

public SecurityContext getSecurityContext()
Description copied from interface: Service
Returns the SecurityContextassociated with this Service.

Specified by:
getSecurityContext in interface Service

setCompletedCount

public void setCompletedCount(int count)

getCompletedCount

public int getCompletedCount()

setActiveCount

public void setActiveCount(int count)

getActiveCount

public int getActiveCount()

setFailedCount

public void setFailedCount(int count)

getFailedCount

public int getFailedCount()

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface Service

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface Service

getAllAttributes

public Enumeration getAllAttributes()
Specified by:
getAllAttributes in interface Service

toString

public String toString()