org.gcube.vremanagement.resourcemanager.impl.operators
Class Operator

java.lang.Object
  extended by org.gcube.vremanagement.resourcemanager.impl.operators.Operator
Direct Known Subclasses:
AddResourcesOperator, DeploySoftwareOperator, RemoveResourcesOperator, ScopedResourceManagerOperator

public abstract class Operator
extends Object

Base class for manager's operators . A manage operator is devoted to execute certain assigned tasks. The exec() method is asynchronously called

Author:
Manuele Simi (ISTI-CNR)

Nested Class Summary
static class Operator.ACTION
           
 
Field Summary
protected  Operator.ACTION action
           
protected  OperatorConfig configuration
           
protected  org.gcube.common.core.utils.logging.GCUBELog logger
           
protected  ScopeState scopeState
           
 
Constructor Summary
Operator()
           
 
Method Summary
abstract  void exec()
          Executes the operator's tasks
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.gcube.common.core.utils.logging.GCUBELog logger

action

protected Operator.ACTION action

configuration

protected OperatorConfig configuration

scopeState

protected ScopeState scopeState
Constructor Detail

Operator

public Operator()
Method Detail

run

public final void run()

exec

public abstract void exec()
                   throws Exception
Executes the operator's tasks

Throws:
Exception - if any of the tasks fails


Copyright © 2013. All Rights Reserved.