1 4 package com.tc.management; 5 6 import java.util.ResourceBundle ; 7 8 class ManagementResources { 9 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.getString("type.dso-client")); 30 } 31 32 String getSessionsType() { 33 return TerracottaManagement.quoteIfNecessary(resources.getString("type.sessions")); 34 } 35 36 public String getTerracottaClusterType() { 37 return TerracottaManagement.quoteIfNecessary(resources.getString("type.cluster")); 38 } 39 40 String getTerracottaServerType() { 41 return TerracottaManagement.quoteIfNecessary(resources.getString("type.l2")); 42 } 43 44 String getTransactionSubsystem() { 45 return TerracottaManagement.quoteIfNecessary(resources.getString("subsystem.tx")); 46 } 47 48 String getLockingSubsystem() { 49 return TerracottaManagement.quoteIfNecessary(resources.getString("subsystem.locking")); 50 } 51 52 String getObjectManagementSubsystem() { 53 return TerracottaManagement.quoteIfNecessary(resources.getString("subsystem.object-management")); 54 } 55 56 String getNoneSubsystem() { 57 return TerracottaManagement.quoteIfNecessary(resources.getString("subsystem.none")); 58 } 59 60 61 } | Popular Tags |