KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > event > tx > TransactionsRecoveryEvent


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.admin.event.tx;
25
26 import com.sun.enterprise.admin.event.*;
27
28 //i18n import
29
import com.sun.enterprise.util.i18n.StringManager;
30
31 /**
32  * TransactionsRecoveryEvent - emitted by DAS to send requests to Ejb Timer Service
33  * Attibutes: actionType, from, servers
34  */

35 public class TransactionsRecoveryEvent extends AdminEvent implements CommandEvent {
36
37     /**
38      * Event type
39      */

40     public static final String JavaDoc eventType = TransactionsRecoveryEvent.class.getName();
41
42     /**
43      * Attributes ()
44      */

45     private String JavaDoc _serverName; //server instance name to recover
46
private String JavaDoc _logDir; //path to log files directory (can be null)
47

48     /**
49      * Create a new TransactionsRecoveryEvent.
50      * @param instance name of the instance to which the event applies
51      * @param serverNameToRecover name of server instance to recover transactions
52      * @param logDirPath - path to log files directory (can be null)
53      */

54     public TransactionsRecoveryEvent(String JavaDoc instance, String JavaDoc serverNameToRecover, String JavaDoc logDirPath) {
55         this(eventType, instance, serverNameToRecover, logDirPath);
56     }
57
58     /**
59      * Create a new TransactionsRecoveryEvent.
60      * @param type event type, a string representation for the event
61      * @param instance name of the instance to which the event applies
62      * @param serverNameToRecover name of server instance to recover transactions
63      * @param logDirPath - path to log files directory (can be null)
64      */

65     public TransactionsRecoveryEvent(String JavaDoc type, String JavaDoc instance, String JavaDoc serverNameToRecover, String JavaDoc logDirPath) {
66         super(type, instance);
67         _serverName = serverNameToRecover;
68         _logDir = logDirPath;
69     }
70
71     /**
72      * Get serverName param
73      */

74     public String JavaDoc getServerName() {
75         return _serverName;
76     }
77
78     /**
79      * Get logdir param
80      */

81     public String JavaDoc getLogDir() {
82         return _logDir;
83     }
84 }
85
Popular Tags