/** Store the mbeans. * XXX add a background thread to store it periodically */ public void save() { // XXX customize no often than ( based on standard descriptor ), etc. // It doesn't work very well if we call this on each set att - // the triger will work for the first att, but all others will be delayed long time=System.currentTimeMillis(); if( location!=null && time - lastUpdate > updateInterval ) { lastUpdate=time; try { FileOutputStream fos=new FileOutputStream(location); DomUtil.writeXml(document, fos); } catch (TransformerException e) { log.error( "Error writing"); } catch (FileNotFoundException e) { log.error( "Error writing" ,e ); } } }
/** Store the mbeans. * XXX add a background thread to store it periodically */ public void save() { // XXX customize no often than ( based on standard descriptor ), etc. // It doesn't work very well if we call this on each set att - // the triger will work for the first att, but all others will be delayed long time=System.currentTimeMillis(); if( location!=null && time - lastUpdate > updateInterval ) { lastUpdate=time; try { FileOutputStream fos=new FileOutputStream(location); DomUtil.writeXml(document, fos); } catch (TransformerException e) { CoyoteLogger.MODELER_LOGGER.errorWritingMbeans(e); } catch (FileNotFoundException e) { CoyoteLogger.MODELER_LOGGER.errorWritingMbeans(e); } } }
/** Store the mbeans. * XXX add a background thread to store it periodically */ public void save() { // XXX customize no often than ( based on standard descriptor ), etc. // It doesn't work very well if we call this on each set att - // the triger will work for the first att, but all others will be delayed long time=System.currentTimeMillis(); if( location!=null && time - lastUpdate > updateInterval ) { lastUpdate=time; try { FileOutputStream fos=new FileOutputStream(location); DomUtil.writeXml(document, fos); } catch (TransformerException e) { log.error( "Error writing"); } catch (FileNotFoundException e) { log.error( "Error writing" ,e ); } } }
/** Store the mbeans. * XXX add a background thread to store it periodically */ public void save() { // XXX customize no often than ( based on standard descriptor ), etc. // It doesn't work very well if we call this on each set att - // the triger will work for the first att, but all others will be delayed long time=System.currentTimeMillis(); if( location!=null && time - lastUpdate > updateInterval ) { lastUpdate=time; try { FileOutputStream fos=new FileOutputStream(location); DomUtil.writeXml(document, fos); } catch (TransformerException e) { log.error( "Error writing"); } catch (FileNotFoundException e) { log.error( "Error writing" ,e ); } } }
/** Store the mbeans. * XXX add a background thread to store it periodically */ @Override public void save() { // XXX customize no often than ( based on standard descriptor ), etc. // It doesn't work very well if we call this on each set att - // the triger will work for the first att, but all others will be delayed long time=System.currentTimeMillis(); if( location!=null && time - lastUpdate > updateInterval ) { lastUpdate=time; try { FileOutputStream fos=new FileOutputStream(location); DomUtil.writeXml(document, fos); } catch (TransformerException e) { log.error( "Error writing"); } catch (FileNotFoundException e) { log.error( "Error writing" ,e ); } } }
/** Store the mbeans. * XXX add a background thread to store it periodically */ @Override public void save() { // XXX customize no often than ( based on standard descriptor ), etc. // It doesn't work very well if we call this on each set att - // the triger will work for the first att, but all others will be delayed long time=System.currentTimeMillis(); if( location!=null && time - lastUpdate > updateInterval ) { lastUpdate=time; try { FileOutputStream fos=new FileOutputStream(location); DomUtil.writeXml(document, fos); } catch (TransformerException e) { log.error( "Error writing"); } catch (FileNotFoundException e) { log.error( "Error writing" ,e ); } } }