/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/**
* @author Jan S Berg
* @version $Revision$
*/
/**
* The only constructor is private, so other classes will only get an
* instance through the static factory method getInstance().
*/
this.ogaProperties = ogaProperties;
}
private void updateProperties() {
}
}
/**
* Static factory method to get an instance of Management.
* @param ogaProperties The properties to use
* @return A management instance to use
*/
@SuppressWarnings("PMD.AvoidSynchronizedAtMethodLevel")
if (managementInstance == null) {
}
return managementInstance;
}
/**
* Static factory method to get an instance of management.
* Returns null if Management has not been initialized yet.
* @return a singleton
*/
return managementInstance;
}
/**
* Get a selected property from configuration.
* @return String with property value
*/
}
/**
* Set a selected property in the configuration.
* @param key the String key for the property to be set.
* $param value the String value for the property to be set.
*/
return;
}
}
private static void saveProperties() {
throw new UnsupportedOperationException("Not yet implemented");
}
/**
* {@inheritDoc}
*/
return name;
}
/**
* {@inheritDoc}
*/
// not used
}
/**
* {@inheritDoc}
*/
public void preDeregister() {
// not used
}
/**
* {@inheritDoc}
*/
public void postDeregister() {
// not used
}
/**
* Stops the agent, so it is not restarted.
*/
public void stop() {
//WrapperManager.stop(0);
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
return;
}
}
/**
* {@inheritDoc}
*/
}
/**
* Get the time (in milliseconds since 1970) when the agent was started
* @return long time when the agent was started, in milliseconds.
*/
public long getStartTime() {
return startTime;
}
/**
* Get a Date object with the time the agent was started.
* @return Date with the starting date
*/
}
/**
* Get the version tag for the agent
* @return String the version tag for this agent
*/
return Info.getFullVersion();
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
return update;
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
return noThreads;
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
@SuppressWarnings("PMD.MethodReturnsInternalArray")
}
/**
* {@inheritDoc}
*/
return configurationFile;
}
/**
* {@inheritDoc}
*/
return publishHost;
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
return OpenGrokLogger.getConsoleLogLevel();
}
/**
* {@inheritDoc}
*/
return OpenGrokLogger.getFileLogLevel();
}
/**
* {@inheritDoc}
*/
return OpenGrokLogger.getFileLogPath();
}
/**
* {@inheritDoc}
*/
publishHost = url;
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
}
}