Interface Settings
-
public interface SettingsCassandra settings.- Since:
- 4.0.0
- Author:
- Dmytro Nosan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InetAddressgetAddress()Gets address thisCassandrais listening on.Map<String,Object>getConfigProperties()Gets Cassandra Configuration properties.PathgetConfigurationFile()Gets Cassandra configuration file.Map<String,String>getEnvironmentVariables()Gets Cassandra Environment variables that were used on start.Set<String>getJvmOptions()Gets Cassandra JVM Options that were used on start.StringgetName()Gets the name of thisCassandrainstance.IntegergetPort()Gets port thisCassandrais listening on.IntegergetRpcPort()Gets RPC port thisCassandrais listening on.IntegergetSslPort()Gets SSL port thisCassandrais listening on.Map<String,String>getSystemProperties()Gets Cassandra JVM parameters that were used on start.VersiongetVersion()Gets theVersionof thisCassandrainstance.PathgetWorkingDirectory()Gets the working directory.booleanisNativeTransportEnabled()Checks whether native transport is enabled.booleanisRpcTransportEnabled()Checks whether RPC transport is enabled.
-
-
-
Method Detail
-
getName
String getName()
Gets the name of thisCassandrainstance.- Returns:
- name of this
Cassandrainstance, nevernull
-
getVersion
Version getVersion()
Gets theVersionof thisCassandrainstance.- Returns:
- a version, never
null
-
getConfigurationFile
Path getConfigurationFile()
Gets Cassandra configuration file.- Returns:
- the configuration file, never
null
-
getWorkingDirectory
Path getWorkingDirectory()
Gets the working directory.- Returns:
- working directory, never
null
-
isNativeTransportEnabled
boolean isNativeTransportEnabled()
Checks whether native transport is enabled.- Returns:
trueif native transport is enabled, otherwisefalse
-
isRpcTransportEnabled
boolean isRpcTransportEnabled()
Checks whether RPC transport is enabled.- Returns:
trueif RPC transport is enabled, otherwisefalse
-
getAddress
InetAddress getAddress()
Gets address thisCassandrais listening on.- Returns:
- the address, or
nullif both native and RPC transports are disabled - See Also:
isNativeTransportEnabled(),isRpcTransportEnabled()
-
getPort
Integer getPort()
Gets port thisCassandrais listening on.- Returns:
- the port, or
nullif native transport is disabled. - See Also:
isNativeTransportEnabled()
-
getSslPort
Integer getSslPort()
Gets SSL port thisCassandrais listening on.- Returns:
- the SSL port, or
nullif eithernative_transport_port_sslwas not set or native transport is disabled. - See Also:
isNativeTransportEnabled()
-
getRpcPort
Integer getRpcPort()
Gets RPC port thisCassandrais listening on.- Returns:
- the port, or
nullif RPC transport is disabled - See Also:
isRpcTransportEnabled()
-
getJvmOptions
Set<String> getJvmOptions()
Gets Cassandra JVM Options that were used on start.- Returns:
- the JVM options, never
null
-
getSystemProperties
Map<String,String> getSystemProperties()
Gets Cassandra JVM parameters that were used on start.- Returns:
- the JVM parameters, never
null
-
getEnvironmentVariables
Map<String,String> getEnvironmentVariables()
Gets Cassandra Environment variables that were used on start.- Returns:
- the environment variables, never
null
-
-