4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg/*
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * CDDL HEADER START
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg *
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * The contents of this file are subject to the terms of the
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * Common Development and Distribution License (the "License").
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * You may not use this file except in compliance with the License.
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg *
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * See LICENSE.txt included in this distribution for the specific
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * language governing permissions and limitations under the License.
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg *
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * When distributing Covered Code, include this CDDL HEADER in each
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * file and include the License file at LICENSE.txt.
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * If applicable, add the following below this CDDL HEADER, with the
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * fields enclosed by brackets "[]" replaced with your own identifying
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * information: Portions Copyright [yyyy] [name of copyright owner]
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg *
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * CDDL HEADER END
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg */
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg/*
db50fcedc48aaf1639dd7d1f0fac5f7d68f5c4c2Lubos Kosco * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg */
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Bergpackage org.opensolaris.opengrok.management;
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Bergimport java.io.IOException;
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg/**
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * MBean for doing settings and get on the OpenGrok RuntimeEnvironment
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye *
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * @author Jan Berg
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg */
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Bergpublic interface JMXConfigurationMBean {
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg /**
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * Get the current OpenGrok configuration object
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * @return String XML representation of the opengrok configuration
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg */
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg public String getConfiguration();
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg /**
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * Deploy a new configuration for OpenGrok
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg * @param config String the configuration object in xml to set
db50fcedc48aaf1639dd7d1f0fac5f7d68f5c4c2Lubos Kosco * @throws java.io.IOException in case of io problem
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg */
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg public void setConfiguration(String config) throws IOException;
4fa5b314ea11e65a2566a4e5f05fa34ec4e9ebb7Jan Berg}