Package org.apache.activemq.broker
Class BrokerFactory
- java.lang.Object
-
- org.apache.activemq.broker.BrokerFactory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BrokerService
createBroker(String brokerURI)
Creates a broker from a URI configurationstatic BrokerService
createBroker(String brokerURI, boolean startBroker)
Creates a broker from a URI configurationstatic BrokerService
createBroker(URI brokerURI)
Creates a broker from a URI configurationstatic BrokerService
createBroker(URI brokerURI, boolean startBroker)
Creates a broker from a URI configurationstatic BrokerFactoryHandler
createBrokerFactoryHandler(String type)
static boolean
getStartDefault()
static void
resetStartDefault()
static void
setStartDefault(boolean startDefault)
-
-
-
Method Detail
-
createBrokerFactoryHandler
public static BrokerFactoryHandler createBrokerFactoryHandler(String type) throws IOException
- Throws:
IOException
-
createBroker
public static BrokerService createBroker(URI brokerURI) throws Exception
Creates a broker from a URI configuration- Parameters:
brokerURI
- the URI scheme to configure the broker- Throws:
Exception
-
createBroker
public static BrokerService createBroker(URI brokerURI, boolean startBroker) throws Exception
Creates a broker from a URI configuration- Parameters:
brokerURI
- the URI scheme to configure the brokerstartBroker
- whether or not the broker should have itsBrokerService.start()
method called after construction- Throws:
Exception
-
createBroker
public static BrokerService createBroker(String brokerURI) throws Exception
Creates a broker from a URI configuration- Parameters:
brokerURI
- the URI scheme to configure the broker- Throws:
Exception
-
createBroker
public static BrokerService createBroker(String brokerURI, boolean startBroker) throws Exception
Creates a broker from a URI configuration- Parameters:
brokerURI
- the URI scheme to configure the brokerstartBroker
- whether or not the broker should have itsBrokerService.start()
method called after construction- Throws:
Exception
-
setStartDefault
public static void setStartDefault(boolean startDefault)
-
resetStartDefault
public static void resetStartDefault()
-
getStartDefault
public static boolean getStartDefault()
-
-