00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.sleepycat.db.internal;
00010
00011 import com.sleepycat.db.*;
00012 import java.util.Comparator;
00013
00014 public class DbMpoolFile {
00015 private long swigCPtr;
00016 protected boolean swigCMemOwn;
00017
00018 protected DbMpoolFile(long cPtr, boolean cMemoryOwn) {
00019 swigCMemOwn = cMemoryOwn;
00020 swigCPtr = cPtr;
00021 }
00022
00023 protected static long getCPtr(DbMpoolFile obj) {
00024 return (obj == null) ? 0 : obj.swigCPtr;
00025 }
00026
00027 void delete() {
00028 if(swigCPtr != 0 && swigCMemOwn) {
00029 swigCMemOwn = false;
00030 throw new UnsupportedOperationException("C++ destructor does not have public access");
00031 }
00032 swigCPtr = 0;
00033 }
00034
00035 public int get_priority() throws com.sleepycat.db.DatabaseException {
00036 return db_javaJNI.DbMpoolFile_get_priority(swigCPtr);
00037 }
00038
00039 public void set_priority(int priority) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbMpoolFile_set_priority(swigCPtr, priority); }
00040
00041 public int get_flags() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbMpoolFile_get_flags(swigCPtr); }
00042
00043 public void set_flags(int flags, boolean onoff) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbMpoolFile_set_flags(swigCPtr, flags, onoff); }
00044
00045 public long get_maxsize() throws com.sleepycat.db.DatabaseException {
00046 return db_javaJNI.DbMpoolFile_get_maxsize(swigCPtr);
00047 }
00048
00049 public void set_maxsize(long bytes) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbMpoolFile_set_maxsize(swigCPtr, bytes); }
00050
00051 }