final ServiceElement sElem,
final ServiceBeanInstance instance,
final boolean clean,
final boolean sticky,
final ServiceProvisionListener listener) throws OperationalStringException {
RedeploymentTask scheduledTask = getScheduledRedeploymentTask(sElem, instance);
if (scheduledTask != null) {
long exec = (scheduledTask.scheduledExecutionTime() - System.currentTimeMillis()) / 1000;
throw new OperationalStringException("Already " +
"scheduled " +
"for redeployment " +
"in " +
exec + " seconds");
}
RedeploymentTask task = new RedeploymentTask(this, sElem, instance, clean, sticky, listener);
addTask(task);
TaskTimer.getInstance().schedule(task, delay);
Date redeployDate = new Date(System.currentTimeMillis() + delay);
Object[] parms = new Object[]{redeployDate, clean, sticky, listener};
ProvisionMonitorEvent event = new ProvisionMonitorEvent(serviceProxy,