ca.spaz.cron.datasource.sql.USDAsr17
Class USDAImporter

java.lang.Object
  extended by ca.spaz.cron.datasource.sql.USDAsr17.USDAImporter
All Implemented Interfaces:
Task, java.lang.Runnable

public class USDAImporter
extends java.lang.Object
implements Task


Constructor Summary
USDAImporter(java.sql.Connection conn, java.io.OutputStream out)
           
 
Method Summary
 void abortTask()
          The task has been cancelled.
 boolean canAbortTask()
          Return true if the program can finish.
 java.io.InputStream getSourceStream()
           
 java.net.URL getSourceURL()
           
 java.lang.String getTaskDescription()
          A description of the current Task being performed
 int getTaskProgress()
          A number between 0 and 100 representing the % completion of the task.
 void run()
           
 void setSourceStream(java.io.InputStream sourceStream)
           
 void setSourceURL(java.net.URL sourceURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

USDAImporter

public USDAImporter(java.sql.Connection conn,
                    java.io.OutputStream out)
Method Detail

getSourceStream

public java.io.InputStream getSourceStream()

setSourceStream

public void setSourceStream(java.io.InputStream sourceStream)

getSourceURL

public java.net.URL getSourceURL()

setSourceURL

public void setSourceURL(java.net.URL sourceURL)

run

public void run()
Specified by:
run in interface java.lang.Runnable

getTaskProgress

public int getTaskProgress()
Description copied from interface: Task
A number between 0 and 100 representing the % completion of the task.

Specified by:
getTaskProgress in interface Task
Returns:
the percentage complete

abortTask

public void abortTask()
Description copied from interface: Task
The task has been cancelled. Attempt to stop.

Specified by:
abortTask in interface Task

canAbortTask

public boolean canAbortTask()
Description copied from interface: Task
Return true if the program can finish.

Specified by:
canAbortTask in interface Task
Returns:
true if the task can be aborted.

getTaskDescription

public java.lang.String getTaskDescription()
Description copied from interface: Task
A description of the current Task being performed

Specified by:
getTaskDescription in interface Task
Returns:
the description of the current Task being performed


Copyright © 2005 Spaz. All Rights Reserved.