org.globus.cog.abstraction.impl.common.queue
Class QueueImpl

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.taskgraph.TaskGraphImpl
      extended byorg.globus.cog.abstraction.impl.common.queue.QueueImpl
All Implemented Interfaces:
ExecutableObject, Queue, TaskGraph

public class QueueImpl
extends TaskGraphImpl
implements Queue


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.TaskGraph
AbortOnFailure, ContinueOnFailure
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.ExecutableObject
TASK, TASKGRAPH
 
Constructor Summary
QueueImpl()
           
QueueImpl(Identity id)
           
 
Method Summary
 void add(ExecutableObject node)
          Adds the ExecutableObject(Task or TaskGraph) to this TaskGraph.
 void addDependency(ExecutableObject from, ExecutableObject to)
          Adds a single dependency between the given nodes.
 Dependency getDependency()
          Returns the dependency object associated with this TaskGraph.
 ExecutableObject remove(Identity id)
          Removes the ExecutableObjectthat is represented by the given identity.
 boolean removeDependency(ExecutableObject from, ExecutableObject to)
          Removes the dependency between the given nodes.
 void setDependency(Dependency dependency)
          Sets all the dependencies associated with this TaskGraph.
 
Methods inherited from class org.globus.cog.abstraction.impl.common.taskgraph.TaskGraphImpl
addChangeListener, addStatusListener, contains, elements, equals, get, getActiveCount, getAllAttributes, getAttribute, getCanceledCount, getCompletedCount, getCompletedTime, getFailedCount, getFailureHandlingPolicy, getIdentity, getName, getObjectType, getResumedCount, getSize, getStatus, getSubmittedCount, getSubmittedTime, getSuspendedCount, getUnsubmittedCount, hashCode, isEmpty, removeChangeListener, removeStatusListener, setAttribute, setFailureHandlingPolicy, setIdentity, setName, setStatus, setStatus, toArray, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.cog.abstraction.interfaces.TaskGraph
addChangeListener, contains, elements, get, getActiveCount, getAllAttributes, getAttribute, getCanceledCount, getCompletedCount, getCompletedTime, getFailedCount, getFailureHandlingPolicy, getResumedCount, getSize, getSubmittedCount, getSubmittedTime, getSuspendedCount, getUnsubmittedCount, isEmpty, removeChangeListener, setAttribute, setFailureHandlingPolicy, toArray, toXML
 
Methods inherited from interface org.globus.cog.abstraction.interfaces.ExecutableObject
addStatusListener, getIdentity, getName, getObjectType, getStatus, removeStatusListener, setIdentity, setName, setStatus, setStatus
 

Constructor Detail

QueueImpl

public QueueImpl()

QueueImpl

public QueueImpl(Identity id)
Method Detail

add

public void add(ExecutableObject node)
         throws Exception
Description copied from interface: TaskGraph
Adds the ExecutableObject(Task or TaskGraph) to this TaskGraph. By default the added node is an unconnected node without dependencies on any of the existing nodes in this TaskGraph.

Specified by:
add in interface TaskGraph
Overrides:
add in class TaskGraphImpl
Throws:
Exception

remove

public ExecutableObject remove(Identity id)
Description copied from interface: TaskGraph
Removes the ExecutableObjectthat is represented by the given identity.

Specified by:
remove in interface TaskGraph
Overrides:
remove in class TaskGraphImpl

setDependency

public void setDependency(Dependency dependency)
Description copied from interface: TaskGraph
Sets all the dependencies associated with this TaskGraph.

Specified by:
setDependency in interface TaskGraph
Overrides:
setDependency in class TaskGraphImpl

getDependency

public Dependency getDependency()
Description copied from interface: TaskGraph
Returns the dependency object associated with this TaskGraph.

Specified by:
getDependency in interface TaskGraph
Overrides:
getDependency in class TaskGraphImpl

addDependency

public void addDependency(ExecutableObject from,
                          ExecutableObject to)
Description copied from interface: TaskGraph
Adds a single dependency between the given nodes.

Specified by:
addDependency in interface TaskGraph
Overrides:
addDependency in class TaskGraphImpl

removeDependency

public boolean removeDependency(ExecutableObject from,
                                ExecutableObject to)
Description copied from interface: TaskGraph
Removes the dependency between the given nodes.

Specified by:
removeDependency in interface TaskGraph
Overrides:
removeDependency in class TaskGraphImpl