Class SupportZipGenerator


  • public class SupportZipGenerator
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createZip​(java.util.List<java.io.File> logFiles)
      removes the old zip (if exists), and creates a new one.
      void deleteZip()
      deletes the supportzip-File
      java.util.List<java.io.File> getLogFiles()
      Returns an array of Logfiles found in the logDir and subdirs
      java.io.File getZip()
      returns the supportzip.
      boolean logsCollectable()
      returns a boolean, whether the logs are collectable.
      void sendZipViaMail()
      send the supportzip-file via Mail.
      boolean zipExists()
      returns, whether the supportzip exists
      • Methods inherited from class java.lang.Object

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

      • SupportZipGenerator

        public SupportZipGenerator()
    • Method Detail

      • getZip

        public java.io.File getZip()
        returns the supportzip. If it's not yet existent, it gets created
      • zipExists

        public boolean zipExists()
        returns, whether the supportzip exists
      • deleteZip

        public void deleteZip()
        deletes the supportzip-File
      • createZip

        public void createZip​(java.util.List<java.io.File> logFiles)
        removes the old zip (if exists), and creates a new one.
      • logsCollectable

        public boolean logsCollectable()
        returns a boolean, whether the logs are collectable. Right now, the logs are not collectable in Weblogic
      • getLogFiles

        public java.util.List<java.io.File> getLogFiles()
        Returns an array of Logfiles found in the logDir and subdirs
      • sendZipViaMail

        public void sendZipViaMail()
                            throws org.apache.commons.mail.EmailException
        send the supportzip-file via Mail. To use this, you should set the mail.* - properties properly.
        Throws:
        org.apache.commons.mail.EmailException