Management.java revision 1462
340N/A * The contents of this file are subject to the terms of the 340N/A * Common Development and Distribution License (the "License"). 340N/A * You may not use this file except in compliance with the License. 340N/A * language governing permissions and limitations under the License. 340N/A * When distributing Covered Code, include this CDDL HEADER in each 340N/A * If applicable, add the following below this CDDL HEADER, with the 340N/A * fields enclosed by brackets "[]" replaced with your own identifying 340N/A * information: Portions Copyright [yyyy] [name of copyright owner] 340N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 340N/A * Use is subject to license terms. 340N/A private final long startTime;
// Stores the time this bean is created 340N/A * The only constructor is private, so other classes will only get an 340N/A * instance through the static factory method getInstance(). 340N/A * Static factory method to get an instance of Management. 340N/A * @param ogaProperties The properties to use 340N/A * @return A management instance to use 368N/A * Static factory method to get an instance of management. 340N/A * Returns null if Management has not been initialized yet. 340N/A * Get a selected property from configuration. 340N/A * @return String with property value 340N/A * Set a selected property in the configuration. 340N/A * @param key the String key for the property to be set. 340N/A * $param value the String value for the property to be set. 340N/A * Stops the agent, so it is not restarted. 340N/A //WrapperManager.stop(0); 340N/A * Get the time (in milliseconds since 1970) when the agent was started 340N/A * @return long time when the agent was started, in milliseconds. 373N/A * Get a Date object with the time the agent was started. 340N/A * @return Date with the starting date * Get the version tag for the agent * @return String the version tag for this agent