SqlElasticPool Interface

Implements

ExternalChildResource<SqlElasticPool,SqlServer> HasResourceGroup HasInner<com.microsoft.azure.management.sql.implementation.ElasticPoolInner> Refreshable<SqlElasticPool> Updatable<Update>

public interface SqlElasticPool
extends ExternalChildResource<SqlElasticPool,SqlServer>, HasInner<com.microsoft.azure.management.sql.implementation.ElasticPoolInner>, HasResourceGroup, Refreshable<SqlElasticPool>, Updatable<Update>

An immutable client-side representation of an Azure SQL Elastic Pool.

Method Summary

Modifier and Type Method and Description
abstract SqlDatabase addExistingDatabase(SqlDatabase database)

Adds an existing SQL Database to the Elastic Pool.

abstract SqlDatabase addExistingDatabase(String databaseName)

Adds an existing SQL Database to the Elastic Pool.

abstract SqlDatabase addNewDatabase(String databaseName)

Adds a new SQL Database to the Elastic Pool.

abstract org.joda.time.DateTime creationDate()
abstract int databaseDtuMax()
abstract int databaseDtuMin()
abstract void delete()

Deletes this SQL Elastic Pool from the parent SQL server.

abstract rx.Completable deleteAsync()

Deletes this SQL Elastic Pool asynchronously from the parent SQL server.

abstract int dtu()
abstract ElasticPoolEdition edition()
abstract SqlDatabase getDatabase(String databaseName)

Gets the specific database in the elastic pool.

abstract java.util.List<ElasticPoolActivity> listActivities()
abstract rx.Observable<ElasticPoolActivity> listActivitiesAsync()
abstract java.util.List<ElasticPoolDatabaseActivity> listDatabaseActivities()
abstract rx.Observable<ElasticPoolDatabaseActivity> listDatabaseActivitiesAsync()
abstract java.util.List<SqlDatabaseMetricDefinition> listDatabaseMetricDefinitions()

Lists the database metric definitions for this SQL Elastic Pool.

abstract rx.Observable<SqlDatabaseMetricDefinition> listDatabaseMetricDefinitionsAsync()

Asynchronously lists the database metric definitions for this SQL Elastic Pool.

abstract java.util.List<SqlDatabaseMetric> listDatabaseMetrics(String filter)

Lists the database metrics for this SQL Elastic Pool.

abstract rx.Observable<SqlDatabaseMetric> listDatabaseMetricsAsync(String filter)

Asynchronously lists the database metrics for this SQL Elastic Pool.

abstract java.util.List<SqlDatabase> listDatabases()

Lists the SQL databases in this SQL Elastic Pool.

abstract rx.Observable<SqlDatabase> listDatabasesAsync()

Asynchronously lists the SQL databases in this SQL Elastic Pool.

abstract java.lang.String parentId()
abstract Region region()
abstract java.lang.String regionName()
abstract SqlDatabase removeDatabase(String databaseName)

Removes an existing SQL Database from the Elastic Pool.

abstract java.lang.String sqlServerName()
abstract ElasticPoolState state()
abstract int storageCapacityInMB()
abstract int storageMB()

Method Details

addExistingDatabase

public abstract SqlDatabase addExistingDatabase(SqlDatabase database)

Adds an existing SQL Database to the Elastic Pool.

Parameters:

database - the database to be added

Returns:

the database

addExistingDatabase

public abstract SqlDatabase addExistingDatabase(String databaseName)

Adds an existing SQL Database to the Elastic Pool.

Parameters:

databaseName - name of the database

Returns:

the database

addNewDatabase

public abstract SqlDatabase addNewDatabase(String databaseName)

Adds a new SQL Database to the Elastic Pool.

Parameters:

databaseName - name of the database

Returns:

the database

creationDate

public abstract DateTime creationDate()

Returns:

the creation date of the Azure SQL Elastic Pool

databaseDtuMax

public abstract int databaseDtuMax()

Returns:

the maximum DTU any one SQL Azure database can consume.

databaseDtuMin

public abstract int databaseDtuMin()

Returns:

the minimum DTU all SQL Azure Databases are guaranteed

delete

public abstract void delete()

Deletes this SQL Elastic Pool from the parent SQL server.

deleteAsync

public abstract Completable deleteAsync()

Deletes this SQL Elastic Pool asynchronously from the parent SQL server.

Returns:

a representation of the deferred computation of this call

dtu

public abstract int dtu()

Returns:

The total shared DTU for the SQL Azure Database Elastic Pool

edition

public abstract ElasticPoolEdition edition()

Returns:

the edition of Azure SQL Elastic Pool

getDatabase

public abstract SqlDatabase getDatabase(String databaseName)

Gets the specific database in the elastic pool.

Parameters:

databaseName - name of the database to look into

Returns:

the information about specific database in elastic pool

listActivities

public abstract List listActivities()

Returns:

the information about elastic pool activities

listActivitiesAsync

public abstract Observable listActivitiesAsync()

Returns:

a representation of the deferred computation of the information about elastic pool activities

listDatabaseActivities

public abstract List listDatabaseActivities()

Returns:

the information about elastic pool database activities

listDatabaseActivitiesAsync

public abstract Observable listDatabaseActivitiesAsync()

Returns:

the information about elastic pool database activities

listDatabaseMetricDefinitions

public abstract List listDatabaseMetricDefinitions()

Lists the database metric definitions for this SQL Elastic Pool.

Returns:

the elastic pool's metric definitions

listDatabaseMetricDefinitionsAsync

public abstract Observable listDatabaseMetricDefinitionsAsync()

Asynchronously lists the database metric definitions for this SQL Elastic Pool.

Returns:

a representation of the deferred computation of this call

listDatabaseMetrics

public abstract List listDatabaseMetrics(String filter)

Lists the database metrics for this SQL Elastic Pool.

Parameters:

filter - an OData filter expression that describes a subset of metrics to return

Returns:

the elastic pool's database metrics

listDatabaseMetricsAsync

public abstract Observable listDatabaseMetricsAsync(String filter)

Asynchronously lists the database metrics for this SQL Elastic Pool.

Parameters:

filter - an OData filter expression that describes a subset of metrics to return

Returns:

a representation of the deferred computation of this call

listDatabases

public abstract List listDatabases()

Lists the SQL databases in this SQL Elastic Pool.

Returns:

the information about databases in elastic pool

listDatabasesAsync

public abstract Observable listDatabasesAsync()

Asynchronously lists the SQL databases in this SQL Elastic Pool.

Returns:

a representation of the deferred computation of this call

parentId

public abstract String parentId()

Returns:

the parent SQL server ID

region

public abstract Region region()

Returns:

the region the resource is in

regionName

public abstract String regionName()

Returns:

the name of the region the resource is in

removeDatabase

public abstract SqlDatabase removeDatabase(String databaseName)

Removes an existing SQL Database from the Elastic Pool.

Parameters:

databaseName - name of the database

Returns:

the database

sqlServerName

public abstract String sqlServerName()

Returns:

name of the SQL Server to which this elastic pool belongs

state

public abstract ElasticPoolState state()

Returns:

the state of the Azure SQL Elastic Pool

storageCapacityInMB

public abstract int storageCapacityInMB()

Returns:

the storage capacity limit for the SQL Azure Database Elastic Pool in MB

storageMB


public abstract int storageMB()

Returns:

the storage limit for the SQL Azure Database Elastic Pool in MB

Applies to