AddressSpace library v1.0 beta
A C D F G H I L M N P Q R S T W Z

A

add(int) - Method in class mmap.IntList
Add an integer to the list.
add(int) - Method in class mmap.IntOrderedList
Add an integer to the list.
add(int, SwappingPage) - Method in class mmap.LruQueue
Add a page in the Queue
The page will be added as the mostly recent accessed (last entry).
It's known that the page is not already in the list.
If the page is already full the least recently used page is trashed from the queue.
AddressSpace - class mmap.AddressSpace.
This class represents a virtual address space.
AddressSpace(String) - Constructor for class mmap.AddressSpace
Connect to an already existing address space.
AddressSpace(String, int) - Constructor for class mmap.AddressSpace
Connect to an already existing address space.
allPages - Variable in class mmap.LruQueue
All the page in the queue in an hash fashion for fast retrieval.

C

clear() - Method in class mmap.IntList
Clear the list.
clear() - Method in class mmap.LruQueue
Clear the queue synchronizing and purging all the pages.
close() - Method in class mmap.AddressSpace
Close the address space.
close() - Method in class mmap.Sync
Close this tread.
createSpace(String) - Static method in class mmap.AddressSpace
Create a new empty swap space.
createSpace(String, String) - Static method in class mmap.AddressSpace
Create a new empty swap space.
cursor - Variable in class mmap.IntList
Actual examined entry of the list.
cursor - Variable in class mmap.LruQueue
Actual examined entry of the queue.

D

data - Variable in class mmap.Page
Data contained in the page.
dirty - Variable in class mmap.SwappingPage
The memory image differs from the file image.
dump() - Method in class mmap.Page
Dump the page in a string readable format.
dump(OutputStream) - Method in class mmap.LruQueue
Dump the queue into a file in a string readable format.
dumpCache(String) - Method in class mmap.AddressSpace
Create a file image of the data cache in a human-readable format.

F

filler - Static variable in class mmap.Page
An helper array used to obtain a zero-fill effect.
first() - Method in class mmap.IntOrderedList
Get the first (greatest) integer in the list.

G

get() - Method in class mmap.IntList
Get an integer from the list.
get(int) - Method in class mmap.IntHashtable
Get an object from the table.
getData() - Method in class mmap.Page
Get the data contained in the page.
getOccupiedSize() - Method in class mmap.LruQueue
Get the number of the page in the queue.
getPosition() - Method in class mmap.SwappingPage
Retrieve the position of the page inside the swap.
getSize() - Method in class mmap.IntList
Get the size of the list.
getSize() - Method in class mmap.LruQueue
Get the size of the queue in pages

H

howMany - Variable in class mmap.IntList
Number of objects in the list.
howMany - Variable in class mmap.LruQueue
Number of pages in the queue.

I

interStep - Static variable in class mmap.Page
The step used to optimize the checking if the page has content or not.
IntHashtable - class mmap.IntHashtable.
Hashtable used to store objects.
IntHashtable() - Constructor for class mmap.IntHashtable
Create an empty hash with default load factors.
IntList - class mmap.IntList.
This list keeps integers in arrival order.
IntList.Entry - class mmap.IntList.Entry.
 
IntList.Entry(IntList, IntList.Entry, int, IntList.Entry) - Constructor for class mmap.IntList.Entry
 
IntList() - Constructor for class mmap.IntList
Create a new empty list.
IntOrderedList - class mmap.IntOrderedList.
This list keeps integers in descending order.
IntOrderedList() - Constructor for class mmap.IntOrderedList
Create a new empty list.
isAllZero() - Method in class mmap.Page
Test if the page has contents beside zero.

L

last - Variable in class mmap.IntList
Last entry of the list.
last - Variable in class mmap.LruQueue
Last entry of the queue.
last() - Method in class mmap.IntOrderedList
Get the last (lowest) integer in the list.
LruQueue - class mmap.LruQueue.
This list keeps SwappingPages in a Last Recently Used order.

LruQueue.Entry - class mmap.LruQueue.Entry.
 
LruQueue.Entry(LruQueue, LruQueue.Entry, SwappingPage, int, LruQueue.Entry) - Constructor for class mmap.LruQueue.Entry
 
LruQueue(int) - Constructor for class mmap.LruQueue
Create a new empty queue.
LruQueue(int, AddressSpace) - Constructor for class mmap.LruQueue
Create a new empty queue associated to an AddressSpace.

M

main(String[]) - Static method in class SwapTest
Just call it.

N

noNumbers - Static variable in class mmap.IntList
Number returned when no elements are available.
NotAlignedPointer - exception mmap.NotAlignedPointer.
This is the exception raised in case there is an improper data addressing inside the virtual memory module.
NotAlignedPointer(long) - Constructor for class mmap.NotAlignedPointer
 

P

Page - class mmap.Page.
Is the representation of a page for the virtual memory module.
Page() - Constructor for class mmap.Page
Create a new empty page.
pageLimit - Variable in class mmap.LruQueue
Maximum number of page allowed before trashing the last one.
pageSize - Static variable in class mmap.Page
Size of a page.
position - Variable in class mmap.NotAlignedPointer
Referred position that raised the exception.
position - Variable in class mmap.SwappingPage
The position of the page inside it's swap.
put(int, Object) - Method in class mmap.IntHashtable
Add an object in the table.

Q

queue - Variable in class mmap.IntList
First entry of the list.
queue - Variable in class mmap.LruQueue
First entry of the queue.

R

