public class TensorFlowClusterGatewayManager extends Object
TensorFlowClusterManager
and Ignite Service Grid.Constructor and Description |
---|
TensorFlowClusterGatewayManager(Ignite ignite)
Constructs a new instance of TensorFlow cluster manager with maintenance.
|
Modifier and Type | Method and Description |
---|---|
TensorFlowClusterGateway |
createCluster(UUID clusterId,
TensorFlowJobArchive jobArchive)
Creates and starts a new TensorFlow cluster for the specified cache.
|
TensorFlowClusterGateway |
getCluster(UUID clusterId)
Subscribes on changes of the specified cluster.
|
void |
listenToClusterUserScript(UUID clusterId,
Consumer<String> out,
Consumer<String> err)
Listens to TensorFlow cluster user script.
|
void |
stopClusterIfExists(UUID clusterId)
Stops TensorFlow cluster.
|
public TensorFlowClusterGatewayManager(Ignite ignite)
ignite
- Ignite instance.public TensorFlowClusterGateway getCluster(UUID clusterId)
clusterId
- Cluster identifier.public TensorFlowClusterGateway createCluster(UUID clusterId, TensorFlowJobArchive jobArchive)
clusterId
- Cluster identifier.jobArchive
- Job archive.public void listenToClusterUserScript(UUID clusterId, Consumer<String> out, Consumer<String> err)
clusterId
- Cluster identifier.out
- Output stream consumer.err
- Error stream consumer.public void stopClusterIfExists(UUID clusterId)
clusterId
- Cluster identifier.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019