summaryrefslogtreecommitdiff
path: root/lang/java/src/com/sleepycat/db/internal/DbSite.java
blob: 5e5ff87cc783750f6e297dc94a8993264bcf0028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.12
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.sleepycat.db.internal;

import com.sleepycat.db.*;
import java.util.Comparator;

public class DbSite {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected DbSite(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(DbSite obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  /* package */ synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        throw new UnsupportedOperationException("C++ destructor does not have public access");
      }
      swigCPtr = 0;
    }
  }

        public ReplicationManagerSite wrapper;
	public synchronized void close() throws DatabaseException {
		try {
			close0();
		} finally {
			swigCPtr = 0;
		}
	}

	public synchronized void remove() throws DatabaseException {
		try {
			remove0();
		} finally {
			swigCPtr = 0;
		}
	}

  /* package */ void close0() { db_javaJNI.DbSite_close0(swigCPtr, this); }

  public com.sleepycat.db.ReplicationHostAddress get_address() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSite_get_address(swigCPtr, this); }

  public boolean get_config(int which) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSite_get_config(swigCPtr, this, which); }

  public int get_eid() throws com.sleepycat.db.DatabaseException {
    return db_javaJNI.DbSite_get_eid(swigCPtr, this);
  }

  /* package */ void remove0() { db_javaJNI.DbSite_remove0(swigCPtr, this); }

  public void set_config(int which, boolean onoff) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbSite_set_config(swigCPtr, this, which, onoff); }

}