read(int) - Method in class mmap.AddressSpace
Read a byte value from the address space.
read(int) - Method in class mmap.Page
Read a byte from the page.
read(int, byte[]) - Method in class mmap.AddressSpace
Read a byte array from the address space.
read(int, byte[]) - Method in class mmap.Page
Read an array of bytes from the page.
read(int, byte[], int) - Method in class mmap.AddressSpace
Read a byte array from the address space until a certain amount of data is transferred.
read(int, byte[], int) - Method in class mmap.Page
Read an array of bytes from the page.
read(int, byte[], int, int) - Method in class mmap.AddressSpace
Read a byte array from the address space starting from an offset until a certain amount of data is transferred.
read(int, byte[], int, int) - Method in class mmap.Page
Read an array of bytes from the page.
readInt(int) - Method in class mmap.AddressSpace
Read an int value from the address space.
readInt(int) - Method in class mmap.Page
Read an integer from the page.
readLong(int) - Method in class mmap.AddressSpace
Read a long int value from the address space.
readLong(int) - Method in class mmap.Page
Read a long integer from the page.
readShort(int) - Method in class mmap.AddressSpace
Read a short int value from the address space.
readShort(int) - Method in class mmap.Page
Read a short int from the page.
rehash() - Method in class mmap.IntHashtable
Internal, used to rebalance the hash table.
remove(int) - Method in class mmap.IntHashtable
Remove an object from the table.
run() - Method in class mmap.Sync
Run the thread while not instructed to die.

S

select(int) - Method in class mmap.LruQueue
Get a page from the Queue
The page will be also marked as the mostly recent accessed (last entry).
setCache(int) - Method in class mmap.AddressSpace
Set the cache size.
setDirty() - Method in class mmap.SwappingPage
Set the page as dirty.
setPosition(int) - Method in class mmap.SwappingPage
Relocate the page inside the swap.
setSize(int) - Method in class mmap.LruQueue
Set the number of the page in that fit in the queue.
setTimer(int) - Method in class mmap.AddressSpace
Set timing for synchers.
shrink() - Method in class mmap.AddressSpace
Shrink the data file purging all the empty pages.
swapper - Variable in class mmap.SwappingPage
The swap where the page resides.
SwappingPage - class mmap.SwappingPage.
 
SwappingPage(RandomAccessFile) - Constructor for class mmap.SwappingPage
Create a new page inside a swap.
SwappingPage(RandomAccessFile, long) - Constructor for class mmap.SwappingPage
Create a new page inside a swap.
SwappingPage(RandomAccessFile, long, boolean) - Constructor for class mmap.SwappingPage
Create a new page inside a swap.
SwapTest - class SwapTest.
This class tests the swap module.
Sync - class mmap.Sync.
This class is a thread that keeps in sync a page or a LruQueue with the disk image.
sync() - Method in class mmap.AddressSpace
Synchronize memory and disk images of cached pages.
sync() - Method in class mmap.LruQueue
Synchronize (update disk image) all the pages in the queue.
sync() - Method in class mmap.SwappingPage
Synchronize the memory image and the disk image.
Sync(LruQueue, int) - Constructor for class mmap.Sync
Create a new syncher connected to an LruQueue.
Sync(SwappingPage, int) - Constructor for class mmap.Sync
Create a new syncher connected to a SwappingPage.

T

toString() - Method in class mmap.IntList
Convert the list in a string.
toString() - Method in class mmap.LruQueue
Convert the queue in a string.
toString() - Method in class mmap.Page
 
toString(int) - Method in class mmap.Page
Convert the page in a string.
trasher - Variable in class mmap.LruQueue
AddressSpace object the page belongs to.
trashPage(int, int) - Method in class mmap.AddressSpace
Destroy a page.

W

write(int, byte) - Method in class mmap.AddressSpace
Write a byte value inside the address space.
write(int, byte) - Method in class mmap.Page
Write a byte in the page.
write(int, byte) - Method in class mmap.SwappingPage
Write a byte in the page.
write(int, byte[]) - Method in class mmap.AddressSpace
Write a byte array inside the address space.
write(int, byte[]) - Method in class mmap.Page
Write an array of bytes to the page.
write(int, byte[]) - Method in class mmap.SwappingPage
Write an array of bytes to the page.
write(int, byte[], int) - Method in class mmap.AddressSpace
Write a byte array inside the address space until a certain amount of data is transferred.
write(int, byte[], int) - Method in class mmap.Page
Write an array of bytes to the page.
write(int, byte[], int) - Method in class mmap.SwappingPage
Write an array of bytes to the page.
write(int, byte[], int, int) - Method in class mmap.AddressSpace
Write a byte array inside the address space starting from an offset until a certain amount of data is transferred.
write(int, byte[], int, int) - Method in class mmap.Page
Write an array of bytes to the page.
write(int, byte[], int, int) - Method in class mmap.SwappingPage
Write an array of bytes to the page.
writeInt(int, int) - Method in class mmap.AddressSpace
Write an int value inside the address space.
writeInt(int, int) - Method in class mmap.Page
Write an integer to the page.
writeInt(int, int) - Method in class mmap.SwappingPage
Write an integer to the page.
writeLong(int, long) - Method in class mmap.AddressSpace
Write a long int value inside the address space.
writeLong(int, long) - Method in class mmap.Page
Write a long integer to the page.
writeLong(int, long) - Method in class mmap.SwappingPage
Write a long integer to the page.
writeShort(int, short) - Method in class mmap.AddressSpace
Write a short int value inside the address space.
writeShort(int, short) - Method in class mmap.Page
Write a short int to the page.
writeShort(int, short) - Method in class mmap.SwappingPage
Write a short int to the page.

Z

zeroFill() - Method in class mmap.Page
Blank a page.
zeroFill() - Method in class mmap.SwappingPage
Blank a page.

A C D F G H I L M N P Q R S T W Z
Help is irrilevant
You will be assimilated!

v1.0 beta by Dario Maggiorini