01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.management;
05:
06: import java.util.ResourceBundle;
07:
08: class ManagementResources {
09:
10: private final ResourceBundle resources;
11:
12: ManagementResources() {
13: resources = ResourceBundle.getBundle("management");
14: }
15:
16: String getPublicMBeanDomain() {
17: return resources.getString("domain.public");
18: }
19:
20: String getInternalMBeanDomain() {
21: return resources.getString("domain.internal");
22: }
23:
24: String getNodeNameSystemProperty() {
25: return resources.getString("system-property.node-name");
26: }
27:
28: String getDsoClientType() {
29: return TerracottaManagement.quoteIfNecessary(resources
30: .getString("type.dso-client"));
31: }
32:
33: String getSessionsType() {
34: return TerracottaManagement.quoteIfNecessary(resources
35: .getString("type.sessions"));
36: }
37:
38: public String getTerracottaClusterType() {
39: return TerracottaManagement.quoteIfNecessary(resources
40: .getString("type.cluster"));
41: }
42:
43: String getTerracottaServerType() {
44: return TerracottaManagement.quoteIfNecessary(resources
45: .getString("type.l2"));
46: }
47:
48: String getTransactionSubsystem() {
49: return TerracottaManagement.quoteIfNecessary(resources
50: .getString("subsystem.tx"));
51: }
52:
53: String getLockingSubsystem() {
54: return TerracottaManagement.quoteIfNecessary(resources
55: .getString("subsystem.locking"));
56: }
57:
58: String getObjectManagementSubsystem() {
59: return TerracottaManagement.quoteIfNecessary(resources
60: .getString("subsystem.object-management"));
61: }
62:
63: String getNoneSubsystem() {
64: return TerracottaManagement.quoteIfNecessary(resources
65: .getString("subsystem.none"));
66: }
67:
68: }
|