Package jetbrains.buildServer.agent
Class DefaultVirtualContext
- java.lang.Object
-
- jetbrains.buildServer.agent.DefaultVirtualContext
-
- All Implemented Interfaces:
VirtualContext
public class DefaultVirtualContext extends Object implements VirtualContext
-
-
Constructor Summary
Constructors Constructor Description DefaultVirtualContext(OSTypeDetector typeDetector, boolean isVirtual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OSType
getTargetOSType()
boolean
isVirtual()
String
resolvePath(String path)
Converts an agent's path to a path in the current virtual context if it is needed otherwise returns original value of {@param path}
-
-
-
Constructor Detail
-
DefaultVirtualContext
public DefaultVirtualContext(@NotNull OSTypeDetector typeDetector, boolean isVirtual)
-
-
Method Detail
-
isVirtual
public boolean isVirtual()
- Specified by:
isVirtual
in interfaceVirtualContext
- Returns:
- true if the given step will be run under a virtual environment
-
getTargetOSType
@NotNull public OSType getTargetOSType()
- Specified by:
getTargetOSType
in interfaceVirtualContext
- Returns:
- actual OS type if the given step will be run under a virtual environment otherwise the agent's OS type
-
resolvePath
@NotNull public String resolvePath(@NotNull String path)
Description copied from interface:VirtualContext
Converts an agent's path to a path in the current virtual context if it is needed otherwise returns original value of {@param path}- Specified by:
resolvePath
in interfaceVirtualContext
-
-