uk.ac.ebi.intenz.webapp.util
Class XmlExporterPool
java.lang.Object
uk.ac.ebi.intenz.webapp.util.XmlExporterPool
- All Implemented Interfaces:
- org.apache.commons.pool.ObjectPool<XmlExporter>
public class XmlExporterPool
- extends Object
- implements org.apache.commons.pool.ObjectPool<XmlExporter>
A pool of IntEnzXML exporters.
- Author:
- rafa
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlExporterPool
public XmlExporterPool(int numOfExporters,
Map<String,Object> desc)
throws IllegalArgumentException,
Exception
- Throws:
IllegalArgumentException
Exception
addObject
public void addObject()
throws Exception,
IllegalStateException,
UnsupportedOperationException
- Specified by:
addObject
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
Exception
IllegalStateException
UnsupportedOperationException
borrowObject
public XmlExporter borrowObject()
throws Exception,
NoSuchElementException,
IllegalStateException
- Specified by:
borrowObject
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
Exception
NoSuchElementException
IllegalStateException
clear
public void clear()
throws Exception,
UnsupportedOperationException
- Specified by:
clear
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
Exception
UnsupportedOperationException
close
public void close()
throws Exception
- Specified by:
close
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
Exception
getNumActive
public int getNumActive()
throws UnsupportedOperationException
- Specified by:
getNumActive
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
UnsupportedOperationException
getNumIdle
public int getNumIdle()
throws UnsupportedOperationException
- Specified by:
getNumIdle
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
UnsupportedOperationException
invalidateObject
public void invalidateObject(XmlExporter arg0)
throws Exception
- Specified by:
invalidateObject
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
Exception
returnObject
public void returnObject(XmlExporter arg0)
throws Exception
- Specified by:
returnObject
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
Exception
setFactory
@Deprecated
public void setFactory(org.apache.commons.pool.PoolableObjectFactory<XmlExporter> arg0)
throws IllegalStateException,
UnsupportedOperationException
- Deprecated.
- Specified by:
setFactory
in interface org.apache.commons.pool.ObjectPool<XmlExporter>
- Throws:
IllegalStateException
UnsupportedOperationException
Copyright © 2013 EMBL-EBI. All Rights Reserved.