public class TensorFlowClusterManager extends Object
Constructor and Description |
---|
TensorFlowClusterManager(Ignite ignite)
Constructs a new instance of TensorFlow cluster manager.
|
Modifier and Type | Method and Description |
---|---|
TensorFlowCluster |
createCluster(UUID clusterId,
TensorFlowJobArchive jobArchive,
Consumer<String> userScriptOut,
Consumer<String> userScriptErr)
Creates and starts a new TensorFlow cluster for the specified cache.
|
void |
destroy()
Destroys TensorFlow cluster manager and related caches.
|
Map<UUID,TensorFlowCluster> |
getAllClusters()
Returns list of maintained TensorFlow clusters.
|
Exception |
getChiefException(UUID clusterId)
Returns an exception that happened during execution or
null if there is no exception. |
TensorFlowCluster |
getCluster(UUID clusterId)
Returns cluster by identifier.
|
TensorFlowServerManager |
getSrvProcMgr() |
Exception |
getUserScriptException(UUID clusterId)
Returns an exception that happened during execution or
null if there is no exception. |
boolean |
isChiefCompleted(UUID clusterId)
Checks if chief completed and returns result.
|
boolean |
isUserScriptCompleted(UUID clusterId)
Checks if user script completed and returns result.
|
void |
stopClusterIfExists(UUID clusterId)
Stops TensorFlow cluster.
|
public TensorFlowClusterManager(Ignite ignite)
ignite
- Ignite instance.public TensorFlowCluster getCluster(UUID clusterId)
clusterId
- Cluster identifier.public TensorFlowCluster createCluster(UUID clusterId, TensorFlowJobArchive jobArchive, Consumer<String> userScriptOut, Consumer<String> userScriptErr)
clusterId
- Cluster identifier.jobArchive
- Job archive.public void stopClusterIfExists(UUID clusterId)
clusterId
- TensorFlow cluster identifier.public void destroy()
public boolean isChiefCompleted(UUID clusterId)
clusterId
- Cluster identifier.true
if chief completed, otherwise false
.public Exception getChiefException(UUID clusterId)
null
if there is no exception.clusterId
- Cluster identifier.null
if there is no exception.public boolean isUserScriptCompleted(UUID clusterId)
clusterId
- Cluster identifier.true
if user script completed, otherwise false
.public Exception getUserScriptException(UUID clusterId)
null
if there is no exception.clusterId
- Cluster identifier.null
if there is no exception.public Map<UUID,TensorFlowCluster> getAllClusters()
public TensorFlowServerManager getSrvProcMgr()
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024