uk.ac.ebi.mapper.web.struts.business
Class AccessionSearchThreadFactory

java.lang.Object
  extended by uk.ac.ebi.mapper.web.struts.business.AccessionSearchThreadFactory

public class AccessionSearchThreadFactory
extends Object

This is a singleton that maintains a link to all searches being done in the background.

User: rcote Date: 20-Feb-2007 $Id: AccessionSearchThreadFactory.java,v 1.11 2009/02/16 14:30:05 rcote Exp $


Method Summary
 AccessionSearchThreadRunner createThread(SearchParameters config)
          Creates a AccessionSearchThreadRunner to run a search in a new thread and stores it in the thread store.
static AccessionSearchThreadFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createThread

public AccessionSearchThreadRunner createThread(SearchParameters config)
                                         throws IllegalArgumentException,
                                                IllegalStateException
Creates a AccessionSearchThreadRunner to run a search in a new thread and stores it in the thread store.

Parameters:
config - - a SearchParameters object containing all the search parameters
Throws:
IllegalArgumentException - - if not all the fields required to create a AccessionSearchThreadRunner are present in the SearchParameters
IllegalStateException - - if the threadpool is full and the search can't be executed

getInstance

public static AccessionSearchThreadFactory getInstance()


Copyright © 2011. All Rights Reserved.