Class JNetPSHelper<TClass>
- Namespace
- MASES.JNet.PowerShell
- Assembly
- MASES.JNetPSCore.dll
Public Helper class customized on TClass
public static class JNetPSHelper<TClass> where TClass : JNetCore<TClass>
Type Parameters
TClassA class extendind JNetCore<T>
- Inheritance
-
JNetPSHelper<TClass>
- Inherited Members
Properties
InstanceCreated
true if a call to CreateGlobalInstance(Cmdlet) was done
public static bool InstanceCreated { get; }
Property Value
Methods
AddJVMOption(string, string)
Adds jvmOptionName, with optional jvmOptionValue, to ApplicationJVMExtraOptions
public static void AddJVMOption(string jvmOptionName, string jvmOptionValue = null)
Parameters
jvmOptionNamestringThe JVM option name
jvmOptionValuestringThe value of
jvmOptionNameif it is an option like name=value
CreateGlobalInstance(Cmdlet)
Invokes CreateGlobalInstance() to start engine
public static void CreateGlobalInstance(Cmdlet cmdlet)
Parameters
cmdletCmdlet
Remarks
All properties must be set prior to execute this command. Updates to the JVM environment cannot be done later.
Get<TProperty>(Type, string)
Generic static property getter
public static TProperty Get<TProperty>(Type target, string propertName)
Parameters
targetTypeThe target Type where the static property was defined
propertNamestringThe property name
Returns
- TProperty
The property
TPropertyvalue
Type Parameters
TPropertyProperty type
Get<TTarget, TProperty>(string)
Generic static property getter
public static TProperty Get<TTarget, TProperty>(string propertName)
Parameters
propertNamestringThe property name
Returns
- TProperty
The property
TPropertyvalue
Type Parameters
TTargetThe target Type where the static property was defined
TPropertyProperty type
Launch(Type, params string[])
Invokes JNetCore<TClass>.Launch(Type, string[]) to start a Main-Class
public static void Launch(Type type, params string[] args)
Parameters
New(string, params object[])
Creates a new class instance
public static object New(string className, params object[] args)
Parameters
Returns
- object
The newly created object
SetDebugSuspendFlag(string)
public static void SetDebugSuspendFlag(string debugSuspendFlag)
Parameters
debugSuspendFlagstring
SetEnableDebug(bool?)
public static void SetEnableDebug(bool? enableDebug)
Parameters
enableDebugbool?
SetHeapSize(string)
Sets ApplicationHeapSize
public static void SetHeapSize(string heapSize)
Parameters
heapSizestring
SetInitialHeapSize(string)
public static void SetInitialHeapSize(string initialHeapSize)
Parameters
initialHeapSizestring
SetJDKHome(string)
Sets ApplicationJDKHome
public static void SetJDKHome(string jdkHome)
Parameters
jdkHomestring
SetJNIOutputFile(string)
public static void SetJNIOutputFile(string jniOutputFile)
Parameters
jniOutputFilestring
SetJNIVerbosity(string)
public static void SetJNIVerbosity(string jniVerbosity)
Parameters
jniVerbositystring
SetJVMPath(string)
Sets ApplicationJVMPath
public static void SetJVMPath(string jvmPath)
Parameters
jvmPathstring
SetJavaDebugOpts(string)
public static void SetJavaDebugOpts(string javaDebugOpts)
Parameters
javaDebugOptsstring
SetJavaDebugPort(short?)
public static void SetJavaDebugPort(short? javaDebugPort)
Parameters
javaDebugPortshort?
SetJmxPort(short?)
Sets ApplicationJmxPort
public static void SetJmxPort(short? jmxPort)
Parameters
jmxPortshort?
SetLicensePath(string)
public static void SetLicensePath(string licensePath)
Parameters
licensePathstring
SetLogClassPath(bool?)
public static void SetLogClassPath(bool? logClassPath)
Parameters
logClassPathbool?
SetWriteEventOrExceptionOnCmdLine(bool?)
public static void SetWriteEventOrExceptionOnCmdLine(bool? writeEventOrExceptionOnCmdLine)
Parameters
writeEventOrExceptionOnCmdLinebool?
Set<TProperty>(Type, string, TProperty)
Generic static property setter
public static void Set<TProperty>(Type target, string propertName, TProperty value)
Parameters
targetTypeThe target Type where the static property was defined
propertNamestringThe property name
valueTPropertyThe
TPropertyproperty value
Type Parameters
TPropertyProperty type
Set<TTarget, TProperty>(string, TProperty)
Generic static property setter
public static void Set<TTarget, TProperty>(string propertName, TProperty value)
Parameters
propertNamestringThe property name
valueTPropertyThe
TPropertyproperty value
Type Parameters
TTargetThe target Type where the static property was defined
TPropertyProperty type