public class ClusterInfoPropertiesStore extends PropertiesStore
Constructor and Description |
---|
ClusterInfoPropertiesStore(ClusterInfoSession session,
String path) |
Modifier and Type | Method and Description |
---|---|
int |
clear(String... propNames)
This will clear the given properties by name.
|
int |
merge(Properties props)
This will merge the new properties with the old properties overwriting where there are clashes.
|
int |
push(Properties props)
This will basically clear the existing properties and replace them with the new set.
|
public ClusterInfoPropertiesStore(ClusterInfoSession session, String path)
public int push(Properties props)
PropertiesStore
push
in class PropertiesStore
props
- is the Properties
to store.public int merge(Properties props)
PropertiesStore
merge
in class PropertiesStore
props
- is the Properties
to store.public int clear(String... propNames) throws IOException
PropertiesStore
clear
in class PropertiesStore
propNames
- is the set of keys to clear from the distributed properties.IOException
- if the underlying transport or storage mechanism throws an IOExceptionCopyright © 2018. All rights reserved.