jeco.dmm.reliableDMM
Class SplitProfile

java.lang.Object
  extended by jeco.dmm.reliableDMM.SplitProfile

public class SplitProfile
extends java.lang.Object

This class receive a profile as an input parameter and divides it into n profiles. Each one of them is a new file using the same name but with a suffix as 0, 1 , .. , n-1. n is another input parameter. Each resulting profile is associated to a region of memory. The algorithm to divide the profile is the LRU over the list of memory regions.

Author:
jmcolmenar

Field Summary
protected  java.lang.String finalPath
           
protected  long limit
           
protected  boolean logReadsAndWrites
           
protected  LRU lruList
           
protected  int numBanks
           
protected  java.lang.String originalProfilePath
           
 
Constructor Summary
SplitProfile(int numBanks, java.lang.String originalProfilePath, java.lang.String finalPath, long limit, int logReadsAndWrites)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numBanks

protected int numBanks

originalProfilePath

protected java.lang.String originalProfilePath

finalPath

protected java.lang.String finalPath

lruList

protected LRU lruList

limit

protected long limit

logReadsAndWrites

protected boolean logReadsAndWrites
Constructor Detail

SplitProfile

public SplitProfile(int numBanks,
                    java.lang.String originalProfilePath,
                    java.lang.String finalPath,
                    long limit,
                    int logReadsAndWrites)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

run

public void run()
         throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)