public enum ExistingProcessAction extends Enum<ExistingProcessAction>
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 ExistingProcessAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExistingProcessAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExistingProcessAction 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 ExistingProcessAction KILL
public static final ExistingProcessAction CONNECT
public static final ExistingProcessAction CONNECT_OR_KILL
public static ExistingProcessAction[] values()
for (ExistingProcessAction c : ExistingProcessAction.values()) System.out.println(c);
public static ExistingProcessAction 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 © 2022 - present; JODConverter. All rights reserved.