|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use NotAvailableException | |
com.bea.jvm | Provides the interfaces and the factory class for the JRockit management API. |
com.bea.jvm.event | Provides interfaces and classes for dealing with different types of management API events. |
Uses of NotAvailableException in com.bea.jvm |
Methods in com.bea.jvm that throw NotAvailableException | |
java.util.Collection |
ThreadSystem.getThreadSnapshots()
Returns a Collection of ThreadSnapshots for all the live threads in the JVM. |
ThreadSnapshot |
ThreadSystem.getThreadSnapshot(java.lang.Thread t)
Get a snapshot of a thread in the JVM. |
java.util.Collection |
ThreadSystem.getThreadSnapshots(java.lang.String name)
Gets snapshots for the threads matching the specified name. |
ThreadSnapshot |
ThreadSystem.getThreadSnapshot(int id)
Get a snapshot of a thread in the JVM. |
int |
ThreadSystem.getTotalThreadCount()
Returns the total number of running threads in the system, including daemon threads. |
int |
ThreadSystem.getDaemonThreadCount()
Returns the number of daemon threads in the system. |
java.util.Collection |
ThreadSystem.getAllThreads()
Returns a Collection of all the Threads running in the VM. |
java.util.Collection |
ThreadSystem.getThreads(java.lang.String name)
Returns a Collection with all the threads with the specified name. |
java.lang.Thread |
ThreadSystem.getThread(int id)
Returns a thread matching the specified id. |
boolean |
ThreadSystem.isUsingThinThreads()
Returns true if the thread system is using thin treads, false otherwise. |
java.lang.String |
ThreadSystem.getThreadStackDump()
Convenience method returning a thread stack dump for all live threads in the system. |
void |
ProfilingSystem.setInvocationCountEnabled(java.lang.reflect.Method method,
boolean enable)
Enables or disables invocation counting for the specified method depending on the enable argument. |
void |
ProfilingSystem.setInvocationCountEnabled(java.lang.reflect.Constructor constructor,
boolean enable)
Enables or disables invocation counting for the specified constructor depending on the enable argument. |
boolean |
ProfilingSystem.isInvocationCountEnabled(java.lang.reflect.Method method)
Returns true if invocation counting is enabled for the specified method. |
boolean |
ProfilingSystem.isInvocationCountEnabled(java.lang.reflect.Constructor constructor)
Returns true if invocation counting is enabled for the specified constructor. |
long |
ProfilingSystem.getInvocationCount(java.lang.reflect.Method method)
Returns the invocation count since enabling invocation counting for the for the specified method. |
long |
ProfilingSystem.getInvocationCount(java.lang.reflect.Constructor constructor)
Returns the invocation count since enabling invocation counting for the for the specified constructor. |
void |
ProfilingSystem.setTimingEnabled(java.lang.reflect.Method method,
boolean enable)
Enables or disables timing (that is, measure time spent in) depending on the enable argument. |
void |
ProfilingSystem.setTimingEnabled(java.lang.reflect.Constructor constructor,
boolean enable)
Enables or disables timing (that is, measure time spent in) depending on the enable argument. |
boolean |
ProfilingSystem.isTimingEnabled(java.lang.reflect.Method method)
Checks whether timing is enabled or not for a certain method. |
boolean |
ProfilingSystem.isTimingEnabled(java.lang.reflect.Constructor constructor)
Checks whether timing is enabled or not for the specified constructor. |
long |
ProfilingSystem.getTiming(java.lang.reflect.Method method)
Returns the amount of time spent performing work in the method, since enabling timing (in miliseconds). |
long |
ProfilingSystem.getTiming(java.lang.reflect.Constructor constructor)
Returns the amount of time spent performing work in the constructor since enabling timing (in miliseconds). |
java.lang.String |
OperatingSystem.getName()
Returns the name of the operating system. |
Memory |
OperatingSystem.getVirtualMemory()
Returns the virtual memory. |
long |
MemorySystem.getMaxHeapSize()
Returns the maximum size the heap may grow to, in bytes. |
long |
MemorySystem.getTotalHeapSize()
Returns the size of the heap that the JVM has allocated, in bytes. |
long |
MemorySystem.getUsedHeapSize()
Returns the committed heap size of the JVM in bytes. |
GarbageCollector |
MemorySystem.getGarbageCollector()
Returns the GarbageCollector subsystem. |
void |
MemorySystem.suggestHeapSize(long heapSize)
This method will suggest the heapsize to be used. |
void |
MemorySystem.setHeapSizeLocked(boolean lock)
This method changes the JVM's ability to adaptively change the heap size. |
boolean |
MemorySystem.isHeapSizeLocked()
This method returns false if the heap size is controlled by the JVM, false otherwise. |
void |
MemorySystem.setExitOnOutOfMemory(boolean exit)
This method will change whether the JVM will exit with an error code, instead of throwing an OutOfMemoryError. |
boolean |
MemorySystem.isExitOnOutOfMemory()
Returns true if the JVM will exit with an error code instead of throwing an OutOfMemoryError, false if it throws an OutOfMemoryError. |
java.util.List |
Machine.getCPUs()
Returns the CPUs in the machine as an ordered collection (List) of CPU objects. |
java.util.Collection |
Machine.getNICs()
Returns the network interface cards as a collection of NIC. |
PhysicalMemory |
Machine.getPhysicalMemory()
The physical memory of the hardware. |
java.util.Collection |
Machine.getHardwareComponents()
Returns all available hardware components in the system, as a Collection of HardwareComponent. |
static JVM |
JVMFactory.getJVM()
Returns a JVM instance. |
ThreadSystem |
JVM.getThreadSystem()
Returns the ThreadSystem. |
MemorySystem |
JVM.getMemorySystem()
Returns the MemorySystem. |
ClassLibrary |
JVM.getClassLibrary()
Returns the ClassLibrary. |
OperatingSystem |
JVM.getOperatingSystem()
Returns the OperatingSystem on which the JVM is run. |
CompilationSystem |
JVM.getCompilationSystem()
Returns the compiler (if available) that is used to generate machine code for methods. |
ProfilingSystem |
JVM.getProfilingSystem()
Returns the profiler (if available) used to instrument code being executed. |
Machine |
JVM.getMachine()
Returns the underlying hardware. |
java.lang.String |
JVM.getVendor()
Returns the name of the JVM vendor. |
java.lang.String |
JVM.getVersion()
Returns the JVM version string. |
java.lang.String |
JVM.getName()
Returns the JVM name string. |
void |
JVM.suggestProcessAffinity(java.util.Collection cpuCollection)
Suggests the process affinity. |
java.util.Collection |
JVM.getProcessAffinity()
Returns a collection with the CPUs that the JVM process currently is running on. |
long |
JVM.getStartTime()
Returns the time that the JVM process was started. |
double |
JVM.getJVMLoad()
Returns the fraction of the load on the machine caused by the JVM. 0.0 means no load is created by the virtual machine, 1.0 means all load is created by the JVM. |
boolean |
GarbageCollector.isGenerational()
Returns true if this memory model at some point uses a nursery/ young-space. |
boolean |
GarbageCollector.hasCompaction()
Returns true if this Garbage Collector compacts the heap. |
boolean |
GarbageCollector.isIncremental()
Returns true if this Garbage Collector collects garbage incrementally (in small steps, train algorithm or similar). |
boolean |
GarbageCollector.isConcurrent()
Returns true if this Garbage Collector at some point collects garbage concurrently, i.e. in a separate thread running concurrently with the other threads. |
boolean |
GarbageCollector.isParallel()
Returns true if this Garbage Collector at some point runs in parallel on several processors when collecting garbage. |
long |
GarbageCollector.getTotalGarbageCollectionCount()
Returns the total number of collection runs performed so far. |
long |
GarbageCollector.getLastGCStart()
Returns the time the last Garbage Collection run started. |
long |
GarbageCollector.getLastGCEnd()
Returns the time the last Garbage Collection run started. |
long |
GarbageCollector.getTotalGarbageCollectionTime()
Returns the total time spent Garabage Collecting so far. |
long |
GarbageCollector.getNurserySize()
Returns the size of the nursery/youngspace in bytes. |
void |
GarbageCollector.setNurserySize(long nurserySize)
Sets the nursery size. |
void |
GarbageCollector.addGarbageCollectionListener(GarbageCollectionListener listener)
Adds a listener to be notified whenever a Garbage Collection run has been performed. |
void |
GarbageCollector.removeGarbageCollectionListener(GarbageCollectionListener listener)
Removes the specified GarbageCollectionListener. |
void |
GarbageCollector.addFinalizationListener(FinalizationListener listener)
Add listener to be notified whenever an Object has been finalized. |
void |
GarbageCollector.addFinalizationListener(FinalizationListener listener,
boolean onlyFailed)
Add listener to be notified whenever an Object has been finalized. |
void |
GarbageCollector.removeFinalizationListener(FinalizationListener listener)
Removes the specified listener. |
java.util.Collection |
GarbageCollector.getGarbageCollectionStrategies()
Returns a collection of currently available GarbageCollectionStrategies (@see GarbageCollectionStrategy). |
GarbageCollectionStrategy |
GarbageCollector.getGarbageCollectionStrategy()
Returns the strategy currently being employed by the GarbageCollector. |
void |
GarbageCollector.suggestGarbageCollectionStrategy(GarbageCollectionStrategy strategy)
Suggests a static garbage collector strategy to the system. |
boolean |
GarbageCollector.isDynamic()
Returns true if the GC system is running in a dynamic mode, i.e. a mode that allows the strategy to change. |
boolean |
GarbageCollector.isSelfOptimizing()
Returns true if the GC system is running in a mode that will automatically choose GarbageCollectionStrategy for you. |
void |
GarbageCollector.addGarbageCollectionStrategyChangeListener(GarbageCollectionStrategyChangeListener listener)
Adds a listener for the strategy change event (@see GarbageCollectionStrategyChangeEvent). |
void |
GarbageCollector.removeGarbageCollectionStrategyChangeListener(GarbageCollectionStrategyChangeListener listener)
Removes a strategy change listener (@see GarbageCollectionStrategyChangeEvent). |
double |
CPU.getLoad()
Returns the CPU load on this CPU. |
long |
CPU.getClockFrequency()
Returns the clock frequency of this processor in Hz. |
java.util.List |
CompilationSystem.getOptimizationLevels()
Deprecated. Replaced by getCodeGenerationStrategies(). |
java.util.List |
CompilationSystem.getCodeGenerationStrategies()
Returns an immutable List of the available CodeGenerationStrategies available in this CompilationSystem, in ascending order, i.e. starting with the lowest level (quick), followed by increasingly advanced strategies. |
boolean |
CompilationSystem.isCompiled(java.lang.reflect.Method method)
Returns boolean true if the Method is compiled, false otherwise. |
boolean |
CompilationSystem.isCompiled(java.lang.reflect.Constructor constructor)
Returns boolean true if the Constructor is compiled, false otherwise. |
boolean |
CompilationSystem.isOptimized(java.lang.reflect.Method method)
Returns boolean true if the method is optimized, i.e. has been generated using the optimizing code generation strategy. |
boolean |
CompilationSystem.isOptimizing()
This method returns boolean false if optimization is turned off (i.e. |
void |
CompilationSystem.setOptimizing(boolean optimize)
This method will turn on or off optimizations. |
boolean |
CompilationSystem.isOptimized(java.lang.reflect.Constructor constructor)
Returns boolean true if the constructor is optimized, i.e. has been generated using the optimizing code generation strategy. |
OptimizationLevel |
CompilationSystem.getOptimizationLevel(java.lang.reflect.Method method)
Deprecated. Replaced. @see CompilationSystem#getCodeGenerationStrategy(Method) |
CodeGenerationStrategy |
CompilationSystem.getCodeGenerationStrategy(java.lang.reflect.Method method)
Returns the CodeGenerationStrategy that was used for generating the Method. |
OptimizationLevel |
CompilationSystem.getOptimizationLevel(java.lang.reflect.Constructor constructor)
Deprecated. Replaced. @see CompilationSystem#getCodeGenerationStrategy(Constructor) |
CodeGenerationStrategy |
CompilationSystem.getCodeGenerationStrategy(java.lang.reflect.Constructor constructor)
Returns the CodeGenerationStrategy for a Constructor. |
boolean |
CompilationSystem.forceCompilation(java.lang.reflect.Method method)
Force the compiler to generate code for this method using the default OptimizationLevel. |
boolean |
CompilationSystem.forceCompilation(java.lang.reflect.Constructor constructor)
Force the compiler to generate code for the specified Constructor using the default OptimizationLevel. |
boolean |
CompilationSystem.forceCompilation(java.lang.reflect.Method method,
OptimizationLevel optLevel)
Deprecated. Replaced. @see |
boolean |
CompilationSystem.forceCompilation(java.lang.reflect.Method method,
CodeGenerationStrategy strategy)
Deprecated. Replaced. @see |
boolean |
CompilationSystem.forceCompilation(java.lang.reflect.Constructor constructor,
OptimizationLevel optLevel)
Forces the compiler to generate code for the specified constructor using the specified OptimizationLevel. |
boolean |
CompilationSystem.forceCompilation(java.lang.reflect.Constructor constructor,
CodeGenerationStrategy strategy)
Forces the compiler to generate code for the specified constructor using the specified CodeGenerationStrategy. |
void |
CompilationSystem.addCompilationListener(CompilationListener listener)
Adds a listener to recieve notification when a method is compiled. |
void |
CompilationSystem.removeCompilationListener(CompilationListener listener)
Removes a listener which recieves notification when a method is compiled. |
void |
CompilationSystem.redefineMethod(java.lang.reflect.Method method,
byte[] buffer,
int offset,
int length)
Redefines the specified method. |
java.util.Collection |
ClassLibrary.getAllClassLoaders()
Returns all the ClassLoaders currently in use. |
java.lang.Class |
ClassLibrary.getClass(java.lang.String className,
java.lang.ClassLoader loader,
boolean load)
Find a named class in the JVM. |
java.lang.Class |
ClassLibrary.getClass(java.lang.String className,
java.lang.ClassLoader loader)
Find an already loaded class in the JVM. |
java.util.Collection |
ClassLibrary.getAllClasses(java.lang.String className)
Find all classes with this name in the JVM (will search through all class loaders, but will not load the Class if not found.) |
java.util.Collection |
ClassLibrary.getAllClasses(java.lang.ClassLoader loader)
Find all (loaded) classes in this loader (will _not_ include parent loaders). |
void |
ClassLibrary.addClassLoadListener(java.lang.ClassLoader loader,
ClassLoadListener listener)
Add a listener to receive event notification of Class load/unload. |
void |
ClassLibrary.addClassLoadListener(ClassLoadListener listener)
Adds a listener to receive event notification of any Class load/unload. |
void |
ClassLibrary.removeClassLoadListener(ClassLoadListener listener)
Removes the specified ClassLoadListener. |
void |
ClassLibrary.redefineClass(java.lang.Class cl,
byte[] buffer,
int offset,
int length)
Redefines the specified class. |
void |
ClassLibrary.setClassPreProcessor(ClassPreProcessor preProcessor)
Registers a class preprocessor. |
ClassPreProcessor |
ClassLibrary.getClassPreProcessor()
Returns the ClassPreProcessor currently in use. |
Uses of NotAvailableException in com.bea.jvm.event |
Methods in com.bea.jvm.event that throw NotAvailableException | |
java.lang.reflect.Method |
CompilationEvent.getMethod()
Returns the Method that was compiled, which ultimately caused this event to be created. |
java.lang.reflect.Constructor |
CompilationEvent.getConstructor()
Returns the Constructor that was compiled, which ultimately caused this event to be created. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |