/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6683213
* @summary Test that the initial derived gauge is (Integer)0
* @author Daniel Fuchs
* @run clean DerivedGaugeMonitorTest
* @run build DerivedGaugeMonitorTest
* @run main DerivedGaugeMonitorTest
*/
public class DerivedGaugeMonitorTest {
public static interface Things {
public long getALong();
public int getAnInt();
public double getADouble();
public short getAShort();
public byte getAByte();
public float getAFloat();
}
}
private volatile transient boolean mutable;
public MyThings() {
this(false);
}
}
public long getALong() {
}
public int getAnInt() {
}
public double getADouble() {
}
public short getAShort() {
}
public byte getAByte() {
}
public float getAFloat() {
}
return other;
}
}
count++;
try {
} catch (CloneNotSupportedException ex) {
return null;
}
}
public long getALong() {
count++;
}
public int getAnInt() {
count++;
}
public double getADouble() {
count++;
return things.getADouble();
}
public short getAShort() {
count++;
}
public byte getAByte() {
count++;
}
public float getAFloat() {
count++;
}
}
"AByte","AShort","AnInt","ALong","AFloat","ADouble"
};
"AThing.AByte","AThing.AShort","AThing.AnInt","AThing.ALong",
"AThing.AFloat","AThing.ADouble"
};
}
}
"granularity period expired!");
}
}
mon1.setDifferenceMode(true);
mon2.setDifferenceMode(true);
try {
// just check that we don't get an exception now...
"] DerivedGauge is now "+
"] DerivedGauge is now "+
} finally {
}
}
}
}
}
}