Table of Contents

Class StartJNetPSCmdletCommandBase<TCmdlet, TCore>

Namespace
MASES.JNetPSCore.Cmdlet
Assembly
MASES.JNetPSCore.dll

Base class to be extended in derived projects to add other parameters

public abstract class StartJNetPSCmdletCommandBase<TCmdlet, TCore> : JNetPSExternalizableCmdlet<TCmdlet> where TCmdlet : StartJNetPSCmdletCommandBase<TCmdlet, TCore> where TCore : JNetCore<TCore>

Type Parameters

TCmdlet
TCore
Inheritance
StartJNetPSCmdletCommandBase<TCmdlet, TCore>
Derived
Inherited Members
Extension Methods

Properties

DebugSuspendFlag

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The suspend flag to be used in the debug option when JVM will be created. Default is \"n\"")]
public string DebugSuspendFlag { get; set; }

Property Value

string

EnableDebug

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Put in command line to enable JVM debug")]
public bool? EnableDebug { get; set; }

Property Value

bool?

HeapSize

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The Heap size (-Xmx) to be set when JVM will be created")]
public string HeapSize { get; set; }

Property Value

string

InitialHeapSize

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The initial Heap size (-Xms) to be set when JVM will be created")]
public string InitialHeapSize { get; set; }

Property Value

string

JDKHome

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The path where is located the JRE of the installed JDK")]
public string JDKHome { get; set; }

Property Value

string

JNIOutputFile

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The path where the JNI verbose info will be written. The file will be opened in append mode")]
public string JNIOutputFile { get; set; }

Property Value

string

JNIVerbosity

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Sets the verbosity of the JNI interface. See oracle documentation")]
public string JNIVerbosity { get; set; }

Property Value

string

JVMPath

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The path to the JRE ennvironment or full path to (jvm.dll/libjvm.so). If not set the library try to find a suitable version on the system")]
public string JVMPath { get; set; }

Property Value

string

JavaDebugOpts

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The string to be used in the debug option when JVM will be created. Default is \"-agentlib:jdwp=transport=dt_socket,server=y,suspend={JVMDebugSuspendFlag},address={JVMDebugPort}\"")]
public string JavaDebugOpts { get; set; }

Property Value

string

JavaDebugPort

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The port to be used for debug when JVM will be created")]
public short? JavaDebugPort { get; set; }

Property Value

short?

JmxPort

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The JMX port to be set when JVM will be created")]
public short? JmxPort { get; set; }

Property Value

short?

LicensePath

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The path where is located the license file")]
public string LicensePath { get; set; }

Property Value

string

LogClassPath

Sets the global value of the log class path

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Set to true to print ClassPath")]
public bool? LogClassPath { get; set; }

Property Value

bool?

Methods

CreateGlobalInstance()

Invokes the MASES.JCOBridge.C2JBridge.SetupJVMWrapper<T>.CreateGlobalInstance()

protected virtual void CreateGlobalInstance()

OnAfterCreateGlobalInstance()

Executes the code after invoke CreateGlobalInstance()

protected virtual void OnAfterCreateGlobalInstance()

OnBeforeCreateGlobalInstance()

Executes the code before invoke CreateGlobalInstance()

protected virtual void OnBeforeCreateGlobalInstance()

ProcessCommand()

protected override void ProcessCommand()