org.gcube.portlets.admin.irbootstrapperportlet.gwt.server
Class IRBootstrapperServiceImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.IRBootstrapperServiceImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, IRBootstrapperService

public class IRBootstrapperServiceImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements IRBootstrapperService

Author:
Spyros Boutsis, NKUA
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
IRBootstrapperServiceImpl()
          Class constructor
 
Method Summary
 void cancelSubmittedJob(String jobUID)
          A method to cancel a submitted job.
 void deleteJob(JobUIElement job)
          A method to delete an existing
 List<JobTypeUIElement> getAllJobsPerJobType()
          A method to get all the jobs available per each job type
 JobAutoCompleteData getAutoCompleteData()
          A method to retrieve auto-complete data for all the available jobs
 List<ResourceTypeUIElement> getJobs()
          A method to get all the jobs available for each resource
 JobUIElement getSubmittedJobByUID(String jobUID)
          A method to get a submitted job, given its UID.
 List<ResourceTypeUIElement> getSubmittedJobs()
          A method to get all the submitted jobs available for each resource
 void initialize()
          This method performs initialization tasks (such as parsing the IRBootstrapepr configuration in the current scope) and must be invoked when the portlet is initialized.
 List<ResourceTypeUIElement> refreshAndGetJobs()
          A method to refresh the list of available jobs for each resource and retrieve it
 void removeSubmittedJob(String jobUID)
          A method to remove a submitted job.
 String saveJob(JobUIElement job)
          A method to save a new or modified job
 String submitJobForExecution(String jobUID, Map<String,String> userInputs)
          A method to submit a job for execution.
 String submitJobsForBatchExecution(ArrayList<String> jobsUIDs, Map<String,String> userInputs)
           
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IRBootstrapperServiceImpl

public IRBootstrapperServiceImpl()
Class constructor

Method Detail

initialize

public void initialize()
                throws Exception
Description copied from interface: IRBootstrapperService
This method performs initialization tasks (such as parsing the IRBootstrapepr configuration in the current scope) and must be invoked when the portlet is initialized.

Specified by:
initialize in interface IRBootstrapperService
Throws:
Exception - Server side exception as dictated by GWTs RPC framework

getJobs

public List<ResourceTypeUIElement> getJobs()
                                    throws Exception
Description copied from interface: IRBootstrapperService
A method to get all the jobs available for each resource

Specified by:
getJobs in interface IRBootstrapperService
Returns:
the list of jobs
Throws:
Exception - Server side exception as dictated by GWTs RPC framework

refreshAndGetJobs

public List<ResourceTypeUIElement> refreshAndGetJobs()
                                              throws Exception
Description copied from interface: IRBootstrapperService
A method to refresh the list of available jobs for each resource and retrieve it

Specified by:
refreshAndGetJobs in interface IRBootstrapperService
Returns:
the list of jobs
Throws:
Exception - Server side exception as dictated by GWTs RPC framework

getSubmittedJobs

public List<ResourceTypeUIElement> getSubmittedJobs()
                                             throws Exception
Description copied from interface: IRBootstrapperService
A method to get all the submitted jobs available for each resource

Specified by:
getSubmittedJobs in interface IRBootstrapperService
Returns:
the list of submitted jobs
Throws:
Exception - Server side exception as dictated by GWTs RPC framework

getSubmittedJobByUID

public JobUIElement getSubmittedJobByUID(String jobUID)
                                  throws Exception
Description copied from interface: IRBootstrapperService
A method to get a submitted job, given its UID.

Specified by:
getSubmittedJobByUID in interface IRBootstrapperService
Returns:
the job UI element
Throws:
Exception - Server side exception as dictated by GWTs RPC framework

submitJobForExecution

public String submitJobForExecution(String jobUID,
                                    Map<String,String> userInputs)
                             throws Exception
Description copied from interface: IRBootstrapperService
A method to submit a job for execution.

Specified by:
submitJobForExecution in interface IRBootstrapperService
Parameters:
jobUID - the UID of the job to submit for execution
Throws:
Exception

submitJobsForBatchExecution

public String submitJobsForBatchExecution(ArrayList<String> jobsUIDs,
                                          Map<String,String> userInputs)
                                   throws Exception
Specified by:
submitJobsForBatchExecution in interface IRBootstrapperService
Throws:
Exception

cancelSubmittedJob

public void cancelSubmittedJob(String jobUID)
                        throws Exception
Description copied from interface: IRBootstrapperService
A method to cancel a submitted job.

Specified by:
cancelSubmittedJob in interface IRBootstrapperService
Parameters:
jobUID - the UID of the job to cancel
Throws:
Exception

removeSubmittedJob

public void removeSubmittedJob(String jobUID)
                        throws Exception
Description copied from interface: IRBootstrapperService
A method to remove a submitted job.

Specified by:
removeSubmittedJob in interface IRBootstrapperService
Parameters:
jobUID - the UID of the job to remove
Throws:
Exception

getAllJobsPerJobType

public List<JobTypeUIElement> getAllJobsPerJobType()
                                            throws Exception
Description copied from interface: IRBootstrapperService
A method to get all the jobs available per each job type

Specified by:
getAllJobsPerJobType in interface IRBootstrapperService
Returns:
the list of jobs per job type
Throws:
Exception - Server side exception as dictated by GWTs RPC framework

saveJob

public String saveJob(JobUIElement job)
               throws Exception
Description copied from interface: IRBootstrapperService
A method to save a new or modified job

Specified by:
saveJob in interface IRBootstrapperService
Parameters:
job - the job to save
Returns:
the saved jobUID
Throws:
Exception - Server side exception as dictated by GWTs RPC framework

deleteJob

public void deleteJob(JobUIElement job)
               throws Exception
Description copied from interface: IRBootstrapperService
A method to delete an existing

Specified by:
deleteJob in interface IRBootstrapperService
Parameters:
job - the job to delete
Throws:
Exception - Server side exception as dictated by GWTs RPC framework

getAutoCompleteData

public JobAutoCompleteData getAutoCompleteData()
                                        throws Exception
Description copied from interface: IRBootstrapperService
A method to retrieve auto-complete data for all the available jobs

Specified by:
getAutoCompleteData in interface IRBootstrapperService
Returns:
the auto-complete data structure
Throws:
Exception


Copyright © 2013. All Rights Reserved.