|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.PhysicalMemoryManager
This class provides a collection of methods to query, set up filters for, and set up insertion/removal handlers for physical memory ranges.
Field Summary | |
static Object |
ALIGNED
Specifies aligned memory. |
static Object |
BYTESWAP
Specifies that byte swapping should be used. |
static Object |
DMA
Specifies DMA memory. |
static Object |
IO_PAGE
Specifies I/O space. |
static Object |
SHARED
Specifies shared memory. |
Method Summary | |
static boolean |
isRemovable(long address,
long size)
Returns true if any part of the specified range of memory is removable. |
static boolean |
isRemoved(long address,
long size)
Returns true if any part of the specified range of memory is currently removed. |
static void |
onInsertion(long base,
long size,
AsyncEvent ae)
Associate a handler with insertion of memory in the given range. |
static void |
onInsertion(long base,
long size,
AsyncEventHandler aeh)
Deprecated. use onInsertion(long, long, AsyncEvent) |
static void |
onRemoval(long base,
long size,
AsyncEvent ae)
Associate a handler with removal of memory in the given range. |
static void |
onRemoval(long base,
long size,
AsyncEventHandler aeh)
Deprecated. use onRemoval(long, long,
javax.realtime.AsyncEvent) |
static void |
registerFilter(Object name,
PhysicalMemoryTypeFilter filter)
Register a memory type filter with the manager. |
static void |
removeFilter(Object name)
Dissociate the filter for the given memory type from the manager. |
static boolean |
unregisterInsertionEvent(long base,
long size,
AsyncEvent ae)
Unregister an insertion event. |
static boolean |
unregisterRemovalEvent(long base,
long size,
AsyncEvent ae)
Unregister a removal event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Object ALIGNED
public static final Object BYTESWAP
public static final Object DMA
public static final Object IO_PAGE
public static final Object SHARED
Method Detail |
public static final void registerFilter(Object name, PhysicalMemoryTypeFilter filter) throws DuplicateFilterException
name
- the type of memory handled by this filterfilter
- the filter
DuplicateFilterException
- if a filter for this type of
memory is already registered
ResourceLimitError
- too many filters have been
registered
IllegalArgumentException
- if the name parameter is an
array of objects, or if the name or the filter is not in
immortal memory, or if the name or the filter is null
SecurityException
- if this operation is not permittedpublic static final void removeFilter(Object name)
name
- the name associated with this filter
IllegalArgumentException
- if name
is
null
SecurityException
- if this operation is not permittedpublic static boolean isRemovable(long address, long size)
address
- the base physical address of the queried rangesize
- the extent of the queried range
public static boolean isRemoved(long address, long size)
address
- the base physical address of the queried rangesize
- the extent of the queried range
public static void onInsertion(long base, long size, AsyncEvent ae)
base
- the base physical address of the rangesize
- the extent of the rangeae
- the event to fire on insertion
IllegalArgumentException
- if the range contains no
removable memorypublic static void onRemoval(long base, long size, AsyncEvent ae)
base
- the base physical address of the rangesize
- the extent of the rangeae
- the event to fire on removal
IllegalArgumentException
- if the range contains no
removable memorypublic static boolean unregisterInsertionEvent(long base, long size, AsyncEvent ae)
base
- the base physical address associated with
ae
size
- the size of the memory area associated with
ae
ae
- the event to dissocate with onInsertion condition; if
null, unregister all events matching the rangepublic static boolean unregisterRemovalEvent(long base, long size, AsyncEvent ae)
base
- the base physical address associated with
ae
size
- the size of the memory area associated with
ae
ae
- the event to dissocate with onRemoval condition; if
null, unregister all events matching the rangepublic static void onRemoval(long base, long size, AsyncEventHandler aeh)
onRemoval(long, long,
javax.realtime.AsyncEvent)
base
- the base physical address of the rangesize
- the extent of the rangeaeh
- the handler to associate/dissociate
IllegalArgumentException
- if the range contains no
removable memorypublic static void onInsertion(long base, long size, AsyncEventHandler aeh)
onInsertion(long, long, AsyncEvent)
base
- the base physical address of the rangesize
- the extent of the rangeaeh
- the handler to associate/dissociate
IllegalArgumentException
- if the range contains no
removable memory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |