public enum StopProcessAction extends Enum<StopProcessAction>
LocalOfficeProcessManager when trying to
start an office process with a connection string and that there already is a process running with
the same connection string.| Enum Constant and Description |
|---|
CONNECT
Indicates that the manager must connect to the existing office process when starting a new
office process and there already is a process running with the same connection string.
|
CONNECT_OR_KILL
Indicates that the manager must first try to connect to the existing office process when
starting a new office process and there already is a process running with the same connection
string.
|
FAIL
Indicates that the
LocalOfficeProcessManager must fail when trying to start an office
process and there already is a process running with the same connection string. |
KILL
Indicates that the manager must kill the existing office process when starting a new office
process and there already is a process running with the same connection string.
|
| Modifier and Type | Method and Description |
|---|---|
static StopProcessAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StopProcessAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StopProcessAction FAIL
LocalOfficeProcessManager must fail when trying to start an office
process and there already is a process running with the same connection string. If that is the
case, a OfficeException is thrown.public static final StopProcessAction KILL
public static final StopProcessAction CONNECT
public static final StopProcessAction CONNECT_OR_KILL
public static StopProcessAction[] values()
for (StopProcessAction c : StopProcessAction.values()) System.out.println(c);
public static StopProcessAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016 - present; JODConverter.org. All rights reserved.