You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by "Antony T Curtis (JIRA)" <ji...@apache.org> on 2014/11/04 00:32:33 UTC
[jira] [Updated] (HELIX-537) org.apache.helix.task.TaskStateModel
should have a shutdown method.
[ https://issues.apache.org/jira/browse/HELIX-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antony T Curtis updated HELIX-537:
----------------------------------
Description:
There should be a shutdown method to terminate the Timer and Executor which the org.apache.helix.task.TaskStateModel class creates.
ie.
{noformat}
public boolean shutdown(long timeout, TimeUnit unit)
throws InterruptedException
{
reset();
_taskExecutor.shutdown();
_timer.cancel();
return _taskExecutor.awaitTermination(timeout, unit);
}
{noformat}
was:
There should be a shutdown method to terminate the Timer and Executor which the org.apache.helix.task.TaskStateModel class creates.
ie.
public boolean shutdown(long timeout, TimeUnit unit)
throws InterruptedException
{
reset();
_taskExecutor.shutdown();
_timer.cancel();
return _taskExecutor.awaitTermination(timeout, unit);
}
> org.apache.helix.task.TaskStateModel should have a shutdown method.
> -------------------------------------------------------------------
>
> Key: HELIX-537
> URL: https://issues.apache.org/jira/browse/HELIX-537
> Project: Apache Helix
> Issue Type: Bug
> Components: helix-core
> Affects Versions: 0.6.3
> Reporter: Antony T Curtis
> Priority: Blocker
>
> There should be a shutdown method to terminate the Timer and Executor which the org.apache.helix.task.TaskStateModel class creates.
> ie.
> {noformat}
> public boolean shutdown(long timeout, TimeUnit unit)
> throws InterruptedException
> {
> reset();
> _taskExecutor.shutdown();
> _timer.cancel();
> return _taskExecutor.awaitTermination(timeout, unit);
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)