org.openscience.nmrshiftdb.daemons
Class AssignRobotDaemon
java.lang.Object
org.openscience.nmrshiftdb.daemons.AbstractDaemon
org.openscience.nmrshiftdb.daemons.AbstractDaemonWithServletConfig
org.openscience.nmrshiftdb.daemons.AssignRobotDaemon
- All Implemented Interfaces:
- java.lang.Runnable, org.apache.jetspeed.daemon.Daemon
public class AssignRobotDaemon
- extends AbstractDaemonWithServletConfig
Fields inherited from interface org.apache.jetspeed.daemon.Daemon |
RESULT_FAILED, RESULT_PROCESSING, RESULT_SUCCESS, RESULT_UNKNOWN, STATUS_NOT_PROCESSED, STATUS_NOT_STARTED, STATUS_PROCESSED, STATUS_PROCESSING, STATUS_STARTED, STATUS_UNKNOWN |
Method Summary |
private void |
addfiles(java.io.File toadd,
java.util.zip.ZipOutputStream zipoutputstream,
java.lang.StringBuffer attachedfiles)
|
private java.lang.String |
arrayindex(java.util.ArrayList<java.lang.String> list,
java.lang.String id)
|
private int |
countOccurences(java.lang.String string,
char character)
|
void |
run(javax.servlet.ServletConfig servcon)
Does the task |
private void |
searchfiles(java.io.File tolookin,
java.util.ArrayList<java.lang.String> usersid,
java.util.HashMap<java.lang.String,java.util.zip.ZipOutputStream> zipoutputstream,
java.util.HashMap<java.lang.String,java.lang.StringBuffer> attachedfiles,
java.io.File dirtoignore,
javax.servlet.ServletConfig servcon,
int depth)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAXDEPTH
int MAXDEPTH
rawfiledir
java.io.File rawfiledir
AssignRobotDaemon
public AssignRobotDaemon()
run
public void run(javax.servlet.ServletConfig servcon)
throws java.lang.Exception
- Description copied from class:
AbstractDaemonWithServletConfig
- Does the task
- Specified by:
run
in class AbstractDaemonWithServletConfig
- Throws:
java.lang.Exception
countOccurences
private int countOccurences(java.lang.String string,
char character)
searchfiles
private void searchfiles(java.io.File tolookin,
java.util.ArrayList<java.lang.String> usersid,
java.util.HashMap<java.lang.String,java.util.zip.ZipOutputStream> zipoutputstream,
java.util.HashMap<java.lang.String,java.lang.StringBuffer> attachedfiles,
java.io.File dirtoignore,
javax.servlet.ServletConfig servcon,
int depth)
throws java.io.IOException
- Throws:
java.io.IOException
arrayindex
private java.lang.String arrayindex(java.util.ArrayList<java.lang.String> list,
java.lang.String id)
addfiles
private void addfiles(java.io.File toadd,
java.util.zip.ZipOutputStream zipoutputstream,
java.lang.StringBuffer attachedfiles)
throws java.io.IOException
- Throws:
java.io.IOException