org.icenigrid.gridsam.client.common
Class GridSAMClientSupport

java.lang.Object
  extended by org.icenigrid.gridsam.client.common.GridSAMClientSupport

public class GridSAMClientSupport
extends java.lang.Object

Support class for client-access to GridSAM web service


Constructor Summary
GridSAMClientSupport(java.lang.String pTargetEndpointAddress)
          create a GridSAMClientSupport that can be used to invoke a GridSAM service
 
Method Summary
 org.icenigrid.schema.bes.factory.y2006.m08.CreateActivityResponseDocument createActivity(org.icenigrid.schema.bes.factory.y2006.m08.CreateActivityDocument pOutput)
          create an activity
 org.icenigrid.schema.bes.factory.y2006.m08.GetActivityDocumentsResponseDocument getActivityDocuments(org.icenigrid.schema.bes.factory.y2006.m08.GetActivityDocumentsDocument pOutput)
          get the given activities' JSDLs
 org.icenigrid.schema.bes.factory.y2006.m08.GetActivityStatusesResponseDocument getActivityStatuses(org.icenigrid.schema.bes.factory.y2006.m08.GetActivityStatusesDocument pOutput)
          get the Status document for the given activity (job)
 org.icenigrid.schema.bes.factory.y2006.m08.GetFactoryAttributesDocumentResponseDocument getFactoryAttributesDocument(org.icenigrid.schema.bes.factory.y2006.m08.GetFactoryAttributesDocumentDocument1 pOutput)
          get the exectuting resource's characteristics
 org.icenigrid.schema.service.gridsam.GetJobStatusResponseDocument getJobStatus(java.lang.String[] pJobID)
          get the JobStatus document for the given job
 java.lang.String getTargetEndpointAddress()
          get the target endpoint address
 org.icenigrid.schema.service.gridsam.RerunJobResponseDocument rerunJob(java.lang.String pJobID, org.icenigrid.gridsam.core.JobState startJobState, org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument xJobDefinition, boolean isSuspend)
          rerun a job
 org.icenigrid.schema.bes.management.y2006.m08.StartAcceptingNewActivitiesResponseDocument startAcceptingNewActivities(org.icenigrid.schema.bes.management.y2006.m08.StartAcceptingNewActivitiesDocument pOutput)
           
 void startJob(java.lang.String[] pJobID)
          terminate the given job
 org.icenigrid.schema.bes.management.y2006.m08.StopAcceptingNewActivitiesResponseDocument stopAcceptingNewActivities(org.icenigrid.schema.bes.management.y2006.m08.StopAcceptingNewActivitiesDocument pOutput)
           
 org.icenigrid.schema.service.gridsam.SubmitJobResponseDocument submitJob(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument[] pJSDL, boolean pStartSuspended)
          submit a job to a service
 org.icenigrid.schema.bes.factory.y2006.m08.TerminateActivitiesResponseDocument terminateActivities(org.icenigrid.schema.bes.factory.y2006.m08.TerminateActivitiesDocument pOutput)
          terminate the given activities (jobs)
 void terminateJob(java.lang.String[] pJobID)
          terminate the given job
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridSAMClientSupport

public GridSAMClientSupport(java.lang.String pTargetEndpointAddress)
create a GridSAMClientSupport that can be used to invoke a GridSAM service

Parameters:
pTargetEndpointAddress - the address of the GridSAM service
Method Detail

getTargetEndpointAddress

public java.lang.String getTargetEndpointAddress()
get the target endpoint address


rerunJob

public org.icenigrid.schema.service.gridsam.RerunJobResponseDocument rerunJob(java.lang.String pJobID,
                                                                              org.icenigrid.gridsam.core.JobState startJobState,
                                                                              org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument xJobDefinition,
                                                                              boolean isSuspend)
                                                                       throws java.rmi.RemoteException
rerun a job

Parameters:
pJobID - jobID
startJobState - start from this job state.
isSuspend - suspend job or not when rerun job.
Throws:
java.rmi.RemoteException

submitJob

public org.icenigrid.schema.service.gridsam.SubmitJobResponseDocument submitJob(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument[] pJSDL,
                                                                                boolean pStartSuspended)
                                                                         throws javax.xml.rpc.ServiceException,
                                                                                java.rmi.RemoteException
submit a job to a service

Parameters:
pJSDL - the JSDL document describing the job
Returns:
Document the job identifier document
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getJobStatus

public org.icenigrid.schema.service.gridsam.GetJobStatusResponseDocument getJobStatus(java.lang.String[] pJobID)
                                                                               throws javax.xml.rpc.ServiceException,
                                                                                      java.rmi.RemoteException
get the JobStatus document for the given job

Parameters:
pJobID - the job id
Returns:
Document the JobStatus document
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

terminateJob

public void terminateJob(java.lang.String[] pJobID)
                  throws javax.xml.rpc.ServiceException,
                         java.rmi.RemoteException
terminate the given job

Parameters:
pJobID - the job id
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

startJob

public void startJob(java.lang.String[] pJobID)
              throws javax.xml.rpc.ServiceException,
                     java.rmi.RemoteException
terminate the given job

Parameters:
pJobID - the job id
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

createActivity

public org.icenigrid.schema.bes.factory.y2006.m08.CreateActivityResponseDocument createActivity(org.icenigrid.schema.bes.factory.y2006.m08.CreateActivityDocument pOutput)
                                                                                         throws javax.xml.rpc.ServiceException,
                                                                                                java.rmi.RemoteException
create an activity

Parameters:
pOutput - the JSDL document describing the activity (job)
Returns:
Document the job identifier document
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getActivityStatuses

public org.icenigrid.schema.bes.factory.y2006.m08.GetActivityStatusesResponseDocument getActivityStatuses(org.icenigrid.schema.bes.factory.y2006.m08.GetActivityStatusesDocument pOutput)
                                                                                                   throws javax.xml.rpc.ServiceException,
                                                                                                          java.rmi.RemoteException
get the Status document for the given activity (job)

Parameters:
pOutput - the job id
Returns:
Document the JobStatus document
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

terminateActivities

public org.icenigrid.schema.bes.factory.y2006.m08.TerminateActivitiesResponseDocument terminateActivities(org.icenigrid.schema.bes.factory.y2006.m08.TerminateActivitiesDocument pOutput)
                                                                                                   throws javax.xml.rpc.ServiceException,
                                                                                                          java.rmi.RemoteException
terminate the given activities (jobs)

Parameters:
pOutput - the job id
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getActivityDocuments

public org.icenigrid.schema.bes.factory.y2006.m08.GetActivityDocumentsResponseDocument getActivityDocuments(org.icenigrid.schema.bes.factory.y2006.m08.GetActivityDocumentsDocument pOutput)
                                                                                                     throws javax.xml.rpc.ServiceException,
                                                                                                            java.rmi.RemoteException
get the given activities' JSDLs

Parameters:
pOutput - the job id
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getFactoryAttributesDocument

public org.icenigrid.schema.bes.factory.y2006.m08.GetFactoryAttributesDocumentResponseDocument getFactoryAttributesDocument(org.icenigrid.schema.bes.factory.y2006.m08.GetFactoryAttributesDocumentDocument1 pOutput)
                                                                                                                     throws javax.xml.rpc.ServiceException,
                                                                                                                            java.rmi.RemoteException
get the exectuting resource's characteristics

Parameters:
pOutput - the job id
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

stopAcceptingNewActivities

public org.icenigrid.schema.bes.management.y2006.m08.StopAcceptingNewActivitiesResponseDocument stopAcceptingNewActivities(org.icenigrid.schema.bes.management.y2006.m08.StopAcceptingNewActivitiesDocument pOutput)
                                                                                                                    throws javax.xml.rpc.ServiceException,
                                                                                                                           java.rmi.RemoteException
Parameters:
pInput - the input message
Returns:
Document the output message
Throws:
java.rmi.RemoteException
javax.xml.rpc.ServiceException

startAcceptingNewActivities

public org.icenigrid.schema.bes.management.y2006.m08.StartAcceptingNewActivitiesResponseDocument startAcceptingNewActivities(org.icenigrid.schema.bes.management.y2006.m08.StartAcceptingNewActivitiesDocument pOutput)
                                                                                                                      throws javax.xml.rpc.ServiceException,
                                                                                                                             java.rmi.RemoteException
Parameters:
pInput - the input message
Returns:
Document the output message
Throws:
java.rmi.RemoteException
javax.xml.rpc.ServiceException


Copyright © 2009. All Rights Reserved.