Package io.jenkins.plugins.yc
Class YandexTemplate
- java.lang.Object
-
- io.jenkins.plugins.yc.YandexTemplate
-
- All Implemented Interfaces:
Describable<YandexTemplate>
public class YandexTemplate extends Object implements Describable<YandexTemplate>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YandexTemplate.DescriptorImpl
static class
YandexTemplate.ProvisionOptions
-
Field Summary
Fields Modifier and Type Field Description protected AbstractCloud
parent
-
Constructor Summary
Constructors Constructor Description YandexTemplate(String vmName, String initVMTemplate, String description, Node.Mode mode, String labels, String initScript, String remoteFS, String tmpDir, String idleTerminationMinutes, boolean stopOnTerminate, List<YCTag> tags, int numExecutors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeChannel(String target)
yandex.cloud.api.operation.OperationOuterClass.Operation
createInstanceResponse(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest instanceRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest
createVm()
void
deleteInstanceResponse(String instanceId)
Descriptor<YandexTemplate>
getDescriptor()
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse
getFilterInstanceResponse(String folderId)
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance
getInstanceResponse(String instanceId)
yandex.cloud.api.compute.v1.InstanceServiceGrpc.InstanceServiceBlockingStub
getInstanceServiceBlockingStub()
Set<LabelAtom>
getLabelSet()
List<YCTag>
getTags()
YCAbstractSlave
provision(int number, EnumSet<YandexTemplate.ProvisionOptions> provisionOptions)
protected Object
readResolve()
void
startInstance(String instanceId)
void
stopInstance(String instanceId)
-
-
-
Field Detail
-
parent
protected transient AbstractCloud parent
-
-
Method Detail
-
getDescriptor
public Descriptor<YandexTemplate> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<YandexTemplate>
-
readResolve
protected Object readResolve()
-
provision
public YCAbstractSlave provision(int number, EnumSet<YandexTemplate.ProvisionOptions> provisionOptions) throws Exception
- Throws:
Exception
-
createVm
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest createVm() throws IOException
- Throws:
IOException
-
getInstanceServiceBlockingStub
public yandex.cloud.api.compute.v1.InstanceServiceGrpc.InstanceServiceBlockingStub getInstanceServiceBlockingStub() throws Exception
- Throws:
Exception
-
closeChannel
public void closeChannel(String target) throws InterruptedException
- Throws:
InterruptedException
-
createInstanceResponse
public yandex.cloud.api.operation.OperationOuterClass.Operation createInstanceResponse(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest instanceRequest) throws Exception
- Throws:
Exception
-
getInstanceResponse
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getInstanceResponse(String instanceId) throws Exception
- Throws:
Exception
-
getFilterInstanceResponse
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse getFilterInstanceResponse(String folderId) throws Exception
- Throws:
Exception
-
-