|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.admin.irbootstrapperportlet.gwt.server.IRBootstrapperData
public class IRBootstrapperData
| 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 |
|---|
protected IRBootstrapperData()
| Method Detail |
|---|
public static IRBootstrapperData getInstance()
scope - the scope for which
public void setBootstrappingConfiguration(org.gcube.common.core.scope.GCUBEScope scope,
BootstrappingConfiguration conf)
BootstrappingConfiguration object for a given scope
scope - the scopeconf - the BootstrappingConfiguration objectpublic BootstrappingConfiguration getBootstrappingConfiguration(org.gcube.common.core.scope.GCUBEScope scope)
BootstrappingConfiguration for a given scope
scope - the scope
BootstrappingConfiguration object for the given scopepublic void setAdminEmail(String adminEmail)
adminEmail - public String getAdminEmail()
public TaskToExecute submitRunnableForExecution(Runnable r,
String newTaskUID,
TaskExecutionListener listener)
r - the Runnable to execute
public void cancelTasks(Collection<String> taskIDs)
taskIDs -
public void submitRunnablesForExecutionAndBlock(Collection<Runnable> runnables,
Collection<String> newTaskUIDs)
runnables - the Runnables to execute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||