Class ExecutionEnvironmentResolvable
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.environments.ExecutionEnvironmentResolvable
-
- All Implemented Interfaces:
IResolvableRuntimeInstallation
,Comparable<IResolvableRuntimeInstallation>
public class ExecutionEnvironmentResolvable extends Object implements IResolvableRuntimeInstallation
IResolvableRuntimeInstallation
implementation, that resolves with the provided execution environment.- See Also:
IExecutionEnvironment
-
-
Constructor Summary
Constructors Constructor Description ExecutionEnvironmentResolvable(String runtimeTypeId, IExecutionEnvironment environment)
Creates an instance ofExecutionEnvironmentResolvable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IResolvableRuntimeInstallation other)
boolean
equals(Object obj)
RuntimeInstallation
get()
Resolves 1C:Enterprise runtime installation to use for this resolvable installation.RuntimeInstallation
get(String... componentTypeIds)
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that have specified 1C:Enterprise runtime components.RuntimeInstallation
get(Predicate<RuntimeInstallation> filter)
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that satisfies the provided filter.RuntimeInstallation
get(Predicate<RuntimeInstallation> filter, Comparator<RuntimeInstallation> order)
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that satisfies the provided filter and additionaly maximises the provided order.String
getName()
Returns UI-representable name of the resolvable installation.String
getRuntimeTypeId()
Returns the 1C:Enterprise runtime type id.String
getVersionMask()
Returns version mask of this resolvable installation.int
hashCode()
boolean
isConsistent(IResolvableRuntimeInstallation other)
Returns whether this resolvable installation is consistent with the given other resolvable installation.String
toString()
-
-
-
Constructor Detail
-
ExecutionEnvironmentResolvable
public ExecutionEnvironmentResolvable(String runtimeTypeId, IExecutionEnvironment environment)
Creates an instance ofExecutionEnvironmentResolvable
.- Parameters:
runtimeTypeId
- the 1C:Enterprise runtime type id, cannot benull
environment
- the execution environment to use for resolving, cannot benull
-
-
Method Detail
-
compareTo
public int compareTo(IResolvableRuntimeInstallation other)
- Specified by:
compareTo
in interfaceComparable<IResolvableRuntimeInstallation>
-
getName
public String getName()
Description copied from interface:IResolvableRuntimeInstallation
Returns UI-representable name of the resolvable installation.- Specified by:
getName
in interfaceIResolvableRuntimeInstallation
- Returns:
- the name of the resolvable installation, never
null
-
getVersionMask
public String getVersionMask()
Description copied from interface:IResolvableRuntimeInstallation
Returns version mask of this resolvable installation.- Specified by:
getVersionMask
in interfaceIResolvableRuntimeInstallation
- Returns:
- version mask of this resolvable installation, never
null
-
isConsistent
public boolean isConsistent(IResolvableRuntimeInstallation other)
Description copied from interface:IResolvableRuntimeInstallation
Returns whether this resolvable installation is consistent with the given other resolvable installation. Consistents runtime installations may be used in launch operations, when need to have two consistent 1C:Enterprise installations with different types.- Specified by:
isConsistent
in interfaceIResolvableRuntimeInstallation
- Parameters:
other
- the other resolvable installation, cannot benull
- Returns:
- whether this resolvable installation is consistent with the given other resolvable installation
-
get
public RuntimeInstallation get() throws MatchingRuntimeNotFound
Description copied from interface:IResolvableRuntimeInstallation
Resolves 1C:Enterprise runtime installation to use for this resolvable installation.- Specified by:
get
in interfaceIResolvableRuntimeInstallation
- Returns:
- the resolved 1C:Enterprise runtime installation, never
null
- Throws:
MatchingRuntimeNotFound
- if matching 1C:Enterprise runtime installation was not found
-
get
public RuntimeInstallation get(String... componentTypeIds) throws MatchingRuntimeNotFound
Description copied from interface:IResolvableRuntimeInstallation
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that have specified 1C:Enterprise runtime components.- Specified by:
get
in interfaceIResolvableRuntimeInstallation
- Parameters:
componentTypeIds
- components identifiers, cannot benull
- Returns:
- the resolved 1C:Enterprise runtime installation, never
null
- Throws:
MatchingRuntimeNotFound
- if matching 1C:Enterprise runtime installation was not found
-
get
public RuntimeInstallation get(Predicate<RuntimeInstallation> filter) throws MatchingRuntimeNotFound
Description copied from interface:IResolvableRuntimeInstallation
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that satisfies the provided filter.- Specified by:
get
in interfaceIResolvableRuntimeInstallation
- Parameters:
filter
- the predicate to filter 1C:Enterprise installation, cannot benull
- Returns:
- the resolved 1C:Enterprise runtime installation, never
null
- Throws:
MatchingRuntimeNotFound
- if matching 1C:Enterprise runtime installation was not found
-
get
public RuntimeInstallation get(Predicate<RuntimeInstallation> filter, Comparator<RuntimeInstallation> order) throws MatchingRuntimeNotFound
Description copied from interface:IResolvableRuntimeInstallation
Resolves 1C:Enterprise runtime installation to use for this resolvable installation, that satisfies the provided filter and additionaly maximises the provided order.- Specified by:
get
in interfaceIResolvableRuntimeInstallation
- Parameters:
filter
- the predicate to filter 1C:Enterprise installation, cannot benull
order
- the order to compare 1C:Enterprise installations, cannot benull
- Returns:
- the resolved 1C:Enterprise runtime installation, never
null
- Throws:
MatchingRuntimeNotFound
- if matching 1C:Enterprise runtime installation was not found
-
getRuntimeTypeId
public String getRuntimeTypeId()
Returns the 1C:Enterprise runtime type id.- Returns:
- the 1C:Enterprise runtime type id, never
null
-
-