sun.management.counter.Units Java Examples

The following examples show how to use sun.management.counter.Units. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConnectorAddressLink.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
    if (remotePerfHandle != null) {
        remotePerfHandle.putLong(index);
    } else {
        remotePerfHandle = new PerfHandle(
            perf.createLong(REMOTE_CONNECTOR_STATE_COUNTER, 1, Units.NONE.intValue(), (long)index)
        );
    }
}
 
Example #2
Source File: ConnectorAddressLink.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #3
Source File: ConnectorAddressLink.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #4
Source File: ConnectorAddressLink.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #5
Source File: ConnectorAddressLink.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #6
Source File: ConnectorAddressLink.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #7
Source File: ConnectorAddressLink.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #8
Source File: ConnectorAddressLink.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #9
Source File: ConnectorAddressLink.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #10
Source File: ConnectorAddressLink.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #11
Source File: ConnectorAddressLink.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #12
Source File: ConnectorAddressLink.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #13
Source File: ConnectorAddressLink.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #14
Source File: ConnectorAddressLink.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #15
Source File: ConnectorAddressLink.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #16
Source File: ConnectorAddressLink.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #17
Source File: ConnectorAddressLink.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
        CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #18
Source File: ConnectorAddressLink.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #19
Source File: ConnectorAddressLink.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #20
Source File: ConnectorAddressLink.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #21
Source File: ConnectorAddressLink.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #22
Source File: ConnectorAddressLink.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #23
Source File: ConnectorAddressLink.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #24
Source File: ConnectorAddressLink.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #25
Source File: ConnectorAddressLink.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified connector address to the instrumentation buffer
 * so that it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param address The connector address.
 */
public static void export(String address) {
    if (address == null || address.length() == 0) {
        throw new IllegalArgumentException("address not specified");
    }
    Perf perf = Perf.getPerf();
    perf.createString(
            CONNECTOR_ADDRESS_COUNTER, 1, Units.STRING.intValue(), address);
}
 
Example #26
Source File: ConnectorAddressLink.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Exports the specified remote connector address and associated
 * configuration properties to the instrumentation buffer so that
 * it can be read by this or other Java virtual machines running
 * on the same system.
 *
 * @param properties The remote connector address properties.
 */
public static void exportRemote(Map<String, String> properties) {
    final int index = counter.getAndIncrement();
    Perf perf = Perf.getPerf();
    for (Map.Entry<String, String> entry : properties.entrySet()) {
        perf.createString(REMOTE_CONNECTOR_COUNTER_PREFIX + index + "." +
                entry.getKey(), 1, Units.STRING.intValue(), entry.getValue());
    }
}
 
Example #27
Source File: SynchronizationStatisticsTest.java    From garmadon with Apache License 2.0 4 votes vote down vote up
@Override
public Units getUnits() {
    return null;
}