PoolImpl Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ExternalChildResourceImpl<Pool, PoolInner, BatchAccountImpl, BatchAccount>
      • com.microsoft.azure.management.batch.implementation.PoolImpl

public class PoolImpl implements Pool,Pool.Definition<BatchAccount.DefinitionStages.WithPool>,Pool.UpdateDefinition<BatchAccount.Update>,Pool.Update

Implementation for BatchAccount Pool and its parent interfaces.

Constructor Summary

Constructor Description
PoolImpl(String name, BatchAccountImpl batchAccount, PoolInner inner)

Method Summary

Modifier and Type Method and Description
List<String> applicationLicenses()
List<ApplicationPackageReference> applicationPackages()
BatchAccountImpl attach()
List<CertificateReference> certificates()
Observable<Pool> createResourceAsync()
Observable<Void> deleteResourceAsync()
DeploymentConfiguration deploymentConfiguration()
String displayName()
Observable<PoolInner> getInnerAsync()
String id()
InterNodeCommunicationState interNodeCommunication()
Integer maxTasksPerNode()
List<MetadataItem> metadata()
List<MountConfiguration> mountConfiguration()
NetworkConfiguration networkConfiguration()
PoolImpl newPool(String name, BatchAccountImpl parent)
Observable<Pool> refreshAsync()

Refreshes the resource to sync with Azure.

ScaleSettings scaleSettings()
StartTask startTask()
TaskSchedulingPolicy taskSchedulingPolicy()
Integer taskSlotsPerNode()
Observable<Pool> updateResourceAsync()
List<UserAccount> userAccounts()
String vmSize()
PoolImpl withApplicationLicenses(List<String> applicationLicenses)

Specifies the list of application licenses.

PoolImpl withApplicationPackages(List<ApplicationPackageReference> applicationPackages)

Specifies the application package references affect all new compute nodes joining the pool.

PoolImpl withCertificates(List<CertificateReference> certificates)

Specifies the certificates for compute nodes.

PoolImpl withDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)

Specifies the creation of nodes using CloudServiceConfiguration/VirtualMachineConfiguration.

PoolImpl withDisplayName(String displayName)

Specifies the display name for the pool.

PoolImpl withInterNodeCommunication(InterNodeCommunicationState interNodeCommunication)

Specifies the restrictions on which nodes can be assigned to the pool.

PoolImpl withMaxTasksPerNode(Integer maxTasksPerNode)

Specifies the maximum value of tasks to run on each node.

PoolImpl withMetadata(List<MetadataItem> metadata)

Specifies the metadata for the use of user code.

PoolImpl withMountConfiguration(List<MountConfiguration> mountConfigurations)

Specifies the file system configuration for the pool to mount on each node.

PoolImpl withNetworkConfiguration(NetworkConfiguration networkConfiguration)

Specifies the network configuration for the pool.

PoolImpl withScaleSettings(ScaleSettings scaleSettings)

Specifies the scale settings for the pool.

PoolImpl withStartTask(StartTask startTask)

Specifies the start task for the pool.

PoolImpl withTaskSchedulingPolicy(TaskSchedulingPolicy taskSchedulingPolicy)

Specifies the task scheduling policy.

PoolImpl withTaskSlotsPerNode(Integer taskSlotsPerNode)

Specifies the number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.

PoolImpl withUserAccounts(List<UserAccount> userAccounts)

Specifies the user accounts value.

PoolImpl withVmSize(String vmSize)

Specifies the available sizes of virtual machine for Cloud Services pools.

Inherited Members

Constructor Details

PoolImpl

protected PoolImpl(String name, BatchAccountImpl batchAccount, PoolInner inner)

Parameters:

name
batchAccount
inner

Method Details

applicationLicenses

public List applicationLicenses()

Overrides:

PoolImpl.applicationLicenses()

Returns:

the applicationLicenses value

applicationPackages

public List applicationPackages()

Overrides:

PoolImpl.applicationPackages()

Returns:

the applicationPackages value

attach

public BatchAccountImpl attach()

certificates

public List certificates()

Overrides:

PoolImpl.certificates()

Returns:

the certificates value

createResourceAsync

public Observable createResourceAsync()

deleteResourceAsync

public Observable deleteResourceAsync()

deploymentConfiguration

public DeploymentConfiguration deploymentConfiguration()

Overrides:

PoolImpl.deploymentConfiguration()

Returns:

the deployment configuration value

displayName

public String displayName()

Overrides:

PoolImpl.displayName()

Returns:

the display name for the pool

getInnerAsync

protected Observable getInnerAsync()

id

public String id()

Overrides:

PoolImpl.id()

Returns:

the id of the external child resource

interNodeCommunication

public InterNodeCommunicationState interNodeCommunication()

Overrides:

PoolImpl.interNodeCommunication()

Returns:

the interNodeCommunication value

maxTasksPerNode

public Integer maxTasksPerNode()

Overrides:

PoolImpl.maxTasksPerNode()

Returns:

the maxTasksPerNode value

metadata

public List metadata()

Overrides:

PoolImpl.metadata()

Returns:

the metadata value

mountConfiguration

public List mountConfiguration()

Overrides:

PoolImpl.mountConfiguration()

Returns:

the mountConfiguration value

networkConfiguration

public NetworkConfiguration networkConfiguration()

Overrides:

PoolImpl.networkConfiguration()

Returns:

the networkConfiguration value

newPool

protected static PoolImpl newPool(String name, BatchAccountImpl parent)

Parameters:

name
parent

refreshAsync

public Observable refreshAsync()

Refreshes the resource to sync with Azure.

Overrides:

PoolImpl.refreshAsync()

Returns:

the Observable to refreshed resource

scaleSettings

public ScaleSettings scaleSettings()

Overrides:

PoolImpl.scaleSettings()

Returns:

the scaleSettings value

startTask

public StartTask startTask()

Overrides:

PoolImpl.startTask()

Returns:

the startTask value

taskSchedulingPolicy

public TaskSchedulingPolicy taskSchedulingPolicy()

Overrides:

PoolImpl.taskSchedulingPolicy()

Returns:

the taskSchedulingPolicy value

taskSlotsPerNode

public Integer taskSlotsPerNode()

Overrides:

PoolImpl.taskSlotsPerNode()

Returns:

the number of task slots that can be used to run concurrent tasks on a single compute node in the pool

updateResourceAsync

public Observable updateResourceAsync()

userAccounts

public List userAccounts()

Overrides:

PoolImpl.userAccounts()

Returns:

the userAccounts value

vmSize

public String vmSize()

Overrides:

PoolImpl.vmSize()

Returns:

the size of virtual machine in the pool

withApplicationLicenses

public PoolImpl withApplicationLicenses(List applicationLicenses)

Specifies the list of application licenses.

Overrides:

PoolImpl.withApplicationLicenses(List<String> applicationLicenses)

Parameters:

applicationLicenses - applicationLicenses value

Returns:

the next stage of the update

withApplicationPackages

public PoolImpl withApplicationPackages(List applicationPackages)

Specifies the application package references affect all new compute nodes joining the pool.

Overrides:

PoolImpl.withApplicationPackages(List<ApplicationPackageReference> applicationPackages)

Parameters:

applicationPackages - applicationPackages value

Returns:

the next stage of the update

withCertificates

public PoolImpl withCertificates(List certificates)

Specifies the certificates for compute nodes.

Overrides:

PoolImpl.withCertificates(List<CertificateReference> certificates)

Parameters:

certificates - certificates value

Returns:

the next stage of the update

withDeploymentConfiguration

public PoolImpl withDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)

Specifies the creation of nodes using CloudServiceConfiguration/VirtualMachineConfiguration.

Overrides:

PoolImpl.withDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)

