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 classYandexTemplate.DescriptorImplstatic classYandexTemplate.ProvisionOptions
-
Field Summary
Fields Modifier and Type Field Description protected AbstractCloudparent
-
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 voidcloseChannel(String target)yandex.cloud.api.operation.OperationOuterClass.OperationcreateInstanceResponse(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest instanceRequest)yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequestcreateVm()voiddeleteInstanceResponse(String instanceId)Descriptor<YandexTemplate>getDescriptor()yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponsegetFilterInstanceResponse(String folderId)yandex.cloud.api.compute.v1.InstanceOuterClass.InstancegetInstanceResponse(String instanceId)yandex.cloud.api.compute.v1.InstanceServiceGrpc.InstanceServiceBlockingStubgetInstanceServiceBlockingStub()Set<LabelAtom>getLabelSet()List<YCTag>getTags()YCAbstractSlaveprovision(int number, EnumSet<YandexTemplate.ProvisionOptions> provisionOptions)protected ObjectreadResolve()voidstartInstance(String instanceId)voidstopInstance(String instanceId)
-
-
-
Field Detail
-
parent
protected transient AbstractCloud parent
-
-
Method Detail
-
getDescriptor
public Descriptor<YandexTemplate> getDescriptor()
- Specified by:
getDescriptorin 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
-
-