- All Known Implementing Classes:
YarnClusterProvider
public interface ClusterProvider
Extension point to register cluster providers for new schemes.
ClusterProvider must be registered by creating a file
META-INF/services/com.pervasive.datarush.cal.ClusterProvider that contains
the implementation class.
-
Method Summary
Modifier and TypeMethodDescriptioncreateExecutor(FileClient fileClient, JobSpecifier spec) Create a new job executor service.Returns the default root path for this cluster provider.getJobHistoryService(FileClient client, ClusterSpecifier spec) booleanReturns whether this provider is the correct provider for the given specifier.voidvalidateConnection(FileClient fileClient, ClusterSpecifier spec) Gives the provider an opportunity to validate the specifier
-
Method Details
-
isProviderFor
Returns whether this provider is the correct provider for the given specifier.- Parameters:
spec- the specifier- Returns:
- whether this provider knows how to handle the given specifier
-
validateConnection
Gives the provider an opportunity to validate the specifier- Parameters:
spec- the specifier
-
getDefaultStorageManagementPath
Returns the default root path for this cluster provider. For example, within the DR cluster, the default path is drfs://clustermanager:port.- Parameters:
spec- the cluster specifier- Returns:
- the default root path
-
createExecutor
Create a new job executor service.- Parameters:
fileClient- the file client to usespec- the job specifier- Returns:
- a new job executor service
-
getJobHistoryService
-