AWS_S3 logging is now enabled by default. It first tries to log internally at the Broad, and if it can't goes to AWS_S3. DEV option is removed

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5249 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
depristo 2011-02-15 20:20:14 +00:00
parent d2efea6003
commit 5a51c9a815
1 changed files with 4 additions and 8 deletions

View File

@ -155,16 +155,11 @@ public class GATKRunReport {
@Element(required = true, name = "reads") @Element(required = true, name = "reads")
private long nReads; private long nReads;
// TODO
// todo md5 all filenames
// todo size of filenames
public enum PhoneHomeOption { public enum PhoneHomeOption {
NO_ET, NO_ET,
STANDARD, STANDARD,
DEV,
STDOUT, STDOUT,
AWS_S3 AWS_S3 // todo -- remove me -- really just for testing purposes
} }
private static final DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH.mm.ss"); private static final DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH.mm.ss");
@ -250,14 +245,15 @@ public class GATKRunReport {
} }
public void postReport(PhoneHomeOption type) { public void postReport(PhoneHomeOption type) {
logger.info("Posting report of type " + type);
switch (type) { switch (type) {
case NO_ET: // don't do anything case NO_ET: // don't do anything
break; break;
case STANDARD: case DEV: case STANDARD:
if ( repositoryIsOnline() ) { if ( repositoryIsOnline() ) {
postReportToLocalDisk(REPORT_SUBMIT_DIR); postReportToLocalDisk(REPORT_SUBMIT_DIR);
} else { } else {
logger.debug("Not writing report: sentinel " + REPORT_SENTINEL + " doesn't exist"); postReportToAWSS3();
} }
break; break;
case STDOUT: case STDOUT: