|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.cache.ClockAlgorithm
Nested Class Summary |
---|
Nested classes inherited from class ostore.cache.CachePolicy |
---|
CachePolicy.Line |
Field Summary | |
---|---|
protected CachePolicy.Line |
_next_victim
|
protected int |
_size
|
static boolean |
DEBUG
|
static String |
tag
|
Constructor Summary | |
---|---|
ClockAlgorithm()
|
Method Summary | |
---|---|
boolean |
empty()
Are there any lines in here? |
void |
insert(CachePolicy.Line value)
Insert into loop and return pointer. |
static void |
main(String[] args)
|
void |
remove(CachePolicy.Line value)
Manually remove a line. |
CachePolicy.Line |
select_victim(boolean modified_ok)
Select the most appropriate line to remove. |
int |
size()
How many lines are in here? |
String |
toString()
Print out contents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final boolean DEBUG
public static final String tag
protected CachePolicy.Line _next_victim
protected int _size
Constructor Detail |
public ClockAlgorithm()
Method Detail |
public static void main(String[] args)
public int size()
CachePolicy
size
in interface CachePolicy
public boolean empty()
CachePolicy
empty
in interface CachePolicy
public void insert(CachePolicy.Line value)
CachePolicy
insert
in interface CachePolicy
public CachePolicy.Line select_victim(boolean modified_ok)
CachePolicy
select_victim
in interface CachePolicy
public void remove(CachePolicy.Line value)
CachePolicy
remove
in interface CachePolicy
public String toString()
CachePolicy
toString
in interface CachePolicy
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |