System.arraycopy( array, 0, actualArray, 0, actualArray.length );
return actualArray;
}
public synchronized void setJmxConnectionData( JMXServiceURL jmxUrl, String instanceId )
{
<BUG>String path = rootPath + "/" + HA_SERVERS_CHILD + "/" + machineId + "/jmx";
</BUG>
String url = jmxUrl.toString();
byte[] data = new byte[( url.length() + instanceId.length() ) * 2 + 4];
ByteBuffer buffer = ByteBuffer.wrap( data );

System.arraycopy( array, 0, actualArray, 0, actualArray.length );
return actualArray;
}
public synchronized void setJmxConnectionData( JMXServiceURL jmxUrl, String instanceId )
{
String path = rootPath + "/" + HA_SERVERS_CHILD + "/" + machineId + "-jmx";
String url = jmxUrl.toString();
byte[] data = new byte[( url.length() + instanceId.length() ) * 2 + 4];
ByteBuffer buffer = ByteBuffer.wrap( data );
