You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/08/14 14:48:25 UTC

svn commit: r1513854 - /jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/setup/SystemParams.java

Author: andy
Date: Wed Aug 14 12:48:25 2013
New Revision: 1513854

URL: http://svn.apache.org/r1513854
Log:
Remove 'final' on parameter fields, allowing the object to be used for custom setups.

Modified:
    jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/setup/SystemParams.java

Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/setup/SystemParams.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/setup/SystemParams.java?rev=1513854&r1=1513853&r2=1513854&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/setup/SystemParams.java (original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/setup/SystemParams.java Wed Aug 14 12:48:25 2013
@@ -21,37 +21,33 @@ package com.hp.hpl.jena.tdb.setup;
 import com.hp.hpl.jena.tdb.sys.Names ;
 import com.hp.hpl.jena.tdb.sys.SystemTDB ;
 
-/** System parameters for a TDB database instance.  Currently, fixed.  
- */
+/** System parameters for a TDB database instance. */
 public class SystemParams
 {
-    public final int      blockSize            = SystemTDB.BlockSize ;
-    public final int      memBlockSize         = SystemTDB.BlockSizeTestMem ;
-    public final int      readCacheSize        = SystemTDB.BlockReadCacheSize ;
-    public final int      writeCacheSize       = SystemTDB.BlockWriteCacheSize ;
-    public final int      Node2NodeIdCacheSize = SystemTDB.Node2NodeIdCacheSize ;
-    public final int      NodeId2NodeCacheSize = SystemTDB.NodeId2NodeCacheSize ;
-    public final int      NodeMissCacheSize    = SystemTDB.NodeMissCacheSize ;
+    public int      blockSize            = SystemTDB.BlockSize ;
+    public int      memBlockSize         = SystemTDB.BlockSizeTestMem ;
+    public int      readCacheSize        = SystemTDB.BlockReadCacheSize ;
+    public int      writeCacheSize       = SystemTDB.BlockWriteCacheSize ;
+    public int      Node2NodeIdCacheSize = SystemTDB.Node2NodeIdCacheSize ;
+    public int      NodeId2NodeCacheSize = SystemTDB.NodeId2NodeCacheSize ;
+    public int      NodeMissCacheSize    = SystemTDB.NodeMissCacheSize ;
 
-    public final String   indexNode2Id         = Names.indexNode2Id ;
-    public final String   indexId2Node         = Names.indexId2Node ;
-    public final String   primaryIndexTriples  = Names.primaryIndexTriples ;
-    public final String[] tripleIndexes        = Names.tripleIndexes ;
-    public final String   primaryIndexQuads    = Names.primaryIndexQuads ;
-    public final String[] quadIndexes          = Names.quadIndexes ;
-    public final String   primaryIndexPrefix   = Names.primaryIndexPrefix ;
-    public final String[] prefixIndexes        = Names.prefixIndexes ;
-    public final String   indexPrefix          = Names.indexPrefix ;
+    public String   indexNode2Id         = Names.indexNode2Id ;
+    public String   indexId2Node         = Names.indexId2Node ;
+    public String   primaryIndexTriples  = Names.primaryIndexTriples ;
+    public String[] tripleIndexes        = Names.tripleIndexes ;
+    public String   primaryIndexQuads    = Names.primaryIndexQuads ;
+    public String[] quadIndexes          = Names.quadIndexes ;
+    public String   primaryIndexPrefix   = Names.primaryIndexPrefix ;
+    public String[] prefixIndexes        = Names.prefixIndexes ;
+    public String   indexPrefix          = Names.indexPrefix ;
 
-    public final String   prefixNode2Id        = Names.prefixNode2Id ;
-    public final String   prefixId2Node        = Names.prefixId2Node ;
+    public String   prefixNode2Id        = Names.prefixNode2Id ;
+    public String   prefixId2Node        = Names.prefixId2Node ;
     
-    private SystemParams() {}
+    public SystemParams() {}
     
-    private static SystemParams standard = new SystemParams() ;
-    
-    public static SystemParams getStdSystemParams()
-    {
-        return standard ;
+    public static SystemParams getStdSystemParams() {
+        return new SystemParams() ;
     }
 }