Package oracle.kv
Class KVLocalConfig.InetBuilder
java.lang.Object
oracle.kv.KVLocalConfig.Builder
oracle.kv.KVLocalConfig.InetBuilder
- Enclosing class:
- KVLocalConfig
InetBuilder to help construct a KVLocalConfig instance using TCP
sockets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The default host name is "localhost".static final boolean
The default is secure. -
Constructor Summary
ConstructorsConstructorDescriptionInetBuilder
(String rootDir) Makes an InetBuilder for KVLocalConfig with the specified root directory. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aKVLocalConfig
instance using the values specified in this builder.isSecure
(boolean secure) Specifies whether the store is secure.setHostName
(String name) Sets the host name.setPort
(int portNum) Sets port number.Methods inherited from class oracle.kv.KVLocalConfig.Builder
setMemoryMB, setStorageGB, setStoreName
-
Field Details
-
DEFAULT_HOSTNAME
The default host name is "localhost".- See Also:
-
DEFAULT_IS_SECURE
public static final boolean DEFAULT_IS_SECUREThe default is secure.- See Also:
-
-
Constructor Details
-
InetBuilder
Makes an InetBuilder for KVLocalConfig with the specified root directory.- Parameters:
rootDir
- the root directory where NoSQL Database data is placed- Throws:
IllegalArgumentException
- if specified rootDir is null or empty
-
-
Method Details
-
build
Description copied from class:KVLocalConfig.Builder
Builds aKVLocalConfig
instance using the values specified in this builder.- Specified by:
build
in classKVLocalConfig.Builder
- Returns:
- a
KVLocalConfig
instance for this builder
-
setHostName
Description copied from class:KVLocalConfig.Builder
Sets the host name.- Specified by:
setHostName
in classKVLocalConfig.Builder
- Parameters:
name
- the name of the host- Returns:
- this instance
-
setPort
Description copied from class:KVLocalConfig.Builder
Sets port number.- Specified by:
setPort
in classKVLocalConfig.Builder
- Parameters:
portNum
- the port number for registry- Returns:
- this instance
-
isSecure
Specifies whether the store is secure.- Specified by:
isSecure
in classKVLocalConfig.Builder
- Parameters:
secure
- whether the store is secure- Returns:
- this instance
-