org.miloss.fgsms.common.Logger.error()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(214)

本文整理了Java中org.miloss.fgsms.common.Logger.error()方法的一些代码示例,展示了Logger.error()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.error()方法的具体详情如下:
包路径:org.miloss.fgsms.common.Logger
类名称:Logger
方法名:error

Logger.error介绍

暂无

代码示例

代码示例来源:origin: org.mil-oss/fgsms-reporting-service

  1. protected String getHeader() {
  2. String x = null;
  3. InputStream s = null;
  4. try {
  5. s = this.getClass().getClassLoader().getResourceAsStream("org/miloss/fgsms/services/rs/impl/header.txt");
  6. x = readAllText(s);
  7. } catch (Exception ex) {
  8. log.error(null, ex);
  9. } finally {
  10. if (s != null) {
  11. try {
  12. s.close();
  13. } catch (IOException ex) {
  14. }
  15. }
  16. }
  17. return x;
  18. }

代码示例来源:origin: org.mil-oss/fgsms-reporting-service

  1. protected String getFooter() {
  2. String x = null;
  3. InputStream s = null;
  4. try {
  5. s = this.getClass().getClassLoader().getResourceAsStream("org/miloss/fgsms/services/rs/impl/footer.txt");
  6. x = readAllText(s);
  7. } catch (Exception ex) {
  8. log.error(null, ex);
  9. } finally {
  10. if (s != null) {
  11. try {
  12. s.close();
  13. } catch (IOException ex) {
  14. }
  15. }
  16. }
  17. return x;
  18. }

