01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package org.jboss.monitor;
23:
24: /**
25: * Metrics constants interface contains JMS message types
26: * used to identify different monitoring point
27: * message producers in the server. When publishing a message
28: * to the metrics topic, you should type the message source.
29: * For example: <br><pre>
30: *
31: * Message myMessage;
32: * myMessage.setJMSType(INVOCATION_METRICS);
33: *
34: * </pre>
35: *
36: * In addition, this interface contains some generic JMS property
37: * identifiers for the metrics messages.
38: *
39: * @author <a href="mailto:jplindfo@helsinki.fi">Juha Lindfors</a>
40: * @version $Revision: 57209 $
41: */
42: public interface MetricsConstants {
43:
44: // Constants ----------------------------------------------------
45: /** Method invocation metrics producer. */
46: final static String INVOCATION_METRICS = "Invocation";
47: /** Bean cache metrics producer. */
48: final static String BEANCACHE_METRICS = "BeanCache";
49: /** System resource metrics producer. */
50: final static String SYSTEM_METRICS = "System";
51:
52: /** Message property 'TIME' */
53: final static String TIME = "TIME";
54: /** Message property 'APPLICATION' */
55: final static String APPLICATION = "APPLICATION";
56: /** Message property 'BEAN' */
57: final static String BEAN = "BEAN";
58: /** Message propertu 'PRIMARY_KEY' */
59: final static String PRIMARY_KEY = "PRIMARY_KEY";
60: /** Message property 'TYPE' */
61: final static String TYPE = "TYPE";
62: /** Message property 'ACTIVITY' */
63: final static String ACTIVITY = "ACTIVITY";
64: /** Message property 'CHECKPOINT' */
65: final static String CHECKPOINT = "CHECKPOINT";
66: /** Message property 'METHOD' */
67: final static String METHOD = "METHOD";
68:
69: /** System Monitor TYPE */
70: final static String THREAD_MONITOR = "ThreadMonitor";
71: /** System Monitor TYPE */
72: final static String MEMORY_MONITOR = "MemoryMonitor";
73:
74: }
|