431N/A/*
431N/A * CDDL HEADER START
431N/A *
431N/A * The contents of this file are subject to the terms of the
431N/A * Common Development and Distribution License (the "License").
431N/A * You may not use this file except in compliance with the License.
431N/A *
431N/A * See LICENSE.txt included in this distribution for the specific
431N/A * language governing permissions and limitations under the License.
431N/A *
431N/A * When distributing Covered Code, include this CDDL HEADER in each
431N/A * file and include the License file at LICENSE.txt.
431N/A * If applicable, add the following below this CDDL HEADER, with the
431N/A * fields enclosed by brackets "[]" replaced with your own identifying
431N/A * information: Portions Copyright [yyyy] [name of copyright owner]
431N/A *
431N/A * CDDL HEADER END
431N/A */
431N/A
431N/A/*
431N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
431N/A */
431N/A
431N/Apackage org.opensolaris.opengrok.management;
431N/A
431N/Aimport org.opensolaris.opengrok.configuration.Configuration;
431N/A
471N/A/**
471N/A * Constants used by the JMX agent and the client.
693N/A */
693N/Apublic final class Constants {
431N/A /** Private constructor to prevent instantiation. */
431N/A private Constants() {
431N/A // do nothing
431N/A }
431N/A
693N/A /**
431N/A * Protocol name used in URLs for the RMI JMX protocol. JMXServiceURL
431N/A * always converts the protocol name to lower case (as per class javadoc).
431N/A */
431N/A public static final String RMI_PROTOCOL = "rmi";
431N/A
431N/A /** Property specifying path where log files should be written. */
431N/A public static final String LOG_PATH =
431N/A Configuration.PROPERTY_KEY_PREFIX + "management.logging.path";
431N/A
431N/A /**
431N/A * Property specifying location of OpenGrok configuration file
431N/A * (configuration.xml).
431N/A */
431N/A public static final String CONFIG_FILE =
431N/A Configuration.PROPERTY_KEY_PREFIX + "configuration.file";
431N/A
431N/A /**
431N/A * Property specifying URL to JMX service. If this property is
431N/A * not set, an URL using the RMI protocol will be generated from
431N/A * {@link #JMX_HOST}, {@link #JMX_PORT} and {@link #RMI_PORT}.
431N/A */
431N/A public static final String JMX_URL =
431N/A Configuration.PROPERTY_KEY_PREFIX + "management.url";
431N/A
431N/A /** Property specifying JMX server host. We use localhost by default. */
431N/A public static final String JMX_HOST =
431N/A Configuration.PROPERTY_KEY_PREFIX + "management.host";
431N/A
431N/A /** Property specifying JMX server port. We use 9292 by default. */
431N/A public static final String JMX_PORT =
431N/A Configuration.PROPERTY_KEY_PREFIX + "management.port";
431N/A
431N/A /**
431N/A * Property specifying port on which the RMI registry is listening. By
431N/A * default, we generate the RMI port by adding one to the JMX port.
431N/A */
431N/A public static final String RMI_PORT =
431N/A Configuration.PROPERTY_KEY_PREFIX + "management.rmi.port";
431N/A
431N/A /**
431N/A * Property specifying whether an embedded RMI registry should be started
431N/A * for a server that uses the RMI JMX protocol.
431N/A */
431N/A public static final String RMI_START =
431N/A Configuration.PROPERTY_KEY_PREFIX + "management.rmi.startRegistry";
431N/A}
431N/A