KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > datasystem > persistentsystem > ClusterStatus


1 package com.daffodilwoods.daffodildb.server.datasystem.persistentsystem;
2
3 import com.daffodilwoods.database.resource.DException;
4 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference;
5
6 /**
7  *
8  * <p>Title: ClusterStatus</p>
9  * <p>Description: It is used to free Cluster when all cluster records are deleted, for it has information
10  * like activeRecordCount, actualRecordCount of this Cluster , whether firstRecordPartial or lastRecord
11  * Partial and currentRecordStatus.Cluster which has activeRecord Count 0, can be addded to freeClusterlist.
12
13  */

14 final class ClusterStatus {
15
16     /**
17      * Active Record Count in Cluster
18      */

19
20    int activeRecordCount ;
21
22    /**
23     * Actual Record Count in Cluster
24     */

25    int actualRecordCount;
26
27    /**
28     * Whether First Record of this cluster is partial or not
29     */

30    boolean firstRecordPartial;
31
32    /**
33     * Whether Last Record of this cluster is partial or not
34     */

35    boolean lastRecordPartial;
36
37    /**
38     * Status of current Record which is deletd whether it was partial or not
39     */

40    boolean currentRecordStatus;
41    Cluster cluster;
42
43    ClusterStatus(Cluster cluster,int activeRecordCount,int actualRecordCount,boolean firstRecordPartial,boolean lastRecordPartial,boolean currentRecordStatus){
44       this.cluster = cluster;
45       this.activeRecordCount = activeRecordCount;
46       this.actualRecordCount = actualRecordCount;
47       this.firstRecordPartial = firstRecordPartial;
48       this.lastRecordPartial = lastRecordPartial;
49       this.currentRecordStatus = currentRecordStatus;
50    }
51 }
52
Popular Tags