The default implementation for the IJvm interface. You are unlikely to ever have to use these methods explicitly, unless you want to control in detail how .NET threads are attached to the Java virtual machine.
More...
|
| Jvm (long pInstance) |
| Initializes a new instance represnting an already loaded JVM. More...
|
|
long | Attach () |
| Attaches the current thread to the JVM. This method is not exposed to COM to prevent overloading issues. More...
|
|
long | Attach (JavaProxy threadGroup) |
| Attaches the current thread to the JVM and adds it to the specified threadgroup. This method is not exposed to COM to prevent overloading issues. More...
|
|
long | Attach (JavaProxy threadGroup, string name) |
| Attaches the current thread to the JVM and adds it to the specified threadgroup with the specified threadname. This method is not exposed to COM to prevent overloading issues. More...
|
|
long | Attach (JavaProxy threadGroup, string name, bool bAsDaemon) |
| Attaches the current thread to the JVM and adds it to the specified threadgroup with the specified threadname and possibly as a daemon thread. More...
|
|
long | Attach (long env) |
| Attaches an already created Java thread to the runtime. This method is not exposed to COM to prevent overloading issues. More...
|
|
void | Detach () |
| Detaches the current thread from the JVM. More...
|
|
void | Detach (long env) |
| Detaches the current thread from the JVM. This method is not exposed to COM to prevent overloading issues. More...
|
|
void | Destroy () |
| Attempts to unload the JVM. More...
|
|
|
long | Ptr [get] |
| A property representing the loaded JVM. More...
|
|
long | FreeMemory [get] |
| A property representing the free memory in the JVM. More...
|
|
long | MaxMemory [get] |
| A property representing the maximally available memory for the JVM. More...
|
|
long | TotalMemory [get] |
| A property representing the memory used by the JVM. More...
|
|
long | Ptr [get] |
| A property representing the loaded JVM. More...
|
|
long | FreeMemory [get] |
| A property representing the free memory in the JVM. More...
|
|
long | MaxMemory [get] |
| A property representing the maximally available memory for the JVM. More...
|
|
long | TotalMemory [get] |
| A property representing the memory used by the JVM. More...
|
|
The default implementation for the IJvm interface. You are unlikely to ever have to use these methods explicitly, unless you want to control in detail how .NET threads are attached to the Java virtual machine.
◆ Jvm()
Codemesh.JuggerNET.Jvm.Jvm |
( |
long |
pInstance | ) |
|
|
inline |
Initializes a new instance represnting an already loaded JVM.
- Parameters
-
pInstance | a pointer to the already laoded JVM. The pointed to object is intentionally left opaque. You should not specifically not assume that it is a JavaVM pointer. |
◆ Attach() [1/5]
long Codemesh.JuggerNET.Jvm.Attach |
( |
| ) |
|
|
inline |
◆ Attach() [2/5]
long Codemesh.JuggerNET.Jvm.Attach |
( |
JavaProxy |
threadGroup | ) |
|
|
inline |
Attaches the current thread to the JVM and adds it to the specified threadgroup. This method is not exposed to COM to prevent overloading issues.
- Parameters
-
threadGroup | the thread group to which to attach the thread. May be null . |
- Returns
- a
long
representing the local environment.
Implements Codemesh.JuggerNET.IJvm.
References Codemesh.JuggerNET.Jvm.Attach().
◆ Attach() [3/5]
long Codemesh.JuggerNET.Jvm.Attach |
( |
JavaProxy |
threadGroup, |
|
|
string |
name |
|
) |
| |
|
inline |
Attaches the current thread to the JVM and adds it to the specified threadgroup with the specified threadname. This method is not exposed to COM to prevent overloading issues.
- Parameters
-
threadGroup | the thread group to which to attach the thread. May be null . |
name | the name under which the thread is known in Java. May be null . |
- Returns
- a
long
representing the local environment.
Implements Codemesh.JuggerNET.IJvm.
References Codemesh.JuggerNET.Jvm.Attach().
◆ Attach() [4/5]
long Codemesh.JuggerNET.Jvm.Attach |
( |
JavaProxy |
threadGroup, |
|
|
string |
name, |
|
|
bool |
bAsDaemon |
|
) |
| |
|
inline |
Attaches the current thread to the JVM and adds it to the specified threadgroup with the specified threadname and possibly as a daemon thread.
- Parameters
-
threadGroup | the thread group to which to attach the thread. May be null . |
name | the name under which the thread is known in Java. May be null . |
bAsDaemon | true if the thread should become a background thread that does not prevent the JVM from exiting even if it is still running. |
- Returns
- a
long
representing the local environment.
Implements Codemesh.JuggerNET.IJvm.
References Codemesh.JuggerNET.JavaProxy.JObject.
◆ Attach() [5/5]
long Codemesh.JuggerNET.Jvm.Attach |
( |
long |
env | ) |
|
|
inline |
Attaches an already created Java thread to the runtime. This method is not exposed to COM to prevent overloading issues.
- Parameters
-
env | the local environment. |
- Returns
- a
long
representing the local environment.
Implements Codemesh.JuggerNET.IJvm.
◆ Destroy()
void Codemesh.JuggerNET.Jvm.Destroy |
( |
| ) |
|
|
inline |
◆ Detach() [1/2]
void Codemesh.JuggerNET.Jvm.Detach |
( |
| ) |
|
|
inline |
◆ Detach() [2/2]
void Codemesh.JuggerNET.Jvm.Detach |
( |
long |
env | ) |
|
|
inline |
Detaches the current thread from the JVM. This method is not exposed to COM to prevent overloading issues.
- Parameters
-
env | the local environment. |
Implements Codemesh.JuggerNET.IJvm.
◆ FreeMemory
long Codemesh.JuggerNET.Jvm.FreeMemory |
|
get |
A property representing the free memory in the JVM.
◆ MaxMemory
long Codemesh.JuggerNET.Jvm.MaxMemory |
|
get |
A property representing the maximally available memory for the JVM.
◆ Ptr
long Codemesh.JuggerNET.Jvm.Ptr |
|
get |
A property representing the loaded JVM.
◆ TotalMemory
long Codemesh.JuggerNET.Jvm.TotalMemory |
|
get |
A property representing the memory used by the JVM.
The documentation for this class was generated from the following file: