Class FixedRuntimeResolvable
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.environments.FixedRuntimeResolvable
-
- All Implemented Interfaces:
IResolvableRuntimeInstallation
,Comparable<IResolvableRuntimeInstallation>
public class FixedRuntimeResolvable extends Object implements IResolvableRuntimeInstallation
IResolvableRuntimeInstallation
implementation, that always resolves to the fixed 1C:Enterprise runtime installation.
-
-
Constructor Summary
Constructors Constructor Description FixedRuntimeResolvable(RuntimeInstallation installation)
Creates an instance ofFixedRuntimeResolvable
.
-
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
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
-
FixedRuntimeResolvable
public FixedRuntimeResolvable(RuntimeInstallation installation)
Creates an instance ofFixedRuntimeResolvable
.- Parameters:
installation
- the fixed 1C:Enterprise runtime installation to use, cannot benull
-
-
Method Detail
-
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()
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
-
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, 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
-
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
-
compareTo
public int compareTo(IResolvableRuntimeInstallation other)
- Specified by:
compareTo
in interfaceComparable<IResolvableRuntimeInstallation>
-
-