Parameters:

deploymentConfiguration - deploymentConfiguration value

Returns:

the next stage of the update

withDisplayName

public PoolImpl withDisplayName(String displayName)

Specifies the display name for the pool.

Overrides:

PoolImpl.withDisplayName(String displayName)

Parameters:

displayName - displayName value

Returns:

the next stage of the update

withInterNodeCommunication

public PoolImpl withInterNodeCommunication(InterNodeCommunicationState interNodeCommunication)

Specifies the restrictions on which nodes can be assigned to the pool.

Overrides:

PoolImpl.withInterNodeCommunication(InterNodeCommunicationState interNodeCommunication)

Parameters:

interNodeCommunication - interNodeCommunication value

Returns:

the next stage of the update

withMaxTasksPerNode

public PoolImpl withMaxTasksPerNode(Integer maxTasksPerNode)

Specifies the maximum value of tasks to run on each node.

Overrides:

PoolImpl.withMaxTasksPerNode(Integer maxTasksPerNode)

Parameters:

maxTasksPerNode - maxTasksPerNode value

Returns:

the next stage of the update

withMetadata

public PoolImpl withMetadata(List metadata)

Specifies the metadata for the use of user code.

Overrides:

PoolImpl.withMetadata(List<MetadataItem> metadata)

Parameters:

metadata - metadata value

Returns:

the next stage of the update

withMountConfiguration

public PoolImpl withMountConfiguration(List mountConfigurations)

Specifies the file system configuration for the pool to mount on each node.

Overrides:

PoolImpl.withMountConfiguration(List<MountConfiguration> mountConfigurations)

Parameters:

mountConfigurations - mount configuration value

Returns:

the next stage of the update

withNetworkConfiguration

public PoolImpl withNetworkConfiguration(NetworkConfiguration networkConfiguration)

Specifies the network configuration for the pool.

Overrides:

PoolImpl.withNetworkConfiguration(NetworkConfiguration networkConfiguration)

Parameters:

networkConfiguration - network configuration value

Returns:

the next stage of the update

withScaleSettings

public PoolImpl withScaleSettings(ScaleSettings scaleSettings)

Specifies the scale settings for the pool.

Overrides:

PoolImpl.withScaleSettings(ScaleSettings scaleSettings)

Parameters:

scaleSettings - scale settings value

Returns:

the next stage of the update

withStartTask

public PoolImpl withStartTask(StartTask startTask)

Specifies the start task for the pool.

Overrides:

PoolImpl.withStartTask(StartTask startTask)

Parameters:

startTask - start task value

Returns:

the next stage of the update

withTaskSchedulingPolicy

public PoolImpl withTaskSchedulingPolicy(TaskSchedulingPolicy taskSchedulingPolicy)

Specifies the task scheduling policy.

Overrides:

PoolImpl.withTaskSchedulingPolicy(TaskSchedulingPolicy taskSchedulingPolicy)

Parameters:

taskSchedulingPolicy - taskSchedulingPolicy value

Returns:

the next stage of the update

withTaskSlotsPerNode

public PoolImpl withTaskSlotsPerNode(Integer taskSlotsPerNode)

Specifies the number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.

Overrides:

PoolImpl.withTaskSlotsPerNode(Integer taskSlotsPerNode)

Parameters:

taskSlotsPerNode - the number of task slots

Returns:

the next stage of the update

withUserAccounts

public PoolImpl withUserAccounts(List userAccounts)

Specifies the user accounts value.

Overrides:

PoolImpl.withUserAccounts(List<UserAccount> userAccounts)

Parameters:

userAccounts - userAccounts value

Returns:

the next stage of the update

withVmSize

public PoolImpl withVmSize(String vmSize)

Specifies the available sizes of virtual machine for Cloud Services pools.

Overrides:

PoolImpl.withVmSize(String vmSize)

Parameters:

vmSize - vmSize value

Returns:

the next stage of the update

Applies to