package gcom.cobranca;
import gcom.seguranca.acesso.usuario.Usuario;
import gcom.tarefa.TarefaBatch;
import gcom.tarefa.TarefaException;
import gcom.util.ConstantesJNDI;
import gcom.util.agendadortarefas.AgendadorTarefas;
import java.util.Collection;
public class TarefaBatchGerarArquivoTextoOSContasPagasParceladas extends
TarefaBatch {
private static final long serialVersionUID = 1L;
public TarefaBatchGerarArquivoTextoOSContasPagasParceladas(
Usuario usuario, int idFuncionalidadeIniciada) {
super(usuario, idFuncionalidadeIniciada);
}
@Deprecated
public TarefaBatchGerarArquivoTextoOSContasPagasParceladas() {
super(null, 0);
}
@Override
protected Collection<Object> pesquisarTodasUnidadeProcessamentoBatch() {
return null;
}
@Override
protected Collection<Object> pesquisarTodasUnidadeProcessamentoReinicioBatch() {
return null;
}
@Override
public Object executar() throws TarefaException {
enviarMensagemControladorBatch(
ConstantesJNDI.BATCH_GERAR_ARQUIVO_TXT_OS_CONTAS_PAGAS_PARCELADAS,
new Object[] { this.getIdFuncionalidadeIniciada() });
return null;
}
@Override
public void agendarTarefaBatch() {
AgendadorTarefas.agendarTarefa(
"GerarArquivoTextoOSContasPagasParceladasBatch", this);
}
}