Class IncompatibleRuntimeResolvable
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.environments.IncompatibleRuntimeResolvable
-
- All Implemented Interfaces:
IResolvableRuntimeInstallation
,Comparable<IResolvableRuntimeInstallation>
public class IncompatibleRuntimeResolvable extends Object implements IResolvableRuntimeInstallation
IResolvableRuntimeInstallation
implementation for cases when requested 1C:Enterprise runtime is incompatible for the given versions.Resolvable methods always fails with
MatchingRuntimeNotFound
exteption.
-
-
Constructor Summary
Constructors Constructor Description IncompatibleRuntimeResolvable(CompatibilityMode mode, Version version)
Creates an instance ofIncompatibleRuntimeResolvable
.
-
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.CompatibilityMode
getCompatibilityMode()
Returns the compatibility mode.String
getName()
Returns UI-representable name of the resolvable installation.Version
getVersion()
Returns the version.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
-
IncompatibleRuntimeResolvable
public IncompatibleRuntimeResolvable(CompatibilityMode mode, Version version)
Creates an instance ofIncompatibleRuntimeResolvable
.- Parameters:
mode
- the compatibility mode, cannot benull
version
- the version, 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
-
getVersion
public Version getVersion()
Returns the version.- Returns:
- the version, never
null
-
getCompatibilityMode
public CompatibilityMode getCompatibilityMode()
Returns the compatibility mode.- Returns:
- compatibility mode, never
null
-
-