Class MatchingRuntimeNotFoundResolvable
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.environments.MatchingRuntimeNotFoundResolvable
-
- All Implemented Interfaces:
IResolvableRuntimeInstallation
,Comparable<IResolvableRuntimeInstallation>
public class MatchingRuntimeNotFoundResolvable extends Object implements IResolvableRuntimeInstallation
IResolvableRuntimeInstallation
implementation for cases when requested 1C:Enterprise runtime with some version mask not found.Resolvable methods always fails with
MatchingRuntimeNotFound
exteption.
-
-
Constructor Summary
Constructors Constructor Description MatchingRuntimeNotFoundResolvable(String versionWithBuild)
Creates an instance ofMatchingRuntimeNotFoundResolvable
with default error message.MatchingRuntimeNotFoundResolvable(String versionWithBuild, String message)
Creates an instance ofMatchingRuntimeNotFoundResolvable
with custom error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IResolvableRuntimeInstallation other)
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
getVersionMask()
Returns version mask of this resolvable installation.boolean
isConsistent(IResolvableRuntimeInstallation other)
Returns whether this resolvable installation is consistent with the given other resolvable installation.String
toString()
-
-
-
Constructor Detail
-
MatchingRuntimeNotFoundResolvable
public MatchingRuntimeNotFoundResolvable(String versionWithBuild)
Creates an instance ofMatchingRuntimeNotFoundResolvable
with default error message.- Parameters:
versionWithBuild
- the requested version with build, cannot benull
-
MatchingRuntimeNotFoundResolvable
public MatchingRuntimeNotFoundResolvable(String versionWithBuild, String message)
Creates an instance ofMatchingRuntimeNotFoundResolvable
with custom error message.- Parameters:
versionWithBuild
- the requested version with build, cannot benull
a
- custom error message to report to clients, 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
-
-