Class EnterpriseBeanstalkManager

java.lang.Object
org.apache.synapse.commons.beanstalk.enterprise.EnterpriseBeanstalkManager

public class EnterpriseBeanstalkManager extends Object
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 Details

    • EnterpriseBeanstalkManager

      public EnterpriseBeanstalkManager()
  • Method Details

    • init

      public void init(Properties props)
      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

      public EnterpriseBeanstalk getBeanstalk(String name)
      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.