/*
* 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.
*/
/**
* 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() {
update = Boolean.valueOf(ogaProperties.getProperty("org.opensolaris.opengrok.indexer.updatedatabase"));
noThreads = Integer.valueOf(ogaProperties.getProperty("org.opensolaris.opengrok.indexer.numberofthreads"));
}
}
/**
* 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 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 void saveProperties() {
throw new UnsupportedOperationException("Not yet implemented");
}
return name;
}
// not used
}
public void preDeregister() {
// not used
}
public void postDeregister() {
// not used
}
/**
* Stops the agent, so it is not restarted.
*/
public void stop() {
//WrapperManager.stop(0);
}
}
return;
}
}
}
}
}
/**
* 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();
}
}
return update;
}
}
return noThreads;
}
}
@SuppressWarnings("PMD.MethodReturnsInternalArray")
}
return configurationFile;
}
return publishHost;
}
}
}
return OpenGrokLogger.getConsoleLogLevel();
}
return OpenGrokLogger.getFileLogLevel();
}
return OpenGrokLogger.getFileLogPath();
}
publishHost = url;
}
}
}
}