org.gcube.portlets.admin.irbootstrapperportlet.gwt.client.interfaces
Interface IRBootstrapperServiceAsync


public interface IRBootstrapperServiceAsync

An asynchronous interface for the IRBootstrapper service following GWT RPC design

Author:
Spyros Boutsis, NKUA

Method Summary
 void cancelSubmittedJob(String jobUID, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
          A method to cancel a submitted job.
 void deleteJob(JobUIElement job, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
          A method to delete an job
 void getAllJobsPerJobType(com.google.gwt.user.client.rpc.AsyncCallback<List<JobTypeUIElement>> callback)
          A method to get all the jobs available per each job type
 void getAutoCompleteData(com.google.gwt.user.client.rpc.AsyncCallback<JobAutoCompleteData> callback)
          A method to retrieve auto-complete data for all the available jobs
 void getJobs(com.google.gwt.user.client.rpc.AsyncCallback<List<ResourceTypeUIElement>> callback)
          A method to get all the jobs available for each resource
 void getSubmittedJobByUID(String jobUID, com.google.gwt.user.client.rpc.AsyncCallback<JobUIElement> callback)
          A method to get a submitted job, given its UID.
 void getSubmittedJobs(com.google.gwt.user.client.rpc.AsyncCallback<List<ResourceTypeUIElement>> callback)
          A method to get all the submitted jobs available for each resource
 void initialize(com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
          This method performs initialization tasks (such as parsing the IRBootstrapepr configuration in the current scope) and must be invoked when the portlet is initialized.
 void refreshAndGetJobs(com.google.gwt.user.client.rpc.AsyncCallback<List<ResourceTypeUIElement>> callback)
          A method to refresh the list of available jobs for each resource and retrieve it
 void removeSubmittedJob(String jobUID, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
          A method to remove a submitted job
 void saveJob(JobUIElement job, com.google.gwt.user.client.rpc.AsyncCallback<String> callback)
          A method to save a new or modified job
 void submitJobForExecution(String jobUID, Map<String,String> userInputs, com.google.gwt.user.client.rpc.AsyncCallback<String> callback)
           
 void submitJobsForBatchExecution(ArrayList<String> jobsUIDs, Map<String,String> userInputs, com.google.gwt.user.client.rpc.AsyncCallback<String> callback)
           
 

Method Detail

initialize

void initialize(com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
This method performs initialization tasks (such as parsing the IRBootstrapepr configuration in the current scope) and must be invoked when the portlet is initialized.

Parameters:
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

getJobs

void getJobs(com.google.gwt.user.client.rpc.AsyncCallback<List<ResourceTypeUIElement>> callback)
A method to get all the jobs available for each resource

Parameters:
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

refreshAndGetJobs

void refreshAndGetJobs(com.google.gwt.user.client.rpc.AsyncCallback<List<ResourceTypeUIElement>> callback)
A method to refresh the list of available jobs for each resource and retrieve it

Parameters:
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

getSubmittedJobs

void getSubmittedJobs(com.google.gwt.user.client.rpc.AsyncCallback<List<ResourceTypeUIElement>> callback)
A method to get all the submitted jobs available for each resource

Parameters:
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

getSubmittedJobByUID

void getSubmittedJobByUID(String jobUID,
                          com.google.gwt.user.client.rpc.AsyncCallback<JobUIElement> callback)
A method to get a submitted job, given its UID.

Parameters:
the - UID of the job to get
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

submitJobForExecution

void submitJobForExecution(String jobUID,
                           Map<String,String> userInputs,
                           com.google.gwt.user.client.rpc.AsyncCallback<String> callback)

cancelSubmittedJob

void cancelSubmittedJob(String jobUID,
                        com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
A method to cancel a submitted job.

Parameters:
jobUID - the UID of the job to cancel
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

removeSubmittedJob

void removeSubmittedJob(String jobUID,
                        com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
A method to remove a submitted job

Parameters:
jobUID - the UID of the job to remove
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

getAllJobsPerJobType

void getAllJobsPerJobType(com.google.gwt.user.client.rpc.AsyncCallback<List<JobTypeUIElement>> callback)
A method to get all the jobs available per each job type

Parameters:
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

saveJob

void saveJob(JobUIElement job,
             com.google.gwt.user.client.rpc.AsyncCallback<String> callback)
A method to save a new or modified job

Parameters:
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

deleteJob

void deleteJob(JobUIElement job,
               com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
A method to delete an job

Parameters:
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

getAutoCompleteData

void getAutoCompleteData(com.google.gwt.user.client.rpc.AsyncCallback<JobAutoCompleteData> callback)
A method to retrieve auto-complete data for all the available jobs

Parameters:
callback - - the AsyncCallback used to handle the asynchronous completion of the remote method, in accordance with the GWT RPC framework

submitJobsForBatchExecution

void submitJobsForBatchExecution(ArrayList<String> jobsUIDs,
                                 Map<String,String> userInputs,
                                 com.google.gwt.user.client.rpc.AsyncCallback<String> callback)


Copyright © 2013. All Rights Reserved.