Class BackgroundInteractive

java.lang.Object
br.com.intersys.systextil.batch.base.BackgroundInteractive
All Implemented Interfaces:
Interactive

public class BackgroundInteractive extends Object implements Interactive
Em processos batch que não possibilitam interação com o usuário, redireciona todas as mensagens para um arquivo de log padronizado. Se houver perguntas ao usuário, todas são respondidas automaticamente como SIM.
Author:
sergio
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Se for preciso, fecha recursos que foram usados, e executa alguma finalização, como por exemplo o registro dos arquivos que foram gerados até agora.
    boolean
    Sempre retorna SIM.
    int
    Sempre retorna SIM.
    void
    Avisa que ocorreu um problema sério no processo.
    void
    Apresenta o erro ocorrido de forma que possa ser analisado e corrigido.
    void
    Apresenta uma informação que pode ser interessante, geralmente referente à situação atual de um processo.
    void
    Apresenta um aviso muito importante.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • info

      public void info(Object o)
      Description copied from interface: Interactive
      Apresenta uma informação que pode ser interessante, geralmente referente à situação atual de um processo.
      Specified by:
      info in interface Interactive
    • warn

      public void warn(Object o)
      Description copied from interface: Interactive
      Apresenta um aviso muito importante.
      Specified by:
      warn in interface Interactive
    • error

      public void error(Object o)
      Description copied from interface: Interactive
      Avisa que ocorreu um problema sério no processo.
      Specified by:
      error in interface Interactive
    • error

      public void error(Throwable t)
      Description copied from interface: Interactive
      Apresenta o erro ocorrido de forma que possa ser analisado e corrigido.
      Specified by:
      error in interface Interactive
    • confirm

      public boolean confirm(Object o)
      Sempre retorna SIM.
      Specified by:
      confirm in interface Interactive
      Parameters:
      o - a mensagem
      Returns:
      true
    • confirmOrCancel

      public int confirmOrCancel(Object o)
      Sempre retorna SIM.
      Specified by:
      confirmOrCancel in interface Interactive
      Parameters:
      o - a mensagem
      Returns:
      zero
    • close

      public void close()
      Description copied from interface: Interactive
      Se for preciso, fecha recursos que foram usados, e executa alguma finalização, como por exemplo o registro dos arquivos que foram gerados até agora.
      Specified by:
      close in interface Interactive