javax.realtime
Class ImmortalPhysicalMemory

java.lang.Object
  extended byjavax.realtime.MemoryArea
      extended byjavax.realtime.ImmortalPhysicalMemory

public class ImmortalPhysicalMemory
extends MemoryArea

A memory area that allows allocation from a physical memory range with particular memory attributes. Like ImmortalMemory, memory areas of this type are not garbage collected.

Since:
0.3.8
Author:
Morgan Deters

Field Summary
 
Fields inherited from class javax.realtime.MemoryArea
logic, parent, sizeInBytes
 
Constructor Summary
ImmortalPhysicalMemory(Object type, long size)
          Construct an ImmortalPhysicalMemory.
ImmortalPhysicalMemory(Object type, long base, long size)
          Construct an ImmortalPhysicalMemory.
ImmortalPhysicalMemory(Object type, long base, long size, Runnable logic)
          Construct an ImmortalPhysicalMemory.
ImmortalPhysicalMemory(Object type, long size, Runnable logic)
          Construct an ImmortalPhysicalMemory.
ImmortalPhysicalMemory(Object type, long base, SizeEstimator size)
          Construct an ImmortalPhysicalMemory.
ImmortalPhysicalMemory(Object type, long base, SizeEstimator size, Runnable logic)
          Construct an ImmortalPhysicalMemory.
ImmortalPhysicalMemory(Object type, SizeEstimator size)
          Construct an ImmortalPhysicalMemory.
ImmortalPhysicalMemory(Object type, SizeEstimator size, Runnable logic)
          Construct an ImmortalPhysicalMemory.
 
Methods inherited from class javax.realtime.MemoryArea
enter, enter, executeInArea, finalize, getMemoryArea, guardedRun, memoryConsumed, memoryRemaining, newArray, newInstance, newInstance, size
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmortalPhysicalMemory

public ImmortalPhysicalMemory(Object type,
                              long size)
Construct an ImmortalPhysicalMemory.

Parameters:
type - the requested type of memory
size - the requested size of the memory area
Throws:
SecurityException - if the calling execution context doesn't have permission to access this memory area
SizeOutOfBoundsException - the size is negative or extends into an invalid range of memory
UnsupportedPhysicalMemoryException - hardware doesn't support the type of memory requested
MemoryTypeConflictException - never thrown (but the spec requires it in the signature)

ImmortalPhysicalMemory

public ImmortalPhysicalMemory(Object type,
                              long base,
                              long size)
Construct an ImmortalPhysicalMemory.

Parameters:
type - the requested type of memory
base - the requested base physical address of the memory area
size - the requested size of the memory area
Throws:
SecurityException - if the calling execution context doesn't have permission to access this memory area
SizeOutOfBoundsException - the size is negative or extends into an invalid range of memory
UnsupportedPhysicalMemoryException - hardware doesn't support the type of memory requested
MemoryTypeConflictException - if the memory type and offset are in conflict
MemoryInUseException - at least some of the requested memory range is already in use

ImmortalPhysicalMemory

public ImmortalPhysicalMemory(Object type,
                              long base,
                              long size,
                              Runnable logic)
Construct an ImmortalPhysicalMemory.

Parameters:
type - the requested type of memory
base - the requested base physical address of the memory area
size - the requested size of the memory area
logic - the run() method invoked when MemoryArea.enter() is called
Throws:
SecurityException - if the calling execution context doesn't have permission to access this memory area
SizeOutOfBoundsException - the size is negative or extends into an invalid range of memory
UnsupportedPhysicalMemoryException - hardware doesn't support the type of memory requested
MemoryTypeConflictException - if the memory type and offset are in conflict
MemoryInUseException - at least some of the requested memory range is already in use

ImmortalPhysicalMemory

public ImmortalPhysicalMemory(Object type,
                              long size,
                              Runnable logic)
Construct an ImmortalPhysicalMemory.

Parameters:
type - the requested type of memory
size - the requested size of the memory area
logic - the run() method invoked when MemoryArea.enter() is called
Throws:
SecurityException - if the calling execution context doesn't have permission to access this memory area
SizeOutOfBoundsException - the size is negative or extends into an invalid range of memory
UnsupportedPhysicalMemoryException - hardware doesn't support the type of memory requested
MemoryTypeConflictException - never thrown (but the spec requires it in the signature)

ImmortalPhysicalMemory

public ImmortalPhysicalMemory(Object type,
                              long base,
                              SizeEstimator size)
Construct an ImmortalPhysicalMemory.

Parameters:
type - the requested type of memory
base - the requested base physical address of the memory area
size - the requested size of the memory area
Throws:
SecurityException - if the calling execution context doesn't have permission to access this memory area
SizeOutOfBoundsException - the size is negative or extends into an invalid range of memory
UnsupportedPhysicalMemoryException - hardware doesn't support the type of memory requested
MemoryTypeConflictException - if the memory type and offset are in conflict
MemoryInUseException - at least some of the requested memory range is already in use

ImmortalPhysicalMemory

public ImmortalPhysicalMemory(Object type,
                              long base,
                              SizeEstimator size,
                              Runnable logic)
Construct an ImmortalPhysicalMemory.

Parameters:
type - the requested type of memory
base - the requested base physical address of the memory area
size - the requested size of the memory area
logic - the run() method invoked when MemoryArea.enter() is called
Throws:
SecurityException - if the calling execution context doesn't have permission to access this memory area
SizeOutOfBoundsException - the size is negative or extends into an invalid range of memory
UnsupportedPhysicalMemoryException - hardware doesn't support the type of memory requested
MemoryTypeConflictException - if the memory type and offset are in conflict
MemoryInUseException - at least some of the requested memory range is already in use

ImmortalPhysicalMemory

public ImmortalPhysicalMemory(Object type,
                              SizeEstimator size)
Construct an ImmortalPhysicalMemory.

Parameters:
type - the requested type of memory
size - the requested size of the memory area
Throws:
SecurityException - if the calling execution context doesn't have permission to access this memory area
SizeOutOfBoundsException - the size is negative or extends into an invalid range of memory
UnsupportedPhysicalMemoryException - hardware doesn't support the type of memory requested
MemoryTypeConflictException - never thrown (but the spec requires it in the signature)

ImmortalPhysicalMemory

public ImmortalPhysicalMemory(Object type,
                              SizeEstimator size,
                              Runnable logic)
Construct an ImmortalPhysicalMemory.

Parameters:
type - the requested type of memory
size - the requested size of the memory area
logic - the run() method invoked when MemoryArea.enter() is called
Throws:
SecurityException - if the calling execution context doesn't have permission to access this memory area
SizeOutOfBoundsException - the size is negative or extends into an invalid range of memory
UnsupportedPhysicalMemoryException - hardware doesn't support the type of memory requested
MemoryTypeConflictException - never thrown (but the spec requires it in the signature)


jRate is developed and maintained by the jRate project development team.
Copyright (c) 2001-2006 Angelo Corsaro and Morgan Deters.