uk.ac.soton.ecs.iam.grid.client.staterepos
Class RemoteJobServiceImpl

java.lang.Object
  extended by uk.ac.soton.ecs.iam.grid.client.staterepos.RemoteJobServiceImpl
All Implemented Interfaces:
Comparable<StorableInStateRepository>, RemoteJobService, RemoteService, StorableInStateRepository, JobService, ManagedGridService, ReportAPI, WebAdmin, WSRFService, GridService

Deprecated.

@Deprecated
public class RemoteJobServiceImpl
extends Object
implements RemoteJobService

A proxy to a remote job service.


Field Summary
 
Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService
FREE_SERVICE
 
Constructor Summary
RemoteJobServiceImpl(StateRepository repository, org.apache.axis.message.addressing.EndpointReferenceType endpoint)
          Deprecated.  
 
Method Summary
 void addTrustedAccountService(org.apache.axis.message.addressing.EndpointReferenceType trustedservice)
          Deprecated. Add a trusted management service to the list.
 int compareTo(StorableInStateRepository other)
          Deprecated.  
 JobConversation createJob(String applicationURI, org.apache.axis.message.addressing.EndpointReferenceType billingInfo, String description)
          Deprecated. Creates a new remote job.
 JobStatus createJob(String application, MatchRule ownerRule)
          Deprecated.  
 JobConversation createJob(String applicationURI, String description)
          Deprecated.  
 JobConversation createJobJSDL(Document JSDL)
          Deprecated.  
 Document createJobJSDL(Document jsdl, MatchPattern owner)
          Deprecated. Create a new job.
 MatchPattern createMatchPattern()
          Deprecated. Create a MatchPattern that matches this service.
 MatchRule createMatchRule(String role)
          Deprecated. Create a match rule that will grant this service the given role.
 RemoteBoundMethod createMethod(String operation)
          Deprecated. Get a RemoteBoundMethod bound to this service's endpoint.
 void ensurePoliciesDeployed()
          Deprecated. Ensure that any required PBAC policies are deployed.
 Document getApplicationDescription(String applicationURI)
          Deprecated. Get the 5.1 style meta-data for a particular application.
 Document getApplicationMetadata(String applicationURI)
          Deprecated. Get the meta-data for a particular application.
 Document getApplicationMetadataDetailed(String applicationURI)
          Deprecated. Get the 5.2 style meta-data for a particular application.
 String[] getApplications()
          Deprecated. List the applications available on this service.
 Document getAtomFeed(String atomFeed, String serviceBase)
          Deprecated. Return an Atom feed listing any problems or issues with this service.
 org.apache.axis.message.addressing.EndpointReferenceType getBillingInfo()
          Deprecated. gets the billing epr for creating resources on this proxy
 String getDescription()
          Deprecated. Returns a textual description of the object.
 URL getEndpoint()
          Deprecated. Get the endpoint address of the service.
 org.apache.axis.message.addressing.EndpointReferenceType getEndpointRef()
          Deprecated. Return an EndpointReferenceType for this conversation.
 Class getInterface()
          Deprecated. Returns the type of this object.
 NotificationMessage[] getMessages()
          Deprecated. Returns all usage messages
 NotificationMessage[] getMessagesN(int MaximumNumber)
          Deprecated. Returns usage messages
 RemoteBoundMethod getMethod(String operation)
          Deprecated. Get a RemoteBoundMethod bound to this service's endpoint.
 URL getParentURL()
          Deprecated. Returns the URL of this object's parent.
 StateRepository getRepository()
          Deprecated. Get the StateRepository holding this object.
 Document GetResourceProperty(QName qname)
          Deprecated. Get a resource property.
 org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
          Deprecated. List the resources managed by this service for which the caller has some role.
 String getServiceName()
          Deprecated.  
 SubjectDescription getServiceProviderID()
          Deprecated. Returns the service provider ID, in the form of an Issuer and Subject DN.
 SubjectDescription getServiceProviderIssuer()
          Deprecated. Returns details of the issuer of the service's certificate.
 org.apache.axis.message.addressing.EndpointReferenceType[] getTrustedAccountServices()
          Deprecated. Get a list of trusted management services, as a list of EPRs.
 URL getURL()
          Deprecated. Returns the globally unique identifier.
 boolean isJSDLSubmissionSupported()
          Deprecated. Returns true if this job service is a 5.2 (or later) service that support JSDL job submission.
 void removeTrustedAccountService(org.apache.axis.message.addressing.EndpointReferenceType trustedservice)
          Deprecated. Remove a trusted management service from the list.
 void setBillingInfo(org.apache.axis.message.addressing.EndpointReferenceType epr)
          Deprecated. lets the user set the billing epr to be used when creating resources if null then the a BillingHelper is used to try and select one
 void setDescription(String description)
          Deprecated. Change the textual description, as returned by getDescription.
 void setRepository(StateRepository repository)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteJobServiceImpl

public RemoteJobServiceImpl(StateRepository repository,
                            org.apache.axis.message.addressing.EndpointReferenceType endpoint)
                     throws ObjectAlreadyExists
Deprecated. 
Throws:
ObjectAlreadyExists
Method Detail

getInterface

public Class getInterface()
Deprecated. 
Description copied from interface: StorableInStateRepository
Returns the type of this object. When loading the object, a StateRepository locates a class implementing the interface and uses that for the object.

Specified by:
getInterface in interface StorableInStateRepository

setRepository

public void setRepository(StateRepository repository)
Deprecated. 

getRepository

public StateRepository getRepository()
Deprecated. 
Description copied from interface: StorableInStateRepository
Get the StateRepository holding this object.

Specified by:
getRepository in interface StorableInStateRepository

getEndpointRef

public org.apache.axis.message.addressing.EndpointReferenceType getEndpointRef()
Deprecated. 
Description copied from interface: StorableInStateRepository
Return an EndpointReferenceType for this conversation. This contains both the endpoint address of the service, and the resource itself.

Specified by:
getEndpointRef in interface StorableInStateRepository

getURL

public URL getURL()
Deprecated. 
Description copied from interface: StorableInStateRepository
Returns the globally unique identifier. No two distinct objects may have the same URL, even if they have different types.

Specified by:
getURL in interface StorableInStateRepository

getParentURL

public URL getParentURL()
Deprecated. 
Description copied from interface: StorableInStateRepository
Returns the URL of this object's parent. Returns null if this is a top-level (service) object.

Specified by:
getParentURL in interface StorableInStateRepository

getDescription

public String getDescription()
Deprecated. 
Description copied from interface: StorableInStateRepository
Returns a textual description of the object. This can be presented to the user when choosing from a list, for example.

Specified by:
getDescription in interface StorableInStateRepository

setDescription

public void setDescription(String description)
Deprecated. 
Description copied from interface: StorableInStateRepository
Change the textual description, as returned by getDescription.

Specified by:
setDescription in interface StorableInStateRepository

getEndpoint

public URL getEndpoint()
Deprecated. 
Get the endpoint address of the service.

Specified by:
getEndpoint in interface RemoteService

getMethod

public RemoteBoundMethod getMethod(String operation)
Deprecated. 
Description copied from interface: RemoteService
Get a RemoteBoundMethod bound to this service's endpoint.

Specified by:
getMethod in interface RemoteService

compareTo

public int compareTo(StorableInStateRepository other)
Deprecated. 
Specified by:
compareTo in interface Comparable<StorableInStateRepository>

createJob

public JobConversation createJob(String applicationURI,
                                 org.apache.axis.message.addressing.EndpointReferenceType billingInfo,
                                 String description)
                          throws RemoteException
Deprecated. 
Creates a new remote job.

Specified by:
createJob in interface RemoteJobService
Parameters:
applicationURI - the type of the application to be run
billingInfo - the account or SLA to which usage will be billed
description - a local label for the conversation
Throws:
RemoteException

createJob

public JobConversation createJob(String applicationURI,
                                 String description)
                          throws RemoteException
Deprecated. 
Specified by:
createJob in interface RemoteJobService
Throws:
RemoteException

createJob

public JobStatus createJob(String application,
                           MatchRule ownerRule)
                    throws RemoteException
Deprecated. 
Specified by:
createJob in interface JobService
Parameters:
application - the type of the application to be run
ownerRule - A rule to allow access for the owner role
Returns:
a JobStatus including the EPR of the job and its inputs and outputs
Throws:
RemoteException

createJobJSDL

public JobConversation createJobJSDL(Document JSDL)
                              throws RemoteException
Deprecated. 
Specified by:
createJobJSDL in interface RemoteJobService
Throws:
RemoteException

createJobJSDL

public Document createJobJSDL(Document jsdl,
                              MatchPattern owner)
                       throws RemoteException
Deprecated. 
Description copied from interface: JobService
Create a new job. Billing information should be passed in a SOAP header.

Specified by:
createJobJSDL in interface JobService
Parameters:
jsdl - a JSDL document describing the job
owner - a rule to allow access for the owner role
Returns:
an updated JSDL document including the EPR of the job and its inputs and outputs (data stagers). The EPR for the job is stored as an additional element within the . The EPR for each data stager is stored as an additional element within a element. In addition, each element will include either a or element, containing the fully qualified Conversation ID of the data stager.
Throws:
RemoteException

getApplicationMetadata

public Document getApplicationMetadata(String applicationURI)
                                throws RemoteException
Deprecated. 
Description copied from interface: JobService
Get the meta-data for a particular application.

Specified by:
getApplicationMetadata in interface JobService
Parameters:
applicationURI - the globally unique identifier for the application type
Returns:
a document containing the contents of the ApplicationMetadata.xml file.
Throws:
RemoteException

getApplicationDescription

public Document getApplicationDescription(String applicationURI)
                                   throws RemoteException
Deprecated. 
Description copied from interface: JobService
Get the 5.1 style meta-data for a particular application. If the application is a newer 5.2 style application, the metadata will be converted into the older 5.1 format before it is returned.

Specified by:
getApplicationDescription in interface JobService
Parameters:
applicationURI - the globally unique identifier for the application type
Returns:
a document containing the contents of the ApplicationMetadata.xml file.
Throws:
RemoteException

getApplications

public String[] getApplications()
                         throws RemoteException
Deprecated. 
Description copied from interface: JobService
List the applications available on this service.

Specified by:
getApplications in interface JobService
Throws:
RemoteException

getResources

public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
                                                                        throws RemoteException
Deprecated. 
Description copied from interface: GridService
List the resources managed by this service for which the caller has some role.

Specified by:
getResources in interface GridService
Throws:
RemoteException

getServiceName

public String getServiceName()
Deprecated. 

createMethod

public RemoteBoundMethod createMethod(String operation)
Deprecated. 
Get a RemoteBoundMethod bound to this service's endpoint.


getTrustedAccountServices

public org.apache.axis.message.addressing.EndpointReferenceType[] getTrustedAccountServices()
                                                                                     throws RemoteException
Deprecated. 
Description copied from interface: ManagedGridService
Get a list of trusted management services, as a list of EPRs. Note: this method is badly named: should be getTrustedManagementServices

Specified by:
getTrustedAccountServices in interface ManagedGridService
Throws:
RemoteException

addTrustedAccountService

public void addTrustedAccountService(org.apache.axis.message.addressing.EndpointReferenceType trustedservice)
                              throws RemoteException
Deprecated. 
Description copied from interface: ManagedGridService
Add a trusted management service to the list. Note: this method is badly named: should be addTrustedManagementService

Specified by:
addTrustedAccountService in interface ManagedGridService
Parameters:
trustedservice - the EPR of the service
Throws:
RemoteException

removeTrustedAccountService

public void removeTrustedAccountService(org.apache.axis.message.addressing.EndpointReferenceType trustedservice)
                                 throws RemoteException
Deprecated. 
Description copied from interface: ManagedGridService
Remove a trusted management service from the list. Note: this method is badly named: should be removeTrustedManagementService

Specified by:
removeTrustedAccountService in interface ManagedGridService
Parameters:
trustedservice - the EPR of the service
Throws:
RemoteException

getMessages

public NotificationMessage[] getMessages()
                                  throws RemoteException
Deprecated. 
Description copied from interface: ReportAPI
Returns all usage messages

Specified by:
getMessages in interface ReportAPI
Returns:
an array containing all usage messages.
Throws:
RemoteException

getMessagesN

public NotificationMessage[] getMessagesN(int MaximumNumber)
                                   throws RemoteException
Deprecated. 
Description copied from interface: ReportAPI
Returns usage messages

