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

java.lang.Object
  extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.IRBootstrapperData

public class IRBootstrapperData
extends Object

Author:
Spyros Boutsis, NKUA

Constructor Summary
protected IRBootstrapperData()
          Protected class constructor, for implementing the singleton pattern
 
Method Summary
 void cancelTasks(Collection<String> taskIDs)
          Cancels the tasks identified by the given taskIDs
 String getAdminEmail()
          Returns the administrator's email address
 BootstrappingConfiguration getBootstrappingConfiguration(org.gcube.common.core.scope.GCUBEScope scope)
          Returns the BootstrappingConfiguration for a given scope
static IRBootstrapperData getInstance()
          Returns the singleton instance of this class.
 void setAdminEmail(String adminEmail)
          Sets the administrator's email address
 void setBootstrappingConfiguration(org.gcube.common.core.scope.GCUBEScope scope, BootstrappingConfiguration conf)
          Set the BootstrappingConfiguration object for a given scope
 TaskToExecute submitRunnableForExecution(Runnable r, String newTaskUID, TaskExecutionListener listener)
          Submits a Runnable for execution in the thread pool and returns a TaskToExecute object representing the status of this Runnable's execution
 void submitRunnablesForExecutionAndBlock(Collection<Runnable> runnables, Collection<String> newTaskUIDs)
          Submits a collection of Runnables for execution in the thread pool and blocks until all of them are over (either with success or failed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IRBootstrapperData

protected IRBootstrapperData()
Protected class constructor, for implementing the singleton pattern

Method Detail

getInstance

public static IRBootstrapperData getInstance()
Returns the singleton instance of this class.

Parameters:
scope - the scope for which
Returns:

setBootstrappingConfiguration

public void setBootstrappingConfiguration(org.gcube.common.core.scope.GCUBEScope scope,
                                          BootstrappingConfiguration conf)
Set the BootstrappingConfiguration object for a given scope

Parameters:
scope - the scope
conf - the BootstrappingConfiguration object

getBootstrappingConfiguration

public BootstrappingConfiguration getBootstrappingConfiguration(org.gcube.common.core.scope.GCUBEScope scope)
Returns the BootstrappingConfiguration for a given scope

Parameters:
scope - the scope
Returns:
the BootstrappingConfiguration object for the given scope

setAdminEmail

public void setAdminEmail(String adminEmail)
Sets the administrator's email address

Parameters:
adminEmail -

getAdminEmail

public String getAdminEmail()
Returns the administrator's email address

Returns:

submitRunnableForExecution

public TaskToExecute submitRunnableForExecution(Runnable r,
                                                String newTaskUID,
                                                TaskExecutionListener listener)
Submits a Runnable for execution in the thread pool and returns a TaskToExecute object representing the status of this Runnable's execution

Parameters:
r - the Runnable to execute
Returns:
the Future object representing the Runnable's execution status

cancelTasks

public void cancelTasks(Collection<String> taskIDs)
Cancels the tasks identified by the given taskIDs

Parameters:
taskIDs -

submitRunnablesForExecutionAndBlock

public void submitRunnablesForExecutionAndBlock(Collection<Runnable> runnables,
                                                Collection<String> newTaskUIDs)
Submits a collection of Runnables for execution in the thread pool and blocks until all of them are over (either with success or failed). representing the status of this Runnable's execution

Parameters:
runnables - the Runnables to execute


Copyright © 2013. All Rights Reserved.