blob: b5f49aca3067e9954c17e8d87733cee0a25fe254 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Sun designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Sun in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
24 */
25
26package sun.tools.jconsole.resources;
27
28import java.util.*;
29
30import static java.awt.event.KeyEvent.*;
31
32/**
33 * <p> This class represents the <code>ResourceBundle</code>
34 * for the following package(s):
35 *
36 * <ol>
37 * <li> sun.tools.jconsole
38 * </ol>
39 *
40 * <P>
41 * Subclasses must override <code>getContents0</code> and provide an array,
42 * where each item in the array consists of a <code>String</code> key,
43 * and either a <code>String</code> value associated with that key,
44 * or if the keys ends with ".mnemonic", an element
45 * representing a mnemomic keycode <code>int</code> or <code>char</code>.
46 */
47public class JConsoleResources extends ListResourceBundle {
48
49 private static final String cr = System.getProperty("line.separator");
50
51 /**
52 * Returns the contents of this <code>ResourceBundle</code>.
53 *
54 * <p>
55 *
56 * @return the contents of this <code>ResourceBundle</code>.
57 */
58 protected Object[][] getContents0() {
59 return new Object[][] {
60 // NOTE 1: The value strings in this file containing "{0}" are
61 // processed by the java.text.MessageFormat class. Any
62 // single quotes appearing in these strings need to be
63 // doubled up.
64 //
65 // NOTE 2: To make working with this file a bit easier, please
66 // maintain these messages in ASCII sorted order by
67 // message key.
68 //
69 // LOCALIZE THIS
70 {" 1 day"," 1 day"},
71 {" 1 hour"," 1 hour"},
72 {" 1 min"," 1 min"},
73 {" 1 month"," 1 month"},
74 {" 1 year"," 1 year"},
75 {" 2 hours"," 2 hours"},
76 {" 3 hours"," 3 hours"},
77 {" 3 months"," 3 months"},
78 {" 5 min"," 5 min"},
79 {" 6 hours"," 6 hours"},
80 {" 6 months"," 6 months"},
81 {" 7 days"," 7 days"},
82 {"10 min","10 min"},
83 {"12 hours","12 hours"},
84 {"30 min","30 min"},
85 {"<","<"},
86 {"<<","<<"},
87 {">",">"},
88 {"ACTION","ACTION"},
89 {"ACTION_INFO","ACTION_INFO"},
90 {"All","All"},
91 {"Apply","Apply"},
92 {"Architecture","Architecture"},
93 {"Array, OpenType", "Array, OpenType"},
94 {"Array, OpenType, Numeric value viewer","Array, OpenType, Numeric value viewer"},
95 {"Attribute","Attribute"},
96 {"Attribute value","Attribute value"},
97 {"Attribute values","Attribute values"},
98 {"Attributes","Attributes"},
99 {"Blank", "Blank"},
100 {"BlockedCount WaitedCount",
101 "Total blocked: {0} Total waited: {1}" + cr},
102 {"Boot class path","Boot class path"},
103 {"BorderedComponent.moreOrLessButton.toolTip", "Toggle to show more or less information"},
104 {"CPU Usage","CPU Usage"},
105 {"CPUUsageFormat","CPU Usage: {0}%"},
106 {"Cancel","Cancel"},
107 {"Cascade", "Cascade"},
108 {"Cascade.mnemonic", 'C'},
109 {"Chart:", "Chart:"},
110 {"Chart:.mnemonic", 'C'},
111 {"Class path","Class path"},
112 {"Class","Class"},
113 {"ClassName","ClassName"},
114 {"ClassTab.infoLabelFormat", "<html>Loaded: {0} Unloaded: {1} Total: {2}</html>"},
115 {"ClassTab.loadedClassesPlotter.accessibleName", "Chart for Loaded Classes."},
116 {"Classes","Classes"},
117 {"Close","Close"},
118 {"Column.Name", "Name"},
119 {"Column.PID", "PID"},
120 {"Committed memory","Committed memory"},
121 {"Committed virtual memory","Committed virtual memory"},
122 {"Committed", "Committed"},
123 {"Compiler","Compiler"},
124 {"CompositeData","CompositeData"},
125 {"Config","Config"},
126 {"Connect", "Connect"},
127 {"Connect.mnemonic", 'C'},
128 {"Connect...","Connect..."},
129 {"ConnectDialog.connectButton.toolTip", "Connect to Java Virtual Machine"},
130 {"ConnectDialog.accessibleDescription", "Dialog for making a new connection to a local or remote Java Virtual Machine"},
131 {"ConnectDialog.masthead.accessibleName", "Masthead Graphic"},
132 {"ConnectDialog.masthead.title", "New Connection"},
133 {"ConnectDialog.statusBar.accessibleName", "Status Bar"},
134 {"ConnectDialog.title", "JConsole: New Connection"},
135 {"Connected. Click to disconnect.","Connected. Click to disconnect."},
136 {"Connection failed","Connection failed"},
137 {"Connection", "Connection"},
138 {"Connection.mnemonic", 'C'},
139 {"Connection name", "Connection name"},
140 {"ConnectionName (disconnected)","{0} (disconnected)"},
141 {"Constructor","Constructor"},
142 {"Current classes loaded", "Current classes loaded"},
143 {"Current heap size","Current heap size"},
144 {"Current value","Current value: {0}"},
145 {"Create", "Create"},
146 {"Daemon threads","Daemon threads"},
147 {"Disconnected. Click to connect.","Disconnected. Click to connect."},
148 {"Double click to expand/collapse","Double click to expand/collapse"},
149 {"Double click to visualize", "Double click to visualize"},
150 {"Description", "Description"},
151 {"Description: ", "Description: "},
152 {"Descriptor", "Descriptor"},
153 {"Details", "Details"},
154 {"Detect Deadlock", "Detect Deadlock"},
155 {"Detect Deadlock.mnemonic", 'D'},
156 {"Detect Deadlock.toolTip", "Detect deadlocked threads"},
157 {"Dimension is not supported:","Dimension is not supported:"},
158 {"Discard chart", "Discard chart"},
159 {"DurationDaysHoursMinutes","{0,choice,1#{0,number,integer} day |1.0<{0,number,integer} days }" +
160 "{1,choice,0<{1,number,integer} hours |1#{1,number,integer} hour |1<{1,number,integer} hours }" +
161 "{2,choice,0<{2,number,integer} minutes|1#{2,number,integer} minute|1.0<{2,number,integer} minutes}"},
162
163 {"DurationHoursMinutes","{0,choice,1#{0,number,integer} hour |1<{0,number,integer} hours }" +
164 "{1,choice,0<{1,number,integer} minutes|1#{1,number,integer} minute|1.0<{1,number,integer} minutes}"},
165
166 {"DurationMinutes","{0,choice,1#{0,number,integer} minute|1.0<{0,number,integer} minutes}"},
167 {"DurationSeconds","{0} seconds"},
168 {"Empty array", "Empty array"},
169 {"Empty opentype viewer", "Empty opentype viewer"},
170 {"Error","Error"},
171 {"Error: MBeans already exist","Error: MBeans already exist"},
172 {"Error: MBeans do not exist","Error: MBeans do not exist"},
173 {"Error:","Error:"},
174 {"Event","Event"},
175 {"Exit", "Exit"},
176 {"Exit.mnemonic", 'x'},
177 {"Fail to load plugin", "Warning: Fail to load plugin: {0}"},
178 {"FileChooser.fileExists.cancelOption", "Cancel"},
179 {"FileChooser.fileExists.message", "<html><center>File already exists:<br>{0}<br>Do you want to replace it?"},
180 {"FileChooser.fileExists.okOption", "Replace"},
181 {"FileChooser.fileExists.title", "File Exists"},
182 {"FileChooser.savedFile", "<html>Saved to file:<br>{0}<br>({1} bytes)"},
183 {"FileChooser.saveFailed.message", "<html><center>Save to file failed:<br>{0}<br>{1}"},
184 {"FileChooser.saveFailed.title", "Save Failed"},
185 {"Free physical memory","Free physical memory"},
186 {"Free swap space","Free swap space"},
187 {"Garbage collector","Garbage collector"},
188 {"GTK","GTK"},
189 {"GcInfo","Name = ''{0}'', Collections = {1,choice,-1#Unavailable|0#{1,number,integer}}, Total time spent = {2}"},
190 {"GC time","GC time"},
191 {"GC time details","{0} on {1} ({2} collections)"},
192 {"Heap Memory Usage","Heap Memory Usage"},
193 {"Heap", "Heap"},
194 {"Help.AboutDialog.accessibleDescription", "Dialog containing information about JConsole and JDK versions"},
195 {"Help.AboutDialog.jConsoleVersion", "JConsole version:<br>{0}"},
196 {"Help.AboutDialog.javaVersion", "Java VM version:<br>{0}"},
197 {"Help.AboutDialog.masthead.accessibleName", "Masthead Graphic"},
198 {"Help.AboutDialog.masthead.title", "About JConsole"},
199 {"Help.AboutDialog.title", "JConsole: About"},
200 {"Help.AboutDialog.userGuideLink", "JConsole User Guide:<br>{0}"},
201 {"Help.AboutDialog.userGuideLink.mnemonic", 'U'},
202 {"Help.AboutDialog.userGuideLink.url", "http://java.sun.com/javase/6/docs/technotes/guides/management/jconsole.html"},
203 {"HelpMenu.About.title", "About JConsole"},
204 {"HelpMenu.About.title.mnemonic", 'A'},
205 {"HelpMenu.UserGuide.title", "Online User Guide"},
206 {"HelpMenu.UserGuide.title.mnemonic", 'U'},
207 {"HelpMenu.title", "Help"},
208 {"HelpMenu.title.mnemonic", 'H'},
209 {"Hotspot MBeans...", "Hotspot MBeans..."},
210 {"Hotspot MBeans....mnemonic", 'H'},
211 {"Hotspot MBeans.dialog.accessibleDescription", "Dialog for managing Hotspot MBeans"},
212 {"Impact","Impact"},
213 {"Info","Info"},
214 {"INFO","INFO"},
215 {"Invalid plugin path", "Warning: Invalid plugin path: {0}"},
216 {"Invalid URL", "Invalid URL: {0}"},
217 {"Is","Is"},
218 {"Java Monitoring & Management Console", "Java Monitoring & Management Console"},
219 {"JConsole: ","JConsole: {0}"},
220 {"JConsole version","JConsole version \"{0}\""},
221 {"JConsole.accessibleDescription", "Java Monitoring & Management Console"},
222 {"JIT compiler","JIT compiler"},
223 {"Java Virtual Machine","Java Virtual Machine"},
224 {"Java","Java"},
225 {"Library path","Library path"},
226 {"Listeners","Listeners"},
227 {"Live Threads","Live threads"},
228 {"Loaded", "Loaded"},
229 {"Local Process:", "Local Process:"},
230 {"Local Process:.mnemonic", 'L'},
231 {"Look and Feel","Look and Feel"},
232 {"Masthead.font", "Dialog-PLAIN-25"},
233 {"Management Not Enabled","<b>Note</b>: The management agent is not enabled on this process."},
234 {"Management Will Be Enabled","<b>Note</b>: The management agent will be enabled on this process."},
235 {"MBeanAttributeInfo","MBeanAttributeInfo"},
236 {"MBeanInfo","MBeanInfo"},
237 {"MBeanNotificationInfo","MBeanNotificationInfo"},
238 {"MBeanOperationInfo","MBeanOperationInfo"},
239 {"MBeans","MBeans"},
240 {"MBeansTab.clearNotificationsButton", "Clear"},
241 {"MBeansTab.clearNotificationsButton.mnemonic", 'C'},
242 {"MBeansTab.clearNotificationsButton.toolTip", "Clear notifications"},
243 {"MBeansTab.compositeNavigationMultiple", "Composite Navigation {0}/{1}"},
244 {"MBeansTab.compositeNavigationSingle", "Composite Navigation"},
245 {"MBeansTab.refreshAttributesButton", "Refresh"},
246 {"MBeansTab.refreshAttributesButton.mnemonic", 'R'},
247 {"MBeansTab.refreshAttributesButton.toolTip", "Refresh attributes"},
248 {"MBeansTab.subscribeNotificationsButton", "Subscribe"},
249 {"MBeansTab.subscribeNotificationsButton.mnemonic", 'S'},
250 {"MBeansTab.subscribeNotificationsButton.toolTip", "Start listening for notifications"},
251 {"MBeansTab.tabularNavigationMultiple", "Tabular Navigation {0}/{1}"},
252 {"MBeansTab.tabularNavigationSingle", "Tabular Navigation"},
253 {"MBeansTab.unsubscribeNotificationsButton", "Unsubscribe"},
254 {"MBeansTab.unsubscribeNotificationsButton.mnemonic", 'U'},
255 {"MBeansTab.unsubscribeNotificationsButton.toolTip", "Stop listening for notifications"},
256 {"Manage Hotspot MBeans in: ", "Manage Hotspot MBeans in: "},
257 {"Max","Max"},
258 {"Maximum heap size","Maximum heap size"},
259 {"Memory","Memory"},
260 {"MemoryPoolLabel", "Memory Pool \"{0}\""},
261 {"MemoryTab.heapPlotter.accessibleName", "Memory usage chart for heap."},
262 {"MemoryTab.infoLabelFormat", "<html>Used: {0} Committed: {1} Max: {2}</html>"},
263 {"MemoryTab.nonHeapPlotter.accessibleName", "Memory usage chart for non heap."},
264 {"MemoryTab.poolChart.aboveThreshold", "which is above the threshold of {0}.\n"},
265 {"MemoryTab.poolChart.accessibleName", "Memory Pool Usage Chart."},
266 {"MemoryTab.poolChart.belowThreshold", "which is below the threshold of {0}.\n"},
267 {"MemoryTab.poolPlotter.accessibleName", "Memory usage chart for {0}."},
268 {"Message","Message"},
269 {"Method successfully invoked", "Method successfully invoked"},
270 {"Minimize All", "Minimize All"},
271 {"Minimize All.mnemonic", 'M'},
272 {"Minus Version", "This is {0} version {1}"},
273 {"Monitor locked",
274 " - locked {0}" + cr},
275 {"Motif","Motif"},
276 {"Name Build and Mode","{0} (build {1}, {2})"},
277 {"Name and Build","{0} (build {1})"},
278 {"Name","Name"},
279 {"Name: ","Name: "},
280 {"Name State",
281 "Name: {0}" + cr +
282 "State: {1}" + cr},
283 {"Name State LockName",
284 "Name: {0}" + cr +
285 "State: {1} on {2}" + cr},
286 {"Name State LockName LockOwner",
287 "Name: {0}" + cr +
288 "State: {1} on {2} owned by: {3}" + cr},
289 {"New Connection...", "New Connection..."},
290 {"New Connection....mnemonic", 'N'},
291 {"New value applied","New value applied"},
292 {"No attribute selected","No attribute selected"},
293 {"No deadlock detected","No deadlock detected"},
294 {"No value selected","No value selected"},
295 {"Non-Heap Memory Usage","Non-Heap Memory Usage"},
296 {"Non-Heap", "Non-Heap"},
297 {"Not Yet Implemented","Not Yet Implemented"},
298 {"Not a valid event broadcaster", "Not a valid event broadcaster"},
299 {"Notification","Notification"},
300 {"Notification buffer","Notification buffer"},
301 {"Notifications","Notifications"},
302 {"NotifTypes", "NotifTypes"},
303 {"Number of Threads","Number of Threads"},
304 {"Number of Loaded Classes","Number of Loaded Classes"},
305 {"Number of processors","Number of processors"},
306 {"ObjectName","ObjectName"},
307 {"Operating System","Operating System"},
308 {"Operation","Operation"},
309 {"Operation invocation","Operation invocation"},
310 {"Operation return value", "Operation return value"},
311 {"Operations","Operations"},
312 {"Overview","Overview"},
313 {"OverviewPanel.plotter.accessibleName", "Chart for {0}."},
314 {"Parameter", "Parameter"},
315 {"Password: ", "Password: "},
316 {"Password: .mnemonic", 'P'},
317 {"Password.accessibleName", "Password"},
318 {"Peak","Peak"},
319 {"Perform GC", "Perform GC"},
320 {"Perform GC.mnemonic", 'G'},
321 {"Perform GC.toolTip", "Request Garbage Collection"},
322 {"Plotter.accessibleName", "Chart"},
323 {"Plotter.accessibleName.keyAndValue", "{0}={1}\n"},
324 {"Plotter.accessibleName.noData", "No data plotted."},
325 {"Plotter.saveAsMenuItem", "Save data as..."},
326 {"Plotter.saveAsMenuItem.mnemonic", 'a'},
327 {"Plotter.timeRangeMenu", "Time Range"},
328 {"Plotter.timeRangeMenu.mnemonic", 'T'},
329 {"Problem adding listener","Problem adding listener"},
330 {"Problem displaying MBean", "Problem displaying MBean"},
331 {"Problem invoking", "Problem invoking"},
332 {"Problem removing listener","Problem removing listener"},
333 {"Problem setting attribute","Problem setting attribute"},
334 {"Process CPU time","Process CPU time"},
335 {"R/W","R/W"},
336 {"Readable","Readable"},
337 {"Received","Received"},
338 {"Reconnect","Reconnect"},
339 {"Remote Process:", "Remote Process:"},
340 {"Remote Process:.mnemonic", 'R'},
341 {"Remote Process.textField.accessibleName", "Remote Process"},
342 {"Remove","Remove"},
343 {"Restore All", "Restore All"},
344 {"Restore All.mnemonic", 'R'},
345 {"Return value", "Return value"},
346 {"ReturnType", "ReturnType"},
347 {"SeqNum","SeqNum"},
348 {"Size Bytes", "{0,number,integer} bytes"},
349 {"Size Gb","{0} Gb"},
350 {"Size Kb","{0} Kb"},
351 {"Size Mb","{0} Mb"},
352 {"Source","Source"},
353 {"Stack trace",
354 cr + "Stack trace: " + cr},
355 {"Success:","Success:"},
356 // Note: SummaryTab.headerDateTimeFormat can be one the following:
357 // 1. A combination of two styles for date and time, using the
358 // constants from class DateFormat: SHORT, MEDIUM, LONG, FULL.
359 // Example: "MEDIUM,MEDIUM" or "FULL,SHORT"
360 // 2. An explicit string pattern used for creating an instance
361 // of the class SimpleDateFormat.
362 // Example: "yyyy-MM-dd HH:mm:ss" or "M/d/yyyy h:mm:ss a"
363 {"SummaryTab.headerDateTimeFormat", "FULL,FULL"},
364 {"SummaryTab.pendingFinalization.label", "Pending finalization"},
365 {"SummaryTab.pendingFinalization.value", "{0} objects"},
366 {"SummaryTab.tabName", "VM Summary"},
367 {"SummaryTab.vmVersion","{0} version {1}"},
368 {"TabularData are not supported", "TabularData are not supported"},
369 {"Threads","Threads"},
370 {"ThreadTab.infoLabelFormat", "<html>Live: {0} Peak: {1} Total: {2}</html>"},
371 {"ThreadTab.threadInfo.accessibleName", "Thread Information"},
372 {"ThreadTab.threadPlotter.accessibleName", "Chart for number of threads."},
373 {"Threshold","Threshold"},
374 {"Tile", "Tile"},
375 {"Tile.mnemonic", 'T'},
376 {"Time Range:", "Time Range:"},
377 {"Time Range:.mnemonic", 'T'},
378 {"Time", "Time"},
379 {"TimeStamp","TimeStamp"},
380 {"Total Loaded", "Total Loaded"},
381 {"Total classes loaded","Total classes loaded"},
382 {"Total classes unloaded","Total classes unloaded"},
383 {"Total compile time","Total compile time"},
384 {"Total physical memory","Total physical memory"},
385 {"Total threads started","Total threads started"},
386 {"Total swap space","Total swap space"},
387 {"Type","Type"},
388 {"Unavailable","Unavailable"},
389 {"UNKNOWN","UNKNOWN"},
390 {"Unknown Host","Unknown Host: {0}"},
391 {"Unregister", "Unregister"},
392 {"Uptime","Uptime"},
393 {"Uptime: ","Uptime: "},
394 {"Usage Threshold","Usage Threshold"},
395 {"remoteTF.usage","<b>Usage</b>: &lt;hostname&gt;:&lt;port&gt; OR service:jmx:&lt;protocol&gt;:&lt;sap&gt;"},
396 {"Used","Used"},
397 {"Username: ", "Username: "},
398 {"Username: .mnemonic", 'U'},
399 {"Username.accessibleName", "User Name"},
400 {"UserData","UserData"},
401 {"Virtual Machine","Virtual Machine"},
402 {"VM arguments","VM arguments"},
403 {"VM","VM"},
404 {"VMInternalFrame.accessibleDescription", "Internal frame for monitoring a Java Virtual Machine"},
405 {"Value","Value"},
406 {"Vendor", "Vendor"},
407 {"Verbose Output","Verbose Output"},
408 {"Verbose Output.toolTip", "Enable verbose output for class loading system"},
409 {"View value", "View value"},
410 {"View","View"},
411 {"Window", "Window"},
412 {"Window.mnemonic", 'W'},
413 {"Windows","Windows"},
414 {"Writable","Writable"},
415 {"You cannot drop a class here", "You cannot drop a class here"},
416 {"collapse", "collapse"},
417 {"connectionFailed1","Connection Failed: Retry?"},
418 {"connectionFailed2","The connection to {0} did not succeed.<br>" +
419 "Would you like to try again?"},
420 {"connectionLost1","Connection Lost: Reconnect?"},
421 {"connectionLost2","The connection to {0} has been lost " +
422 "because the remote process has been terminated.<br>" +
423 "Would you like to reconnect?"},
424 {"connectingTo1","Connecting to {0}"},
425 {"connectingTo2","You are currently being connected to {0}.<br>" +
426 "This will take a few moments."},
427 {"deadlockAllTab","All"},
428 {"deadlockTab","Deadlock"},
429 {"deadlockTabN","Deadlock {0}"},
430 {"expand", "expand"},
431 {"kbytes","{0} kbytes"},
432 {"operation","operation"},
433 {"plot", "plot"},
434 {"visualize","visualize"},
435 {"zz usage text",
436 "Usage: {0} [ -interval=n ] [ -notile ] [ -pluginpath <path> ] [ -version ] [ connection ... ]" + cr +
437 cr +
438 " -interval Set the update interval to n seconds (default is 4 seconds)" + cr +
439 " -notile Do not tile windows initially (for two or more connections)" + cr +
440 " -pluginpath Specify the path that jconsole uses to look up the plugins" + cr +
441 " -version Print program version" + cr +
442 cr +
443 " connection = pid || host:port || JMX URL (service:jmx:<protocol>://...)" + cr +
444 " pid The process id of a target process" + cr +
445 " host A remote host name or IP address" + cr +
446 " port The port number for the remote connection" + cr +
447 cr +
448 " -J Specify the input arguments to the Java virtual machine" + cr +
449 " on which jconsole is running"},
450 // END OF MATERIAL TO LOCALIZE
451 };
452 }
453
454 public synchronized Object[][] getContents() {
455 return getContents0();
456 }
457}