|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.interfaces.RepositoryConnectorFactory.Pool
public static class RepositoryConnectorFactory.Pool
This class represents a value in the pool hash, which corresponds to a given key.
| Field Summary | |
|---|---|
protected RepositoryConnectorFactory.PoolKey |
key
|
protected int |
numFree
|
protected java.util.ArrayList |
stack
|
| Constructor Summary | |
|---|---|
RepositoryConnectorFactory.Pool(RepositoryConnectorFactory.PoolKey pk,
int maxCount)
Constructor |
|
| Method Summary | |
|---|---|
IRepositoryConnector |
getConnector(IThreadContext threadContext)
Grab a repository connector. |
void |
pollAll(IThreadContext threadContext)
Notify all free connectors. |
void |
printStats()
Print pool stats |
void |
releaseAll(IThreadContext threadContext)
Release all free connectors. |
void |
releaseConnector(IRepositoryConnector connector)
Release a repository connector to the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList stack
protected RepositoryConnectorFactory.PoolKey key
protected int numFree
| Constructor Detail |
|---|
public RepositoryConnectorFactory.Pool(RepositoryConnectorFactory.PoolKey pk,
int maxCount)
| Method Detail |
|---|
public IRepositoryConnector getConnector(IThreadContext threadContext)
throws ManifoldCFException
ManifoldCFException
public void releaseConnector(IRepositoryConnector connector)
throws ManifoldCFException
connector - is the connector.
ManifoldCFException
public void pollAll(IThreadContext threadContext)
throws ManifoldCFException
ManifoldCFException
public void releaseAll(IThreadContext threadContext)
throws ManifoldCFException
ManifoldCFExceptionpublic void printStats()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||