public interface TargetEnvironmentRequest
Can be filled with the requirements for target environment like files to upload, ports to bind and locations to imported from another environents. Implementations must cancel promises of all created TargetValues
Modifier and Type | Method and Description |
---|---|
TargetValue<java.lang.Integer> |
bindTargetPort(int targetPort)
Creates the requirement to open a port on the target environment.
|
TargetValue<java.lang.String> |
createUpload(java.lang.String localPath)
Creates the requirement to upload the local path up to the target environment.
|
TargetPlatform |
getTargetPlatform() |
TargetPlatform getTargetPlatform()
TargetEnvironmentFactory.getTargetPlatform()
TargetValue<java.lang.String> createUpload(java.lang.String localPath)
Returned value may be used in TargetedCommandLineBuilder
where it will be replaced to the corresponding path at the target machine.
TargetValue<java.lang.Integer> bindTargetPort(int targetPort)
Returned value may be used in TargetedCommandLineBuilder
where it will be replaced to the passed port.
As soon as target will be prepared, the value will also contain the port on local machine that corresponds to the targetPort on target machine.