Table of Contents

Class StartJNetPSCmdletCommandBase<TCmdlet, TCore>

Namespace
MASES.JNet.PowerShell.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

Sets the value of 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

Sets the value of EnableDebug

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

Property Value

SwitchParameter

ExtraJVMKVOptions

Generic extra options to be used from JVM

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Defines extra options inkey=value format to be passed to the starting JVM")]
public string[] ExtraJVMKVOptions { get; set; }

Property Value

string[]

ExtraJVMOptions

Generic extra options to be used from JVM

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Defines extra options to be passed to the starting JVM")]
public string[] ExtraJVMOptions { get; set; }

Property Value

string[]

HeapSize

Sets the global value of GlobalHeapSize

[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

Sets the global value of the 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

Sets the value of 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

Sets the value of 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

Sets the value of 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

Sets the value of 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

Sets the value of 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

Sets the value of 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

Sets the value of 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

Sets the value of 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 on command-line to print ClassPath")]
public SwitchParameter LogClassPath { get; set; }

Property Value

SwitchParameter

WriteEventOrExceptionOnCmdLine

[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Set on command-line to show events from the underlying JCOBridge engine")]
public SwitchParameter WriteEventOrExceptionOnCmdLine { get; set; }

Property Value

SwitchParameter

Methods

AddJVMOption(string, string)

Adds jvmOptionName, with optional jvmOptionValue, to ApplicationJVMExtraOptions

protected void AddJVMOption(string jvmOptionName, string jvmOptionValue = null)

Parameters

jvmOptionName string

The JVM option name

jvmOptionValue string

The value of jvmOptionName if it is an option like name=value

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()