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