Database Interface
public interface Database
An immutable client-side representation of Database.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
abstract
Access |
accessKeysAuthentication()
Gets the access |
| abstract Protocol |
clientProtocol()
Gets the client |
|
abstract
Clustering |
clusteringPolicy()
Gets the clustering |
|
abstract
Defer |
deferUpgrade()
Gets the defer |
|
abstract
Eviction |
evictionPolicy()
Gets the eviction |
| abstract void |
export(ExportClusterParameters parameters)
Exports a database file from target database. |
| abstract void |
export(ExportClusterParameters parameters, Context context)
Exports a database file from target database. |
| abstract void |
flush()
Flushes all the keys in this database and also from its linked databases. |
| abstract void |
flush(FlushParameters parameters, Context context)
Flushes all the keys in this database and also from its linked databases. |
| abstract void |
forceLinkToReplicationGroup(ForceLinkParameters parameters)
Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing replication group. |
| abstract void |
forceLinkToReplicationGroup(ForceLinkParameters parameters, Context context)
Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing replication group. |
| abstract void |
forceUnlink(ForceUnlinkParameters parameters)
Forcibly removes the link to the specified database resource. |
| abstract void |
forceUnlink(ForceUnlinkParameters parameters, Context context)
Forcibly removes the link to the specified database resource. |
|
abstract
Database |
geoReplication()
Gets the geo |
| abstract String |
id()
Gets the id property: Fully qualified resource Id for the resource. |
| abstract void |
importMethod(ImportClusterParameters parameters)
Imports database files to target database. |
| abstract void |
importMethod(ImportClusterParameters parameters, Context context)
Imports database files to target database. |
|
abstract
Database |
innerModel()
Gets the inner com. |
|
abstract
Access |
listKeys()
Retrieves the access keys for the Redis Enterprise database. |
|
abstract
Response<Access |
listKeysWithResponse(Context context)
Retrieves the access keys for the Redis Enterprise database. |
| abstract List<Module> |
modules()
Gets the modules property: Optional set of redis modules to enable in this database - modules can only be added at creation time. |
| abstract String |
name()
Gets the name property: The name of the resource. |
| abstract Persistence |
persistence()
Gets the persistence property: Persistence settings. |
| abstract Integer |
port()
Gets the port property: TCP port of the database endpoint. |
|
abstract
Provisioning |
provisioningState()
Gets the provisioning |
| abstract String |
redisVersion()
Gets the redis |
| abstract Database |
refresh()
Refreshes the resource to sync with Azure. |
| abstract Database |
refresh(Context context)
Refreshes the resource to sync with Azure. |
|
abstract
Access |
regenerateKey(RegenerateKeyParameters parameters)
Regenerates the Redis Enterprise database's access keys. |
|
abstract
Access |
regenerateKey(RegenerateKeyParameters parameters, Context context)
Regenerates the Redis Enterprise database's access keys. |
| abstract String |
resourceGroupName()
Gets the name of the resource group. |
|
abstract
Resource |
resourceState()
Gets the resource |
|
abstract
System |
systemData()
Gets the system |
| abstract String |
type()
Gets the type property: The type of the resource. |
| abstract Update |
update()
Begins update for the Database resource. |
| abstract void |
upgradeDBRedisVersion()
Upgrades the database Redis version to the latest available. |
| abstract void |
upgradeDBRedisVersion(Context context)
Upgrades the database Redis version to the latest available. |
Method Details
accessKeysAuthentication
public abstract AccessKeysAuthentication accessKeysAuthentication()
Gets the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created.
Returns:
clientProtocol
public abstract Protocol clientProtocol()
Gets the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
Returns:
clusteringPolicy
public abstract ClusteringPolicy clusteringPolicy()
Gets the clusteringPolicy property: Clustering policy - default is OSSCluster. This property can be updated only if the current value is NoCluster. If the value is OSSCluster or EnterpriseCluster, it cannot be updated without deleting the database.
Returns:
deferUpgrade
public abstract DeferUpgradeSetting deferUpgrade()
Gets the deferUpgrade property: Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade.
Returns:
evictionPolicy
public abstract EvictionPolicy evictionPolicy()
Gets the evictionPolicy property: Redis eviction policy - default is VolatileLRU.
Returns:
export
public abstract void export(ExportClusterParameters parameters)
Exports a database file from target database.
Parameters:
export
public abstract void export(ExportClusterParameters parameters, Context context)
Exports a database file from target database.
Parameters:
flush
public abstract void flush()
Flushes all the keys in this database and also from its linked databases.
flush
public abstract void flush(FlushParameters parameters, Context context)
Flushes all the keys in this database and also from its linked databases.
Parameters:
forceLinkToReplicationGroup
public abstract void forceLinkToReplicationGroup(ForceLinkParameters parameters)
Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database will temporarily be unavailable while rejoining the replication group.
Parameters:
forceLinkToReplicationGroup
public abstract void forceLinkToReplicationGroup(ForceLinkParameters parameters, Context context)
Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database will temporarily be unavailable while rejoining the replication group.
Parameters:
forceUnlink
public abstract void forceUnlink(ForceUnlinkParameters parameters)
Forcibly removes the link to the specified database resource.
Parameters:
forceUnlink
public abstract void forceUnlink(ForceUnlinkParameters parameters, Context context)
Forcibly removes the link to the specified database resource.
Parameters:
geoReplication
public abstract DatabasePropertiesGeoReplication geoReplication()
Gets the geoReplication property: Optional set of properties to configure geo replication for this database.
Returns:
id
public abstract String id()
Gets the id property: Fully qualified resource Id for the resource.
Returns:
importMethod
public abstract void importMethod(ImportClusterParameters parameters)
Imports database files to target database.
Parameters:
importMethod
public abstract void importMethod(ImportClusterParameters parameters, Context context)
Imports database files to target database.
Parameters:
innerModel
public abstract DatabaseInner innerModel()
Gets the inner com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner object.
Returns:
listKeys
public abstract AccessKeys listKeys()
Retrieves the access keys for the Redis Enterprise database.
Returns:
listKeysWithResponse
public abstract Response<AccessKeys> listKeysWithResponse(Context context)
Retrieves the access keys for the Redis Enterprise database.
Parameters:
Returns:
modules
public abstract List<Module> modules()
Gets the modules property: Optional set of redis modules to enable in this database - modules can only be added at creation time.
Returns:
name
public abstract String name()
Gets the name property: The name of the resource.
Returns:
persistence
public abstract Persistence persistence()
Gets the persistence property: Persistence settings.
Returns:
port
public abstract Integer port()
Gets the port property: TCP port of the database endpoint. Specified at create time. Defaults to an available port.
Returns:
provisioningState
public abstract ProvisioningState provisioningState()
Gets the provisioningState property: Current provisioning status of the database.
Returns:
redisVersion
public abstract String redisVersion()
Gets the redisVersion property: Version of Redis the database is running on, e.g. '6.0'.
Returns:
refresh
public abstract Database refresh()
Refreshes the resource to sync with Azure.
Returns:
refresh
public abstract Database refresh(Context context)
Refreshes the resource to sync with Azure.
Parameters:
Returns:
regenerateKey
public abstract AccessKeys regenerateKey(RegenerateKeyParameters parameters)
Regenerates the Redis Enterprise database's access keys.
Parameters:
Returns:
regenerateKey
public abstract AccessKeys regenerateKey(RegenerateKeyParameters parameters, Context context)
Regenerates the Redis Enterprise database's access keys.
Parameters:
Returns:
resourceGroupName
public abstract String resourceGroupName()
Gets the name of the resource group.
Returns:
resourceState
public abstract ResourceState resourceState()
Gets the resourceState property: Current resource status of the database.
Returns:
systemData
public abstract SystemData systemData()
Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
type
public abstract String type()
Gets the type property: The type of the resource.
Returns:
update
public abstract Database.Update update()
Begins update for the Database resource.
Returns:
upgradeDBRedisVersion
public abstract void upgradeDBRedisVersion()
Upgrades the database Redis version to the latest available.
upgradeDBRedisVersion
public abstract void upgradeDBRedisVersion(Context context)
Upgrades the database Redis version to the latest available.
Parameters: