APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.internal.agent

public Class ConnectorAddressLink

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, .ByteOrder, java.util.HashMap, .Iterator, .List, .Map, java.util.concurrent.atomic.AtomicInteger, jdk.internal.perf.Perf, sun.management.counter.Units, .Counter, sun.management.counter.perf.PerfInstrumentation

A utility class to support the exporting and importing of the address of a connector server using the instrumentation buffer.
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
ConnectorAddressLink.PerfHandle

A simple wrapper for the perf-counter backing ByteBuffer

Field Summary

Modifier and TypeField and Description
private static final String
private static final AtomicInteger
private static final String
private static final String
private static ConnectorAddressLink.PerfHandle

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
public static void
export(String
The connector address.
address
)

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.

public static void
exportRemote(Map<String, String>
The remote connector address properties.
properties
)

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.

public static String

Returns:

the value of the connector address, or null if the target VM has not exported a connector address.
importFrom
(int
an identifier that uniquely identifies a local Java virtual machine, or 0 to indicate the current Java virtual machine.
vmid
)

Imports the connector address from the instrument buffer of the specified Java virtual machine.

public static Map<String, String>

Returns:

a map containing the remote connector's properties, or an empty map if the target VM has not exported the remote connector's properties.
importRemoteFrom
(int
an identifier that uniquely identifies a local Java virtual machine, or 0 to indicate the current Java virtual machine.
vmid
)

Imports the remote connector address and associated configuration properties from the instrument buffer of the specified Java virtual machine.

private static void
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONNECTOR_ADDRESS_COUNTERback to summary
private static final String CONNECTOR_ADDRESS_COUNTER
counterback to summary
private static final AtomicInteger counter
REMOTE_CONNECTOR_COUNTER_PREFIXback to summary
private static final String REMOTE_CONNECTOR_COUNTER_PREFIX
REMOTE_CONNECTOR_STATE_COUNTERback to summary
private static final String REMOTE_CONNECTOR_STATE_COUNTER
remotePerfHandleback to summary
private static ConnectorAddressLink.PerfHandle remotePerfHandle

Constructor Detail

Method Detail

exportback to summary
public static void export(String address)

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.

Parameters
address:String

The connector address.

exportRemoteback to summary
public static void exportRemote(Map<String, String> properties)

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.

Parameters
properties:Map<String, String>

The remote connector address properties.

importFromback to summary
public static String importFrom(int vmid) throws IOException

Imports the connector address from the instrument buffer of the specified Java virtual machine.

Parameters
vmid:int

an identifier that uniquely identifies a local Java virtual machine, or 0 to indicate the current Java virtual machine.

Returns:String

the value of the connector address, or null if the target VM has not exported a connector address.

Exceptions
IOException:
An I/O error occurred while trying to acquire the instrumentation buffer.
importRemoteFromback to summary
public static Map<String, String> importRemoteFrom(int vmid) throws IOException

Imports the remote connector address and associated configuration properties from the instrument buffer of the specified Java virtual machine.

Parameters
vmid:int

an identifier that uniquely identifies a local Java virtual machine, or 0 to indicate the current Java virtual machine.

Returns:Map<String, String>

a map containing the remote connector's properties, or an empty map if the target VM has not exported the remote connector's properties.

Exceptions
IOException:
An I/O error occurred while trying to acquire the instrumentation buffer.
unexportback to summary
private static void unexport(ConnectorAddressLink.PerfHandle ph)
unexportRemoteback to summary
public static void unexportRemote()
jdk.internal.agent back to summary

private final Class ConnectorAddressLink.PerfHandle

extends Object
Class Inheritance

A simple wrapper for the perf-counter backing ByteBuffer

Field Summary

Modifier and TypeField and Description
private ByteBuffer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private void
putLong(long l)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bbback to summary
private ByteBuffer bb

Constructor Detail

PerfHandleback to summary
private PerfHandle(ByteBuffer bb)

Method Detail

putLongback to summary
private void putLong(long l)