public class TensorFlowClusterMaintainer extends Object implements Service
Constructor and Description |
---|
TensorFlowClusterMaintainer(UUID clusterId,
TensorFlowJobArchive jobArchive,
String topicName)
Constructs a new instance of TensorFlow cluster service.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel(ServiceContext ctx)
Cancels this service.
|
void |
execute(ServiceContext ctx)
Starts execution of this service.
|
void |
init(ServiceContext ctx)
Pre-initializes service before execution.
|
public TensorFlowClusterMaintainer(UUID clusterId, TensorFlowJobArchive jobArchive, String topicName)
clusterId
- Cluster identifier.jobArchive
- Job archive.topicName
- Topic name.public void cancel(ServiceContext ctx)
cancel
methods on IgniteServices
API are called.
Note that Ignite cannot guarantee that the service exits from Service.execute(ServiceContext)
method whenever cancel(ServiceContext)
method is called. It is up to the user to
make sure that the service code properly reacts to cancellations.
public void init(ServiceContext ctx)
Service.execute(ServiceContext)
is called).public void execute(ServiceContext ctx)
execute
method and can be cancelled (or undeployed) only by calling any of the cancel
methods on
IgniteServices
API. Also note that service is not required to exit from execute
method until
Service.cancel(ServiceContext)
method was called.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024