Esri Geoportal Server
1.2.9

com.esri.gpt.control.webharvest.engine
Class Executor

java.lang.Object
  extended by com.esri.gpt.control.webharvest.engine.Executor
Direct Known Subclasses:
Agp2AgpExecutor, Ags2AgpExecutor, Gpt2AgpExecutor

public abstract class Executor
extends Object

Executes query.


Constructor Summary
Executor(DataProcessor dataProcessor, ExecutionUnit unit)
          Creates instance of the executor.
 
Method Summary
 void execute()
          Executes query.
 ExecutionUnit getExecutionUnit()
          Gets execution unit.
protected  DataProcessor getProcessor()
          Gets data processor.
protected abstract  boolean isActive()
          Indicates if thread is active.
protected abstract  boolean isShutdown()
          Indicates if thread is in shutdown process
protected abstract  boolean isSuspended()
          Indicates if thread is in suspended mode
 void shutdown()
          Cleans up.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Executor

public Executor(DataProcessor dataProcessor,
                ExecutionUnit unit)
Creates instance of the executor.

Parameters:
dataProcessor - data processor
unit - execution unit
Method Detail

getExecutionUnit

public ExecutionUnit getExecutionUnit()
Gets execution unit.

Returns:
execution unit

getProcessor

protected DataProcessor getProcessor()
Gets data processor.

Returns:
data processor

execute

public void execute()
Executes query.


shutdown

public void shutdown()
Cleans up.


isActive

protected abstract boolean isActive()
Indicates if thread is active.

Returns:
true if thread is active

isShutdown

protected abstract boolean isShutdown()
Indicates if thread is in shutdown process

Returns:
true if thread is in shutdown process

isSuspended

protected abstract boolean isSuspended()
Indicates if thread is in suspended mode

Returns:
true if thread is in suspended mode

toString

public String toString()
Overrides:
toString in class Object

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.