001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.ejb.plugins.jms;
023:
024: import org.jboss.metadata.MessageDrivenMetaData;
025:
026: /**
027: * MBean interface.
028: *
029: * @author <a href="mailto:adrian@jboss.com">Adrian Brock</a>
030: * @version <tt>$Revision: 57209 $</tt>
031: */
032: public interface JMSContainerInvokerMBean extends
033: org.jboss.system.ServiceMBean {
034: /**
035: * Get the minimum pool size
036: *
037: * @return the minimum pool size
038: */
039: int getMinPoolSize();
040:
041: /**
042: * Set the minimum pool size
043: *
044: * @param minPoolSize the size
045: */
046: void setMinPoolSize(int minPoolSize);
047:
048: /**
049: * Get the maximum pool size
050: *
051: * @return the maximum pool size
052: */
053: int getMaxPoolSize();
054:
055: /**
056: * Set the maximum pool size
057: *
058: * @param maxPoolSize the size
059: */
060: void setMaxPoolSize(int maxPoolSize);
061:
062: /**
063: * Get the keep alive millis
064: *
065: * @return the milliseconds
066: */
067: long getKeepAliveMillis();
068:
069: /**
070: * Set the keep alive millis
071: *
072: * @param keepAlive the milliseconds
073: */
074: void setKeepAliveMillis(long keepAlive);
075:
076: /**
077: * Get the maximum number of messages
078: *
079: * @return the number of messages
080: */
081: int getMaxMessages();
082:
083: /**
084: * Set the maximum number of messages
085: *
086: * @param maxMessages the number of messages
087: */
088: void setMaxMessages(int maxMessages);
089:
090: /**
091: * Get the message driven metadata
092: *
093: * @return the metadata
094: */
095: MessageDrivenMetaData getMetaData();
096:
097: /**
098: * Get whether delivery is active
099: *
100: * @return true when active
101: */
102: boolean getDeliveryActive();
103:
104: /**
105: * Get whether JBossMQ destinations should be constructed
106: * when the destination is not in JNDI
107: *
108: * @return true to create
109: */
110: boolean getCreateJBossMQDestination();
111:
112: /**
113: * Start delivery
114: *
115: * @throws Exception for any error
116: */
117: void startDelivery() throws Exception;
118:
119: /**
120: * Stop delivery
121: *
122: * @throws Exception for any error
123: */
124: void stopDelivery() throws Exception;
125: }
|