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