1 /*
   2  * Copyright (c) 2003, Oracle and/or its affiliates. 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.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.corba.se.spi.monitoring;
  27 
  28 public interface MonitoringConstants
  29 {
  30     public static final String DEFAULT_MONITORING_ROOT = "orb";
  31     public static final String DEFAULT_MONITORING_ROOT_DESCRIPTION =
  32         "ORB Management and Monitoring Root";
  33 
  34     //
  35     // Connection Monitoring
  36     //
  37 
  38     public static final String CONNECTION_MONITORING_ROOT =
  39         "Connections";
  40     public static final String CONNECTION_MONITORING_ROOT_DESCRIPTION =
  41         "Statistics on inbound/outbound connections";
  42 
  43     public static final String INBOUND_CONNECTION_MONITORING_ROOT =
  44         "Inbound";
  45     public static final String INBOUND_CONNECTION_MONITORING_ROOT_DESCRIPTION=
  46         "Statistics on inbound connections";
  47 
  48     public static final String OUTBOUND_CONNECTION_MONITORING_ROOT =
  49         "Outbound";
  50     public static final String OUTBOUND_CONNECTION_MONITORING_ROOT_DESCRIPTION=
  51         "Statistics on outbound connections";
  52 
  53     public static final String CONNECTION_MONITORING_DESCRIPTION =
  54         "Connection statistics";
  55 
  56     public static final String CONNECTION_TOTAL_NUMBER_OF_CONNECTIONS =
  57         "NumberOfConnections";
  58     public static final String CONNECTION_TOTAL_NUMBER_OF_CONNECTIONS_DESCRIPTION =
  59         "The total number of connections";
  60     public static final String CONNECTION_NUMBER_OF_IDLE_CONNECTIONS =
  61         "NumberOfIdleConnections";
  62     public static final String CONNECTION_NUMBER_OF_IDLE_CONNECTIONS_DESCRIPTION =
  63         "The number of idle connections";
  64     public static final String CONNECTION_NUMBER_OF_BUSY_CONNECTIONS =
  65         "NumberOfBusyConnections";
  66     public static final String CONNECTION_NUMBER_OF_BUSY_CONNECTIONS_DESCRIPTION =
  67         "The number of busy connections";
  68 
  69     //
  70     // ThreadPool and WorkQueue monitoring constants
  71     //
  72 
  73     public static final String THREADPOOL_MONITORING_ROOT = "threadpool";
  74     public static final String THREADPOOL_MONITORING_ROOT_DESCRIPTION =
  75         "Monitoring for all ThreadPool instances";
  76     public static final String THREADPOOL_MONITORING_DESCRIPTION =
  77         "Monitoring for a ThreadPool";
  78     public static final String THREADPOOL_CURRENT_NUMBER_OF_THREADS =
  79         "currentNumberOfThreads";
  80     public static final String THREADPOOL_CURRENT_NUMBER_OF_THREADS_DESCRIPTION =
  81         "Current number of total threads in the ThreadPool";
  82     public static final String THREADPOOL_NUMBER_OF_AVAILABLE_THREADS =
  83         "numberOfAvailableThreads";
  84     public static final String THREADPOOL_NUMBER_OF_AVAILABLE_THREADS_DESCRIPTION =
  85         "Number of available threads in the ThreadPool";
  86     public static final String THREADPOOL_NUMBER_OF_BUSY_THREADS =
  87         "numberOfBusyThreads";
  88     public static final String THREADPOOL_NUMBER_OF_BUSY_THREADS_DESCRIPTION =
  89         "Number of busy threads in the ThreadPool";
  90     public static final String THREADPOOL_AVERAGE_WORK_COMPLETION_TIME =
  91         "averageWorkCompletionTime";
  92     public static final String THREADPOOL_AVERAGE_WORK_COMPLETION_TIME_DESCRIPTION =
  93         "Average elapsed time taken to complete a work item by the ThreadPool";
  94     public static final String THREADPOOL_CURRENT_PROCESSED_COUNT =
  95         "currentProcessedCount";
  96     public static final String THREADPOOL_CURRENT_PROCESSED_COUNT_DESCRIPTION =
  97         "Number of Work items processed by the ThreadPool";
  98 
  99     public static final String WORKQUEUE_MONITORING_DESCRIPTION =
 100         "Monitoring for a Work Queue";
 101     public static final String WORKQUEUE_TOTAL_WORK_ITEMS_ADDED =
 102         "totalWorkItemsAdded";
 103     public static final String WORKQUEUE_TOTAL_WORK_ITEMS_ADDED_DESCRIPTION =
 104         "Total number of Work items added to the Queue";
 105     public static final String WORKQUEUE_WORK_ITEMS_IN_QUEUE =
 106         "workItemsInQueue";
 107     public static final String WORKQUEUE_WORK_ITEMS_IN_QUEUE_DESCRIPTION =
 108         "Number of Work items in the Queue to be processed";
 109     public static final String WORKQUEUE_AVERAGE_TIME_IN_QUEUE =
 110         "averageTimeInQueue";
 111     public static final String WORKQUEUE_AVERAGE_TIME_IN_QUEUE_DESCRIPTION =
 112         "Average time a work item waits in the work queue";
 113 }
 114 
 115 // End of file.