Package de.hybris.platform.hac.util
Class SupportZipGenerator
- java.lang.Object
-
- de.hybris.platform.hac.util.SupportZipGenerator
-
public class SupportZipGenerator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SupportZipGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateZip(java.util.List<java.io.File> logFiles)removes the old zip (if exists), and creates a new one.voiddeleteZip()deletes the supportzip-Filejava.util.List<java.io.File>getLogFiles()Returns an array of Logfiles found in the logDir and subdirsjava.io.FilegetZip()returns the supportzip.booleanlogsCollectable()returns a boolean, whether the logs are collectable.voidsendZipViaMail()send the supportzip-file via Mail.booleanzipExists()returns, whether the supportzip exists
-
-
-
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.EmailExceptionsend the supportzip-file via Mail. To use this, you should set the mail.* - properties properly.- Throws:
org.apache.commons.mail.EmailException
-
-