allow folks to serialize the broker service if they really need to

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@392035 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-04-06 18:56:36 +00:00
parent 2f7ab76817
commit b76530740e
1 changed files with 5 additions and 2 deletions

View File

@ -18,6 +18,7 @@ package org.apache.activemq.broker;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.Serializable;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.util.ArrayList; import java.util.ArrayList;
@ -79,10 +80,12 @@ import edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean;
* *
* @version $Revision: 1.1 $ * @version $Revision: 1.1 $
*/ */
public class BrokerService implements Service { public class BrokerService implements Service, Serializable {
public static final String DEFAULT_PORT = "61616"; public static final String DEFAULT_PORT = "61616";
private static final Log log = LogFactory.getLog(BrokerService.class); private static final Log log = LogFactory.getLog(BrokerService.class);
private static final long serialVersionUID = 7353129142305630237L;
private boolean useJmx = true; private boolean useJmx = true;
private boolean persistent = true; private boolean persistent = true;
@ -106,7 +109,7 @@ public class BrokerService implements Service {
private List registeredMBeanNames = new CopyOnWriteArrayList(); private List registeredMBeanNames = new CopyOnWriteArrayList();
private List jmsConnectors = new CopyOnWriteArrayList(); private List jmsConnectors = new CopyOnWriteArrayList();
private MasterConnector masterConnector; private MasterConnector masterConnector;
private Thread shutdownHook; private transient Thread shutdownHook;
private String[] transportConnectorURIs; private String[] transportConnectorURIs;
private String[] networkConnectorURIs; private String[] networkConnectorURIs;
private String[] proxyConnectorURIs; private String[] proxyConnectorURIs;