| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.tasks; |
| | | |
| | |
| | | // The length of time that the task should sleep before completing. |
| | | private long sleepTime; |
| | | |
| | | // The task state to use when interrupting the task. This will be null unless |
| | | // the task gets interrupted. |
| | | // The task state to use when interrupting the task. This will be |
| | | // null unless the task gets interrupted. |
| | | private volatile TaskState interruptedState; |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Message getDisplayName() { |
| | | return Message.raw("Dummy"); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isInterruptable() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void interruptTask(TaskState taskState, Message interruptMessage) |
| | | { |
| | | interruptedState = taskState; |