JuggerNET Runtime Library v3.6.54.0  3.6.54.0
Public Member Functions | Properties | List of all members
Codemesh.JuggerNET.IJvm Interface Reference

The interface implemented by all JVMs. More...

Inheritance diagram for Codemesh.JuggerNET.IJvm:
Inheritance graph
[legend]

Public Member Functions

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...
 

Properties

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...
 

Detailed Description

The interface implemented by all JVMs.

Member Function Documentation

◆ Attach() [1/5]

long Codemesh.JuggerNET.IJvm.Attach ( )

Attaches the current thread to the JVM. This method is not exposed to COM to prevent overloading issues.

Returns
a long representing the local environment.

Implemented in Codemesh.JuggerNET.Jvm.

◆ Attach() [2/5]

long Codemesh.JuggerNET.IJvm.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.

Parameters
threadGroupthe thread group to which to attach the thread. May be null.
Returns
a long representing the local environment.

Implemented in Codemesh.JuggerNET.Jvm.

◆ Attach() [3/5]

long Codemesh.JuggerNET.IJvm.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.

Parameters
threadGroupthe thread group to which to attach the thread. May be null.
namethe name under which the thread is known in Java. May be null.
Returns
a long representing the local environment.

Implemented in Codemesh.JuggerNET.Jvm.

◆ Attach() [4/5]

long Codemesh.JuggerNET.IJvm.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.

Parameters
threadGroupthe thread group to which to attach the thread. May be null.
namethe name under which the thread is known in Java. May be null.
bAsDaemontrue 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.

Implemented in Codemesh.JuggerNET.Jvm.

◆ Attach() [5/5]

long Codemesh.JuggerNET.IJvm.Attach ( long  env)

Attaches an already created Java thread to the runtime. This method is not exposed to COM to prevent overloading issues.

Parameters
envthe local environment.
Returns
a long representing the local environment.

Implemented in Codemesh.JuggerNET.Jvm.

◆ Destroy()

void Codemesh.JuggerNET.IJvm.Destroy ( )

Attempts to unload the JVM.

You should not assume that you can reload another JVM after you have called this method to unload a JVM.

Implemented in Codemesh.JuggerNET.Jvm.

◆ Detach() [1/2]

void Codemesh.JuggerNET.IJvm.Detach ( )

Detaches the current thread from the JVM.

Implemented in Codemesh.JuggerNET.Jvm.

◆ Detach() [2/2]

void Codemesh.JuggerNET.IJvm.Detach ( long  env)

Detaches the current thread from the JVM. This method is not exposed to COM to prevent overloading issues.

Parameters
envthe local environment.

Implemented in Codemesh.JuggerNET.Jvm.

Property Documentation

◆ FreeMemory

long Codemesh.JuggerNET.IJvm.FreeMemory
get

A property representing the free memory in the JVM.

◆ MaxMemory

long Codemesh.JuggerNET.IJvm.MaxMemory
get

A property representing the maximally available memory for the JVM.

◆ Ptr

long Codemesh.JuggerNET.IJvm.Ptr
get

A property representing the loaded JVM.

◆ TotalMemory

long Codemesh.JuggerNET.IJvm.TotalMemory
get

A property representing the memory used by the JVM.


The documentation for this interface was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.