|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
uk.ac.soton.itinnovation.grid.service.job.JobServiceModule
public class JobServiceModule
| Field Summary | |
|---|---|
static String |
JOB_SERVICE_RESOURCE_TYPE
|
| Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
management, NO_ACCOUNT_NEEDED, pdp, thisServiceAddress |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.job.JobResource |
|---|
JOB_RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
FREE_SERVICE |
| Constructor Summary | |
|---|---|
JobServiceModule()
|
|
| Method Summary | |
|---|---|
void |
cancelJob()
Cancel a job that has been started. |
void |
cancelJobLocal(String resourceID)
|
protected void |
checkContinueActivity(Job job,
JobDescription jobDescription)
Checks with SLA service that continuing a job activity is possible. |
JobStatus |
checkJob()
Check the current status of a job. |
JobStatus |
checkJobInternal(String conversationID)
Used by web admin tool. |
void |
clean()
Called by the cleanup processing thread in order to do any specialised garbage collection on the implementing class. |
JobStatus |
createJob(String applicationURI,
MatchRule owner)
Deprecated. |
Document |
createJobJSDL(Document jsdl,
MatchPattern owner)
Create a new job. |
void |
dataStagerAddCumulativeUsageReport(DataStagerManager manager,
Metric metric,
double value)
Called when a data stager generates a cumulative usage report such as an update in the amount of data transfer used. |
void |
dataStagerContinueActivity(DataStagerManager manager,
org.apache.axis.message.addressing.EndpointReferenceType stagerEPR,
Constraint[] constraints)
Called when a data stager makes a continueActivity request. |
void |
dataStagerInstantaneousUsageChanged(DataStagerManager manager,
Metric metric)
Called when a data stager generates an instantaneous usage report. |
void |
dataStagerStartActivity(DataStagerManager manager,
Constraint[] constraints,
UsageReport[] usageReports)
Called when a data stager makes a startActivity request. |
void |
destroy()
WSResource lifetime destroy For a job this is implemented by requesting cancelJob() followed by finishJob(). |
void |
destroyLocal(String resourceId)
Called by web admin interface |
void |
ensurePoliciesDeployed()
Ensure that any required PBAC policies are deployed. |
void |
finishJob()
Finish the job conversation. |
void |
finishJobLocal(String resourceID)
|
protected org.apache.axis.message.addressing.EndpointReferenceType |
generateEPR(GridResource bean)
Generate an EPR from a resource's bean. |
Application |
getApplication(org.hibernate.Session session,
String applicationURI)
|
Application |
getApplication(String applicationURI)
|
Document |
getApplicationDescription(String applicationURI)
Get the 5.1 style meta-data for a particular application. |
Document |
getApplicationMetadata(String applicationURI)
Get the meta-data for a particular application. |
Document |
getApplicationMetadataDetailed(String applicationURI)
Get the 5.2 style meta-data for a particular application. |
String[] |
getApplications()
List the applications available on this service. |
Document |
getAtomFeed(String atomFeed,
String serviceBase)
Return notices from the service as an Atom feed. |
Job |
getJob(org.hibernate.Session session,
String resourceID)
|
Job |
getJob(String resourceID)
|
String |
getJSDL()
Retrieves the original JSDL Document used to create the job |
NotificationMessage[] |
getMessages()
Returns all usage messages |
NotificationMessage[] |
getMessagesN(int MaximumNumber)
Returns usage messages |
List<RMConnectorPlugin> |
getResourceManagerList()
|
org.apache.axis.message.addressing.EndpointReferenceType[] |
getResources()
List the resources managed by this service for which the caller has some role. |
protected Class<? extends GridResource> |
getResourceType(String resourceID)
Return the class of this resource's bean. |
boolean |
isConfigured()
|
void |
reloadConfiguration()
Reload the configuration. |
void |
startJob(String[] args)
Deprecated. |
void |
submitJob(Document jobConstraints,
String[] args)
Deprecated. |
void |
submitJobJSDL()
Submit the job (already defined by a JSDL document) to the queue, via the platform scripts. |
| Methods inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
addHibernatedObject, addPolicyRule, addTrustedAccountService, deleteHibernatedObject, getAvailableSignals, getConversationFromContext, getCurrentUser, getEPR, getEPR, getManagingConversation, getPolicyRules, getPrivateKey, getResourceFromEPR, GetResourceProperty, getResources, getResources, getResourcesFromEPRs, getServiceFromEPR, getServiceProviderCertificate, getServiceProviderID, getServiceProviderIssuer, getTrustedAccountServices, getValidRoles, removePolicyRule, removeTrustedAccountService, RequestSecurityToken_Issuance, RequestSecurityToken_Validation, RequestSecurityToken, setLabel, setLabel, signal, validateOwner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.PolicyManagement |
|---|
addPolicyRule, getPolicyRules, getValidRoles, removePolicyRule |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.ResourceMetadata |
|---|
getEPR, setLabel |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.Signallable |
|---|
getAvailableSignals, signal |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
addTrustedAccountService, getTrustedAccountServices, removeTrustedAccountService |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.wsrf.WSRFService |
|---|
GetResourceProperty |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.GridService |
|---|
getServiceProviderID, getServiceProviderIssuer |
| Field Detail |
|---|
public static final String JOB_SERVICE_RESOURCE_TYPE
| Constructor Detail |
|---|
public JobServiceModule()
| Method Detail |
|---|
public void ensurePoliciesDeployed()
WebAdmin
ensurePoliciesDeployed in interface WebAdmin
public void reloadConfiguration()
throws Exception
Exception - if the configuration is not yet validprotected org.apache.axis.message.addressing.EndpointReferenceType generateEPR(GridResource bean)
generateEPR in class GridServiceLite
public JobStatus createJob(String applicationURI,
MatchRule owner)
throws RemoteException
createJob in interface JobServiceapplicationURI - the type of the application to be runowner - A rule to allow access for the owner role
RemoteException
public Document createJobJSDL(Document jsdl,
MatchPattern owner)
throws RemoteException
JobService
createJobJSDL in interface JobServicejsdl - a JSDL document describing the jobowner - a rule to allow access for the owner role
RemoteException
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws GridFailureException
GridService
getResources in interface GridServiceGridFailureException
public void startJob(String[] args)
throws RemoteException
startJob in interface JobResourceRemoteException
public void submitJob(Document jobConstraints,
String[] args)
throws RemoteException
submitJob in interface JobResourcejobConstraints - job constraints to be passed to the platform scriptsargs - arguments to pass to the application
RemoteException
public void submitJobJSDL()
throws RemoteException
JobResource
submitJobJSDL in interface JobResourceRemoteException
public JobStatus checkJob()
throws RemoteException
JobResource
checkJob in interface JobResourceRemoteException
public JobStatus checkJobInternal(String conversationID)
throws RemoteException
RemoteException
public void cancelJob()
throws RemoteException
JobResource
cancelJob in interface JobResourceRemoteException
public void cancelJobLocal(String resourceID)
throws RemoteException
RemoteException
public void finishJob()
throws RemoteException
JobResource
finishJob in interface JobResourceRemoteException
public void finishJobLocal(String resourceID)
throws RemoteException
RemoteException
public String[] getApplications()
throws GridFailureException
JobService
getApplications in interface JobServiceGridFailureException
public Job getJob(String resourceID)
throws GridFailureException
GridFailureExceptionprotected Class<? extends GridResource> getResourceType(String resourceID)
GridServiceLite
getResourceType in class GridServiceLite
public Job getJob(org.hibernate.Session session,
String resourceID)
throws GridFailureException
GridFailureExceptionpublic void clean()
Cleanable
clean in interface Cleanable
public Application getApplication(String applicationURI)
throws AppNotFoundException
AppNotFoundException
public Application getApplication(org.hibernate.Session session,
String applicationURI)
throws AppNotFoundException
AppNotFoundExceptionpublic boolean isConfigured()
public Document getAtomFeed(String atomFeed,
String serviceBase)
throws GridFailureException
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)
GridFailureExceptionAtomUtilspublic NotificationMessage[] getMessagesN(int MaximumNumber)
ReportAPI
getMessagesN in interface ReportAPIMaximumNumber - of messages. If more available returns the first.
public NotificationMessage[] getMessages()
ReportAPI
getMessages in interface ReportAPI
public void destroy()
throws ResourceUnknownFault,
ResourceNotDestroyedFault
destroy in interface WSResourceLifetimeResourceUnknownFault
ResourceNotDestroyedFault
public void destroyLocal(String resourceId)
throws GridFailureException
GridFailureException
public Document getApplicationMetadata(String applicationURI)
throws GridFailureException
JobService
getApplicationMetadata in interface JobServiceapplicationURI - the globally unique identifier for the application type
GridFailureException
public Document getApplicationMetadataDetailed(String applicationURI)
throws GridFailureException
JobService
getApplicationMetadataDetailed in interface JobServiceapplicationURI - the globally unique identifier for the application type
GridFailureException
public Document getApplicationDescription(String applicationURI)
throws GridFailureException
JobService
getApplicationDescription in interface JobServiceapplicationURI - the globally unique identifier for the application type
GridFailureException
protected void checkContinueActivity(Job job,
JobDescription jobDescription)
throws RemoteException
RemoteException
public void dataStagerStartActivity(DataStagerManager manager,
Constraint[] constraints,
UsageReport[] usageReports)
DataEventListener
dataStagerStartActivity in interface DataEventListenermanager - The DataStagerManager that is responsible for the stager.constraints - An array of constraints that must be satisfied if the
stager is to be created successfully.usageReports - An array of initial usage reports.
public void dataStagerContinueActivity(DataStagerManager manager,
org.apache.axis.message.addressing.EndpointReferenceType stagerEPR,
Constraint[] constraints)
throws RemoteException
DataEventListener
dataStagerContinueActivity in interface DataEventListenermanager - The DataStagerManager that is responsible for the stager.constraints - An array of constraints that must be satisfied.
RemoteException
public void dataStagerAddCumulativeUsageReport(DataStagerManager manager,
Metric metric,
double value)
DataEventListener
dataStagerAddCumulativeUsageReport in interface DataEventListenermanager - The DataStagerManager that is responsible for the stager.metric - The metric type of the resource being usedvalue - The cumulative increase in use of the metric
public void dataStagerInstantaneousUsageChanged(DataStagerManager manager,
Metric metric)
throws GridFailureException
DataEventListener
dataStagerInstantaneousUsageChanged in interface DataEventListenermanager - The DataStagerManager that is responsible for the stager.metric - The metric type of the resource being used
GridFailureException
public List<RMConnectorPlugin> getResourceManagerList()
throws GridFailureException
GridFailureException
public String getJSDL()
throws RemoteException
JobResource
getJSDL in interface JobResourceRemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||