KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > management > ManagementResources


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.management;
5
6 import java.util.ResourceBundle JavaDoc;
7
8 class ManagementResources {
9
10   private final ResourceBundle JavaDoc resources;
11
12   ManagementResources() {
13     resources = ResourceBundle.getBundle("management");
14   }
15
16   String JavaDoc getPublicMBeanDomain() {
17     return resources.getString("domain.public");
18   }
19
20   String JavaDoc getInternalMBeanDomain() {
21     return resources.getString("domain.internal");
22   }
23
24   String JavaDoc getNodeNameSystemProperty() {
25     return resources.getString("system-property.node-name");
26   }
27
28   String JavaDoc getDsoClientType() {
29     return TerracottaManagement.quoteIfNecessary(resources.getString("type.dso-client"));
30   }
31
32   String JavaDoc getSessionsType() {
33     return TerracottaManagement.quoteIfNecessary(resources.getString("type.sessions"));
34   }
35
36   public String JavaDoc getTerracottaClusterType() {
37         return TerracottaManagement.quoteIfNecessary(resources.getString("type.cluster"));
38     }
39
40   String JavaDoc getTerracottaServerType() {
41     return TerracottaManagement.quoteIfNecessary(resources.getString("type.l2"));
42   }
43
44   String JavaDoc getTransactionSubsystem() {
45     return TerracottaManagement.quoteIfNecessary(resources.getString("subsystem.tx"));
46   }
47
48   String JavaDoc getLockingSubsystem() {
49     return TerracottaManagement.quoteIfNecessary(resources.getString("subsystem.locking"));
50   }
51
52   String JavaDoc getObjectManagementSubsystem() {
53     return TerracottaManagement.quoteIfNecessary(resources.getString("subsystem.object-management"));
54   }
55
56   String JavaDoc getNoneSubsystem() {
57     return TerracottaManagement.quoteIfNecessary(resources.getString("subsystem.none"));
58   }
59
60
61 }
Popular Tags