代码示例来源:origin: org.mil-oss/fgsms-sla-processor

  1. log.error("SLA Processing failed for " + req.getURI(), ex);
  2. } finally {
  3. if (is!=null)

代码示例来源:origin: org.mil-oss/fgsms-stats

  1. log.error("error fetching actions for service", ex);
  2. } finally {
  3. DBUtils.safeClose(results);
  4. log.error("error fetching transactions", ex);
  5. } finally {
  6. DBUtils.safeClose(records);
  7. up.executeUpdate();
  8. } catch (Exception ex) {
  9. log.error("error updating statistcs row", ex);
  10. } finally {
  11. DBUtils.safeClose(up);

代码示例来源:origin: org.mil-oss/fgsms-sla-processor

  1. log.error("Error to Load class for SLA Alert!!!" + alert.getSlaActionBaseType().getImplementingClassName());
  2. } else {
  3. try {
  4. item.ProcessAction(alert, alert.getSlaActionBaseType().getParameterNameValue());
  5. } catch (Exception ex) {
  6. log.error("Error unable to process SLA Alert!!!", ex);

代码示例来源:origin: org.mil-oss/fgsms-ui-common

  1. LogHelper.getLog().error(ex);

代码示例来源:origin: org.mil-oss/fgsms-ui-common

  1. public static List<Plugin> GetPluginList(PCS pcs, SecurityWrapper c, String item_type, PolicyType pt) {
  2. if (item_type == null) {
  3. return Collections.EMPTY_LIST;
  4. }
  5. GetPluginListRequestMsg req = new GetPluginListRequestMsg();
  6. req.setClassification(c);
  7. req.setPlugintype(item_type);
  8. req.setOptionalPolicyTypeFilter(pt);
  9. GetPluginList r = new GetPluginList();
  10. r.setRequest(req);
  11. try {
  12. GetPluginListResponse pluginList = pcs.getPluginList(r);
  13. return pluginList.getResponse().getPlugins();
  14. } catch (Exception ex) {
  15. LogHelper.getLog().error(ex);
  16. }
  17. return Collections.EMPTY_LIST;
  18. }

代码示例来源:origin: org.mil-oss/fgsms-ui-common

  1. /**
  2. *
  3. * @param action
  4. * @param pcs
  5. * @param c
  6. * @param item_type FEDERATION_PUBLISH,SLA_RULE,SLA_ACTION
  7. * @return
  8. */
  9. public static String GetPluginHelp(SLAAction action, PCS pcs, SecurityWrapper c, String item_type) {
  10. if (action == null) {
  11. return "Null Action";
  12. }
  13. GetPluginInformationRequestMsg req = new GetPluginInformationRequestMsg();
  14. req.setGetPluginInformationRequestWrapper(new GetPluginInformationRequestWrapper());
  15. req.getGetPluginInformationRequestWrapper().setClassification(c);
  16. req.getGetPluginInformationRequestWrapper().setPlugin(new Plugin());
  17. req.getGetPluginInformationRequestWrapper().getPlugin().setClassname(action.getImplementingClassName());
  18. req.getGetPluginInformationRequestWrapper().getPlugin().setPlugintype(item_type);
  19. GetPluginInformation r = new GetPluginInformation();
  20. r.setRequest(req);
  21. try {
  22. GetPluginInformationResponse pluginInformation = pcs.getPluginInformation(r);
  23. return pluginInformation.getResponse().getHelp();
  24. } catch (Exception ex) {
  25. LogHelper.getLog().error(ex);
  26. }
  27. return "No help information could be found.";
  28. }

代码示例来源:origin: org.mil-oss/fgsms-ui-common

  1. /**
  2. * report type to a friendly name for report types
  3. *
  4. * @param r
  5. * @return
  6. */
  7. public static String ToFriendlyName(String action, PCS pcs, SecurityWrapper c) {
  8. if (action == null) {
  9. return "Null classname";
  10. }
  11. GetPluginInformationRequestMsg req = new GetPluginInformationRequestMsg();
  12. req.setGetPluginInformationRequestWrapper(new GetPluginInformationRequestWrapper());
  13. req.getGetPluginInformationRequestWrapper().setClassification(c);
  14. req.getGetPluginInformationRequestWrapper().setPlugin(new Plugin());
  15. req.getGetPluginInformationRequestWrapper().getPlugin().setClassname(action);
  16. req.getGetPluginInformationRequestWrapper().getPlugin().setPlugintype("REPORTING");
  17. GetPluginInformation r = new GetPluginInformation();
  18. r.setRequest(req);
  19. try {
  20. GetPluginInformationResponse pluginInformation = pcs.getPluginInformation(r);
  21. return Utility.encodeHTML(pluginInformation.getResponse().getDisplayName());
  22. } catch (Exception ex) {
  23. LogHelper.getLog().error(ex);
  24. }
  25. return "Unrecognized report type " + Utility.encodeHTML(action);
  26. }

代码示例来源:origin: org.mil-oss/fgsms-ui-common

  1. /**
  2. *
  3. * @param action
  4. * @param pcs
  5. * @param c
  6. * @param item_type FEDERATION_PUBLISH,SLA_RULE,SLA_ACTION
  7. * @return html escaped friendly name of the plugin
  8. */
  9. public static String ToFriendlyName(SLAAction action, PCS pcs, SecurityWrapper c) {
  10. if (action == null) {
  11. return "Null Action";
  12. }
  13. GetPluginInformationRequestMsg req = new GetPluginInformationRequestMsg();
  14. req.setGetPluginInformationRequestWrapper(new GetPluginInformationRequestWrapper());
  15. req.getGetPluginInformationRequestWrapper().setClassification(c);
  16. req.getGetPluginInformationRequestWrapper().setPlugin(new Plugin());
  17. req.getGetPluginInformationRequestWrapper().getPlugin().setClassname(action.getImplementingClassName());
  18. req.getGetPluginInformationRequestWrapper().getPlugin().setPlugintype("SLA_ACTION");
  19. GetPluginInformation r = new GetPluginInformation();
  20. r.setRequest(req);
  21. try {
  22. GetPluginInformationResponse pluginInformation = pcs.getPluginInformation(r);
  23. return Utility.encodeHTML(pluginInformation.getResponse().getDisplayName());
  24. } catch (Exception ex) {
  25. LogHelper.getLog().error(ex);
  26. }
  27. return "Unrecognized action, " + Utility.encodeHTML(action.getImplementingClassName());
  28. }

相关文章