Examples of VRFileRAF


Examples of com.sun.messaging.jmq.io.VRFileRAF

  if (vrecord != null) {
      // calculate new size needed
      int total = INT_SIZE + packetSize
      + INT_SIZE + (iids.length * ENTRY_SIZE);

            VRFileRAF vrfile = parent.getVRFile();
            synchronized (vrfile) {
                if (vrecord.getDataCapacity() < total) {
                    vrecord.rewind();
                    byte data[] = new byte[INT_SIZE+packetSize];
                    vrecord.read(data);

                    // the existing one is not big enough; get another one
                    VRecordRAF newrecord = (VRecordRAF)vrfile.allocate(total);

                    // copy message
                    newrecord.write(data);

                    // free old
                    vrfile.free(vrecord);

                    // cache new
                    vrecord = newrecord;
                }

View Full Code Here

Examples of com.sun.messaging.jmq.io.VRFileRAF

  try {
      long fsize = p.initialFileSize.getBytes();
      if (fsize > 0) {
    maxRecordSize = (int)p.maxRecordSize.getBytes();

    vrfile = new VRFileRAF(new File(dir, VRFILE_NAME), fsize);
    vrfile.setBlockSize(p.blockSize);

    try {
                    vrfile.setGrowthFactor(growthFactor);
                } catch (IllegalArgumentException iiEx) {
View Full Code Here

Examples of com.sun.messaging.jmq.io.VRFileRAF

    try {
      long fsize = p.initialFileSize.getBytes();
      if (fsize > 0) {
        maxRecordSize = (int) p.maxRecordSize.getBytes();

        vrfile = new VRFileRAF(new File(dir, VRFILE_NAME), fsize);
        vrfile.setBlockSize(p.blockSize);
       

        try {
          vrfile.setGrowthFactor(growthFactor);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.