@NotStorableClass @StorableAccess public abstract class AbstractPerfService extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
BATCH_SIZE |
protected int[] |
byItemDuration |
protected int |
byItemIndex |
protected int[] |
byItemMem |
protected int[] |
byItemMem2 |
protected static boolean |
CRASH_SAFE_MODE |
static File |
DURATION_BIN |
protected IFilePersistence |
filePersistence |
protected static String |
ITEM_LIST |
protected static String |
ITEM_TEMPLATE_LIST |
protected JoafipLogger |
logger |
static int |
NUMBER_OF_ITEM |
static int |
NUMBER_OF_PAGE |
static int |
PAGE_SIZE |
static String |
RUNTIME_DIR |
protected Boolean |
useCache |
Constructor and Description |
---|
AbstractPerfService() |
Modifier and Type | Method and Description |
---|---|
protected IHeapDataManager |
getDataManager() |
protected ItemList |
getItemList(IDataAccessSession session) |
protected ItemTemplateList |
getItemTemplateList(IDataAccessSession session) |
protected void |
initialize(String pathName,
IHeapDataManager dataManager,
Boolean useCache) |
protected void |
initializeByItemDuration() |
protected static void |
initializeDirectory(File rootDir) |
protected static void |
initializeDirectory(String rootDir) |
protected final JoafipLogger logger
public static final String RUNTIME_DIR
public static final File DURATION_BIN
protected static final int BATCH_SIZE
public static final int NUMBER_OF_ITEM
protected static final boolean CRASH_SAFE_MODE
public static final int PAGE_SIZE
public static final int NUMBER_OF_PAGE
protected static final String ITEM_TEMPLATE_LIST
protected static final String ITEM_LIST
protected IFilePersistence filePersistence
protected final int[] byItemDuration
protected final int[] byItemMem
protected final int[] byItemMem2
protected int byItemIndex
protected Boolean useCache
protected void initialize(String pathName, IHeapDataManager dataManager, Boolean useCache) throws FilePersistenceInvalidClassException, FilePersistenceNotSerializableException, FilePersistenceClassNotFoundException, FilePersistenceDataCorruptedException, FilePersistenceException, FilePersistenceTooBigForSerializationException
protected final ItemList getItemList(IDataAccessSession session) throws FilePersistenceException
session
- FilePersistenceException
protected final ItemTemplateList getItemTemplateList(IDataAccessSession session) throws FilePersistenceException
session
- FilePersistenceException
protected void initializeByItemDuration()
protected static void initializeDirectory(String rootDir) throws FilePersistenceException
FilePersistenceException
protected static void initializeDirectory(File rootDir) throws FilePersistenceException
FilePersistenceException
protected IHeapDataManager getDataManager() throws FilePersistenceException
FilePersistenceException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.