1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
3 * Copyright (c) 2010, 2011 École Polytechnique de Montréal
4 * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
6 * All rights reserved. This program and the accompanying materials are
7 * made available under the terms of the Eclipse Public License v1.0 which
8 * accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.tmf
.core
.statesystem
.backends
.historytree
;
18 * Configuration object for a StateHistoryTree.
22 final class HTConfig
{
24 private static final int DEFAULT_BLOCKSIZE
= 64 * 1024;
25 private static final int DEFAULT_MAXCHILDREN
= 50;
27 private final File stateFile
;
28 private final int blockSize
;
29 private final int maxChildren
;
30 private final int providerVersion
;
31 private final long treeStart
;
33 HTConfig(File newStateFile
, int blockSize
, int maxChildren
,
34 int providerVersion
, long startTime
) {
35 this.stateFile
= newStateFile
;
36 this.blockSize
= blockSize
;
37 this.maxChildren
= maxChildren
;
38 this.providerVersion
= providerVersion
;
39 this.treeStart
= startTime
;
43 * Version using default values for blocksize and maxchildren
45 * @param stateFileName
48 HTConfig(File newStateFile
, int providerVersion
, long startTime
) {
49 this(newStateFile
, DEFAULT_BLOCKSIZE
, DEFAULT_MAXCHILDREN
, providerVersion
, startTime
);
52 // ------------------------------------------------------------------------
54 // ------------------------------------------------------------------------
56 public File
getStateFile() {
60 public int getBlockSize() {
64 public int getMaxChildren() {
68 public int getProviderVersion() {
69 return providerVersion
;
72 public long getTreeStart() {
This page took 0.0327 seconds and 6 git commands to generate.