Class StorageCredentialPair
- java.lang.Object
-
- org.apache.cassandra.spark.transports.storage.StorageCredentialPair
-
public class StorageCredentialPair extends java.lang.ObjectA class representing the pair of credentials needed to complete an analytics operation using the Storage transport. It is possible that both credentials (read and write) are the same, but also that they could represent the credentials needed for two different buckets when using cross-region synchronization to transfer data between regions.
-
-
Field Summary
Fields Modifier and Type Field Description StorageCredentialsreadCredentialsStorageCredentialswriteCredentials
-
Constructor Summary
Constructors Constructor Description StorageCredentialPair(java.lang.String writeRegion, StorageCredentials writeCredentials, java.lang.String readRegion, StorageCredentials readCredentials)Create a new instance of a StorageCredentialPair
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()o.a.c.sidecar.client.shaded.common.data.RestoreJobSecretstoRestoreJobSecrets()java.lang.StringtoString()
-
-
-
Field Detail
-
writeCredentials
public final StorageCredentials writeCredentials
-
readCredentials
public final StorageCredentials readCredentials
-
-
Constructor Detail
-
StorageCredentialPair
public StorageCredentialPair(java.lang.String writeRegion, StorageCredentials writeCredentials, java.lang.String readRegion, StorageCredentials readCredentials)Create a new instance of a StorageCredentialPair- Parameters:
writeRegion- the name of the region where write/upload happenswriteCredentials- the credentials used for writing to the storage endpointreadRegion- the name of the region where read/download happensreadCredentials- the credentials used to read from the storage endpoint
-
-
Method Detail
-
toRestoreJobSecrets
public o.a.c.sidecar.client.shaded.common.data.RestoreJobSecrets toRestoreJobSecrets()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-