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.mq.pm.jdbc2;
023:
024: import javax.management.ObjectName;
025:
026: import org.jboss.mq.pm.CacheStoreMBean;
027: import org.jboss.system.ServiceMBean;
028:
029: /**
030: * MBean interface.
031: *
032: * @author Jayesh Parayali (jayeshpk1@yahoo.com)
033: * @author Hiram Chirino (cojonudo14@hotmail.com)
034: * @author Adrian Brock (adrian@jboss.com)
035: * @version $Revision: 57198 $
036: */
037: public interface PersistenceManagerMBean extends ServiceMBean,
038: org.jboss.mq.pm.PersistenceManagerMBean, CacheStoreMBean {
039: /**
040: * Get the instance of the persistence manager
041: *
042: * @return the instance
043: */
044: Object getInstance();
045:
046: /**
047: * Get the object name of the DataSource
048: *
049: * @return the object name of the DataSource
050: */
051: ObjectName getConnectionManager();
052:
053: /**
054: * Set the object name of the DataSource
055: *
056: * @param connectionManagerName the object name of the DataSource
057: */
058: void setConnectionManager(ObjectName connectionManagerName);
059:
060: /**
061: * Gets the sqlProperties.
062: *
063: * @return Returns a Properties
064: */
065: String getSqlProperties();
066:
067: /**
068: * Sets the sqlProperties.
069: *
070: * @param sqlProperties The sqlProperties to set
071: */
072: void setSqlProperties(String value);
073:
074: /**
075: * Sets the ConnectionRetryAttempts.
076: *
077: * @param connectionRetryAttempts value
078: */
079: void setConnectionRetryAttempts(int value);
080:
081: /**
082: * Gets the ConnectionRetryAttempts.
083: *
084: * @return Returns a ConnectionRetryAttempt value
085: */
086: int getConnectionRetryAttempts();
087:
088: /**
089: * Any override recovery transaction timeout
090: *
091: * @return the override transaction timeout
092: */
093: int getRecoveryTimeout();
094:
095: /**
096: * Set the override recovery transaction timeout
097: *
098: * @param timeout the timeout
099: */
100: void setRecoveryTimeout(int timeout);
101:
102: /**
103: * Returns the recovery retries
104: *
105: * @return the retries
106: */
107: int getRecoveryRetries();
108:
109: /**
110: * Set the recovery retries
111: *
112: * @param retries the number of retries
113: */
114: void setRecoveryRetries(int retries);
115:
116: /**
117: * Returns the recover messages chunk
118: *
119: * @return the chunk size
120: */
121: int getRecoverMessagesChunk();
122:
123: /**
124: * Set the recover messages chunk
125: *
126: * @param recoverMessagesChunk the chunk size
127: */
128: void setRecoverMessagesChunk(int recoverMessagesChunk);
129:
130: /**
131: * Get the xaRecovery.
132: *
133: * @return the xaRecovery.
134: */
135: boolean isXARecovery();
136:
137: /**
138: * Set the xaRecovery.
139: *
140: * @param xaRecovery the xaRecovery.
141: */
142: void setXARecovery(boolean xaRecovery);
143:
144: /**
145: * Get the statement retries
146: *
147: * @return the retries
148: */
149: int getStatementRetries();
150:
151: /**
152: * Set the statement retries
153: *
154: * @param statementRetries the retries
155: */
156: void setStatementRetries(int statementRetries);
157: }
|