public PerfDataBuffer(RemoteVm rvm,int lvmid) throws MonitorException {
  this.rvm=rvm;
  try {
    ByteBuffer buffer=ByteBuffer.allocate(rvm.getCapacity());
    sample(buffer);
    createPerfDataBuffer(buffer,lvmid);
  }
 catch (  RemoteException e) {
    throw new MonitorException("Could not read data for remote JVM " + lvmid,e);
  }
}

public PerfDataBuffer ( RemoteVm rvm , int lvmid ) throws MonitorException { this . rvm = rvm ; try { ByteBuffer buffer = ByteBuffer . allocate ( rvm . getCapacity ( ) ) ; sample ( buffer ) ; createPerfDataBuffer ( buffer , lvmid ) ; } catch ( RemoteException e ) { throw new MonitorException ( "Could not read data for remote JVM " + lvmid , e ) ; } }
create a perfdatabuffer instance for accessing the specified instrumentation buffer .
