KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > tm > recovery > RecoveryManagerServiceMBean


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.tm.recovery;
23
24 import javax.management.ObjectName JavaDoc;
25
26 import org.jboss.system.ServiceMBean;
27
28 /**
29  * MBean interface of the recovery manager service.
30  *
31  * @author <a HREF="mailto:bill@jboss.org">Bill Burke</a>
32  * @version $Revision: 37459 $
33  */

34 public interface RecoveryManagerServiceMBean
35       extends ServiceMBean
36 {
37    /**
38     * Gets the Xid factory's object name.
39     *
40     * @return the Xid factory's object name.
41     */

42    ObjectName JavaDoc getXidFactory();
43
44    /**
45     * Sets the Xid factory's object name.
46     *
47     * @param xidFactory the Xid factory's object name.
48     */

49    void setXidFactory(ObjectName JavaDoc xidFactory);
50
51    /**
52     * Gets the transaction manager's object name.
53     *
54     * @return the transaction manager's object name.
55     */

56    ObjectName JavaDoc getTransactionManager();
57
58    /**
59     * Sets the transaction manager's object name.
60     *
61     * @param txManager the transaction manager's object name.
62     */

63    void setTransactionManager(ObjectName JavaDoc txManager);
64
65    /**
66     * Sets the recovery logger.
67     *
68     * @param recoveryLogger a <code>RecoveryLoggerInstance</code>.
69     */

70    void setRecoveryLogger(RecoveryLoggerInstance recoveryLogger);
71
72    /**
73     * Registers a <code>Recoverable</code> instance with the recovery manager
74     * service.
75     *
76     * @param recoverable the <code>Recoverable</code> instance to be registered.
77     */

78    void registerRecoverable(Recoverable recoverable);
79
80    /**
81     * Performs crash recovery.
82     */

83    void recover();
84 }
85
Popular Tags