Package com.sun.messaging.jmq.io

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


  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

    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

Related Classes of com.sun.messaging.jmq.io.VRFileRAF

Copyright © 2018 www.massapicom. 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.