Specified by:
getMessagesN in interface ReportAPI
Parameters:
MaximumNumber - of messages. If more available returns the first.
Returns:
an array containing usage messages.
Throws:
RemoteException

ensurePoliciesDeployed

public void ensurePoliciesDeployed()
                            throws GridFailureException
Deprecated. 
Description copied from interface: WebAdmin
Ensure that any required PBAC policies are deployed.

Specified by:
ensurePoliciesDeployed in interface WebAdmin
Throws:
GridFailureException

getAtomFeed

public Document getAtomFeed(String atomFeed,
                            String serviceBase)
                     throws GridFailureException
Deprecated. 
Description copied from interface: WebAdmin
Return an Atom feed listing any problems or issues with this service. The feed is displayed on the main admin page, and the feed can also be used with various aggregators.

Specified by:
getAtomFeed in interface WebAdmin
Parameters:
atomFeed - the URL of the feed
serviceBase - the service administration URL (for creating hyperlinks)
Throws:
GridFailureException
See Also:
AtomUtils

GetResourceProperty

public Document GetResourceProperty(QName qname)
                             throws GridFailureException
Deprecated. 
Description copied from interface: WSRFService
Get a resource property.

Specified by:
GetResourceProperty in interface WSRFService
Parameters:
qname - the property to read
Returns:
the resource property value(s) of the property with the given QName.
Throws:
InvalidResourcePropertyQNameFault - if the QName isn't known
GridFailureException

getBillingInfo

public org.apache.axis.message.addressing.EndpointReferenceType getBillingInfo()
Deprecated. 
Description copied from interface: RemoteService
gets the billing epr for creating resources on this proxy

Specified by:
getBillingInfo in interface RemoteService

setBillingInfo

public void setBillingInfo(org.apache.axis.message.addressing.EndpointReferenceType epr)
Deprecated. 
Description copied from interface: RemoteService
lets the user set the billing epr to be used when creating resources if null then the a BillingHelper is used to try and select one

Specified by:
setBillingInfo in interface RemoteService
Parameters:
epr - the billing epr

getServiceProviderIssuer

public SubjectDescription getServiceProviderIssuer()
                                            throws RemoteException
Deprecated. 
Description copied from interface: GridService
Returns details of the issuer of the service's certificate.

Specified by:
getServiceProviderIssuer in interface GridService
Throws:
RemoteException

getServiceProviderID

public SubjectDescription getServiceProviderID()
                                        throws RemoteException
Deprecated. 
Description copied from interface: GridService
Returns the service provider ID, in the form of an Issuer and Subject DN.

Specified by:
getServiceProviderID in interface GridService
Returns:
the ID of the service provider
Throws:
RemoteException

createMatchRule

public MatchRule createMatchRule(String role)
                          throws RemoteException
Deprecated. 
Create a match rule that will grant this service the given role. This method queries the remote service to discover its details and contructs a rule from the results.

Specified by:
createMatchRule in interface RemoteService
Parameters:
role - the role to be granted
Returns:
a rule granting the service the given process role
Throws:
RemoteException

createMatchPattern

public MatchPattern createMatchPattern()
                                throws RemoteException
Deprecated. 
Description copied from interface: RemoteService
Create a MatchPattern that matches this service. Invokes the service to get its identity.

Specified by:
createMatchPattern in interface RemoteService
Throws:
RemoteException

getApplicationMetadataDetailed

public Document getApplicationMetadataDetailed(String applicationURI)
                                        throws RemoteException
Deprecated. 
Description copied from interface: JobService
Get the 5.2 style meta-data for a particular application. If the application is a legacy 5.1 application, the metadata will be converted into the new 5.2 format before it is returned.

Specified by:
getApplicationMetadataDetailed in interface JobService
Parameters:
applicationURI - the globally unique identifier for the application type
Returns:
a document containing the contents of the ApplicationMetadata.xml file.
Throws:
RemoteException

isJSDLSubmissionSupported

public boolean isJSDLSubmissionSupported()
Deprecated. 
Description copied from interface: RemoteJobService
Returns true if this job service is a 5.2 (or later) service that support JSDL job submission.

Specified by:
isJSDLSubmissionSupported in interface RemoteJobService


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.