public class ShivaClusterImpl extends Object implements IShivaCluster
Constructor and Description |
---|
ShivaClusterImpl(String shivaClusterName,
IPunchPlatformProperties properties)
Ctor
|
Modifier and Type | Method and Description |
---|---|
String |
getAssignementTopic() |
String |
getCommandTopic() |
String |
getFilesystemRoot()
Simple shiva "cluster" can run on one node and rely on the local filesystem.
|
String |
getKafkaBoostrapServers() |
String |
getKafkaClusterName() |
String |
getName()
The logical name of the cluster.
|
Set<String> |
getServerNames()
Get the set of Shiva server hostnames
|
Set<String> |
getWorkersServerNames()
Get the set of Shiva workers server hostnames
|
boolean |
isLocalFileSystemDaemon()
Simple shiva "cluster" can run on one node and rely on the local filesystem.
|
public ShivaClusterImpl(String shivaClusterName, IPunchPlatformProperties properties) throws ConfigurationException
shivaClusterName
- the logical shiva cluster name, i.e. 'common'properties
- the platform propertiesConfigurationException
public String getFilesystemRoot() throws ConfigurationException
IShivaCluster
getFilesystemRoot
in interface IShivaCluster
PlatformPropertiesConfigurationException
ConfigurationException
public boolean isLocalFileSystemDaemon() throws ConfigurationException
IShivaCluster
isLocalFileSystemDaemon
in interface IShivaCluster
PlatformPropertiesConfigurationException
ConfigurationException
public String getCommandTopic() throws ConfigurationException
getCommandTopic
in interface IShivaCluster
PlatformPropertiesConfigurationException
ConfigurationException
public String getAssignementTopic() throws ConfigurationException
getAssignementTopic
in interface IShivaCluster
PlatformPropertiesConfigurationException
ConfigurationException
public String getKafkaBoostrapServers() throws ConfigurationException
getKafkaBoostrapServers
in interface IShivaCluster
PlatformPropertiesConfigurationException
ConfigurationException
public String getKafkaClusterName() throws ConfigurationException
getKafkaClusterName
in interface IShivaCluster
PlatformPropertiesConfigurationException
ConfigurationException
public String getName()
IShivaCluster
getName
in interface IShivaCluster
public Set<String> getServerNames() throws ConfigurationException
IShivaCluster
getServerNames
in interface IShivaCluster
PlatformPropertiesConfigurationException
ConfigurationException
public Set<String> getWorkersServerNames() throws ConfigurationException
IShivaCluster
getWorkersServerNames
in interface IShivaCluster
PlatformPropertiesConfigurationException
ConfigurationException
Copyright © 2014–2023. All rights reserved.