public class WhoasFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
WhoasQueueConfig |
queueConfig
Queue configuration
|
java.lang.String |
runnerType
Type of runner to create in whoas.
|
Constructor and Description |
---|
WhoasFactory() |
Modifier and Type | Method and Description |
---|---|
AbstractHookQueue |
buildQueue()
Allocate and return the queue based on stored queue type.
|
AbstractHookRunner |
buildRunner(AbstractHookQueue hookQueue)
Allocate and return runner based on stored runner type
|
protected org.slf4j.Logger logger
public WhoasQueueConfig queueConfig
public java.lang.String runnerType
public AbstractHookQueue buildQueue() throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
AbstractHookQueue
java.lang.ClassNotFoundException
- - if the class is not foundjava.lang.IllegalAccessException
- - if the class or its nullary constructor is not accessible.java.lang.InstantiationException
- - if this Class cannot be instantiaedjava.lang.reflect.InvocationTargetException
- if the constructor can not be invokedjava.lang.NoSuchMethodException
- if the appropriate constructor cannot be foundpublic AbstractHookRunner buildRunner(AbstractHookQueue hookQueue) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
hookQueue
- queue to associate with allocated runnerAbstractHookRunner
instancejava.lang.ClassNotFoundException
- - if the class is not foundjava.lang.IllegalAccessException
- - if the class or its nullary constructor is not accessible.java.lang.InstantiationException
- - if this Class cannot be instantiaedjava.lang.reflect.InvocationTargetException
- if the constructor can not be invokedjava.lang.NoSuchMethodException
- if the appropriate constructor cannot be found