public final class SiAuto extends Object
The connections string of si is set to "pipe(reconnect=true, reconnect.interval=1s)", the application name to "Auto" and the session name of main to "Main".
Please note that the default connections string has been changed in SmartInspect 3.0. In previous versions, the default connections string was set to "tcp()".
The public static members of this class are threadsafe.
import com.gurock.smartinspect.SiAuto;
public class SiAutoExample
{
public static void main(String[] args)
{
SiAuto.si.setEnabled(true);
SiAuto.main.enterProcess("SiAutoExample");
try
{
.
.
.
}
finally
{
SiAuto.main.leaveProcess("SiAutoExample");
}
}
}
| Modifier and Type | Field and Description |
|---|---|
static Session |
main
Automatically created Session instance.
|
static SmartInspect |
si
Automatically created SmartInspect instance.
|
public static final SmartInspect si
The connections string is set to "pipe(reconnect=true, reconnect.interval=1s)". Please see Protocol.isValidOption() for information on the used options. The application name is set to "Auto".
Please note that the default connections string has been changed in SmartInspect 3.0. In previous versions, the default connections string was set to "tcp()".
public static final Session main
The session name is set to "Main" and the parent to SiAuto.si.
Copyright © 2023. All rights reserved.