private String appendMoreLogsLink ( final String fileName , String url ) throws IOException { FileBackedStringBuffer buffer = new FileBackedStringBuffer ( ) ; int index = retrieveIndexValueFromFileName ( fileName ) ; index ++ ; File logFileName = retrieveFileFromLogsFolder ( Integer . toString ( index ) ) ; if ( logFileName == null ) { return "" ; } // TODO put this html code in a template buffer . append ( "<form name ='myform' action=" ) . append ( url ) . append ( " method= 'post'>" ) ; buffer . append ( "<input type='hidden'" ) . append ( " name ='fileName'" ) . append ( " value ='" ) . append ( logFileName . getName ( ) ) . append ( "'>" ) ; buffer . append ( "<a href= 'javascript: submitform();' > More Logs </a>" ) ; buffer . append ( "</form>" ) ; return buffer . toString ( ) ; }
This method helps to display More log information of the node machine .