Class EnterpriseBeanstalkManager
java.lang.Object
org.apache.synapse.commons.beanstalk.enterprise.EnterpriseBeanstalkManager
Manages beanstalks configured in the Synapse Environment. Only one instance of this class is
created per Synapse environment. It is attached to the ServerContextInformation with
BeanstalkConstants.BEANSTALK_MANAGER_PROP_NAME property name.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Cleans up resources allocated by this BeanstalkManager.getBeanstalk(String name) Returns the beanstalk with the given name, null if it's not found.voidinit(Properties props) Initializes the beanstalk manager, which creates and initializes beanstalk defined in the given Properties instance.
-
Constructor Details
-
EnterpriseBeanstalkManager
public EnterpriseBeanstalkManager()
-
-
Method Details
-
init
Initializes the beanstalk manager, which creates and initializes beanstalk defined in the given Properties instance.- Parameters:
props- Properties to read beanstalk configurations from. Usually, source of this is synapse.properties file.
-
getBeanstalk
Returns the beanstalk with the given name, null if it's not found.- Parameters:
name- Name of the beanstalk.- Returns:
- Beanstalk specified by the name, null if it's not found.
-
destroy
public void destroy()Cleans up resources allocated by this BeanstalkManager.
-