|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.rtsjx.CoreRawMemoryType
public class CoreRawMemoryType
Internal class that provides VM dependent information for physical memory managment.
Constructor Summary | |
---|---|
CoreRawMemoryType()
Default constructor without a base and a size. |
|
CoreRawMemoryType(long base,
long size)
Constructor specifying base and size. |
|
CoreRawMemoryType(java.lang.Object[] param)
Constructor specifying base and size. |
Method Summary | |
---|---|
void |
addConstraints(PhysicalMemoryRequest request)
Add new constraints to a physical memory request. |
void |
checkConstraints(PhysicalMemoryRequest request)
Check consistency with other constraints. |
boolean |
contains(long base,
long size)
|
long |
find(long base,
long size)
|
int |
getVMAttributes()
|
int |
getVMFlags()
|
void |
initialize(long base,
long vBase,
long size)
|
boolean |
isPresent(long base,
long size)
|
boolean |
isRemovable()
|
void |
onInsertion(long base,
long size,
javax.realtime.AsyncEvent ae)
|
void |
onInsertion(long base,
long size,
javax.realtime.AsyncEventHandler aeh)
|
void |
onRemoval(long base,
long size,
javax.realtime.AsyncEvent ae)
|
void |
onRemoval(long base,
long size,
javax.realtime.AsyncEventHandler aeh)
|
boolean |
unregisterInsertionEvent(long base,
long size,
javax.realtime.AsyncEvent ae)
|
boolean |
unregisterRemovalEvent(long base,
long size,
javax.realtime.AsyncEvent ae)
|
long |
vFind(long base,
long size)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoreRawMemoryType()
public CoreRawMemoryType(long base, long size)
base
- base addresssize
- size in bytespublic CoreRawMemoryType(java.lang.Object[] param)
param
- array containing two Long, the base at index 0 and the size at index 1.Method Detail |
---|
public long find(long base, long size)
find
in interface javax.realtime.PhysicalMemoryTypeFilter
public long vFind(long base, long size)
vFind
in interface javax.realtime.PhysicalMemoryTypeFilter
public void initialize(long base, long vBase, long size)
initialize
in interface javax.realtime.PhysicalMemoryTypeFilter
public boolean isRemovable()
isRemovable
in interface javax.realtime.PhysicalMemoryTypeFilter
public boolean contains(long base, long size)
contains
in interface javax.realtime.PhysicalMemoryTypeFilter
public void onRemoval(long base, long size, javax.realtime.AsyncEventHandler aeh)
onRemoval
in interface javax.realtime.PhysicalMemoryTypeFilter
public void onRemoval(long base, long size, javax.realtime.AsyncEvent ae)
onRemoval
in interface javax.realtime.PhysicalMemoryTypeFilter
public void onInsertion(long base, long size, javax.realtime.AsyncEventHandler aeh)
onInsertion
in interface javax.realtime.PhysicalMemoryTypeFilter
public void onInsertion(long base, long size, javax.realtime.AsyncEvent ae)
onInsertion
in interface javax.realtime.PhysicalMemoryTypeFilter
public boolean isPresent(long base, long size)
isPresent
in interface javax.realtime.PhysicalMemoryTypeFilter
public int getVMAttributes()
getVMAttributes
in interface javax.realtime.PhysicalMemoryTypeFilter
public int getVMFlags()
getVMFlags
in interface javax.realtime.PhysicalMemoryTypeFilter
public boolean unregisterInsertionEvent(long base, long size, javax.realtime.AsyncEvent ae)
unregisterInsertionEvent
in interface javax.realtime.PhysicalMemoryTypeFilter
public boolean unregisterRemovalEvent(long base, long size, javax.realtime.AsyncEvent ae)
unregisterRemovalEvent
in interface javax.realtime.PhysicalMemoryTypeFilter
public void addConstraints(PhysicalMemoryRequest request) throws java.lang.SecurityException, javax.realtime.OffsetOutOfBoundsException, javax.realtime.SizeOutOfBoundsException, javax.realtime.UnsupportedPhysicalMemoryException, javax.realtime.MemoryTypeConflictException, java.lang.OutOfMemoryError
request
- null or PhysicalMemoryRequest containing the previously
parsed constraints.
java.lang.SecurityException
- Thrown if application
doesn't have permissions to access physical memory, the
specified range of addresses, or the given type of memory.
javax.realtime.OffsetOutOfBoundsException
- Thrown if
the address is invalid.
javax.realtime.SizeOutOfBoundsException
- Thrown if
the size is negative or extends into an invalid range of memory.
javax.realtime.UnsupportedPhysicalMemoryException
- Thrown if the underlying hardware does not support the given
type, or if no matching PhysicalMemoryTypeFilter has been
registered with the PhysicalMemoryManager.
javax.realtime.MemoryTypeConflictException
- Thrown
if the specified base does not point to memory that matches the
request type, or if type specifies incompatible memory
attributes.
java.lang.OutOfMemoryError
- Thrown if the requested
type of memory exists, but there is not enough of it free to
satisfy the request.PhysicalMemoryRequest
public void checkConstraints(PhysicalMemoryRequest request) throws java.lang.SecurityException, javax.realtime.OffsetOutOfBoundsException, javax.realtime.SizeOutOfBoundsException, javax.realtime.MemoryTypeConflictException, java.lang.OutOfMemoryError
request
- null or PhysicalMemoryRequest containing the previously
parsed constraints.
java.lang.SecurityException
- Thrown if application
doesn't have permissions to access physical memory, the
specified range of addresses, or the given type of memory.
javax.realtime.OffsetOutOfBoundsException
- Thrown if
the address is invalid.
javax.realtime.SizeOutOfBoundsException
- Thrown if
the size is negative or extends into an invalid range of memory.
javax.realtime.MemoryTypeConflictException
- Thrown
if the specified base does not point to memory that matches the
request type, or if type specifies incompatible memory
attributes.
java.lang.OutOfMemoryError
- Thrown if the requested
type of memory exists, but there is not enough of it free to
satisfy the request.PhysicalMemoryRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |