Java Code Examples for com.alibaba.dubbo.common.status.Status#getLevel()
The following examples show how to use
com.alibaba.dubbo.common.status.Status#getLevel() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StatusUtils.java From dubbo-2.6.5 with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if (!Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 2
Source File: StatusManager.java From open-capacity-platform with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if (!Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 3
Source File: StatusUtils.java From dubbox with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 4
Source File: StatusManager.java From dubbox with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 5
Source File: StatusUtils.java From dubbox-hystrix with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 6
Source File: StatusManager.java From dubbox-hystrix with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 7
Source File: StatusUtils.java From dubbo3 with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 8
Source File: StatusUtils.java From dubbox with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 9
Source File: StatusManager.java From dubbox with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 10
Source File: StatusUtils.java From dubbox with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }
Example 11
Source File: StatusManager.java From dubbox with Apache License 2.0 | 6 votes |
public static Status getSummaryStatus(Map<String, Status> statuses) { Level level = Level.OK; StringBuilder msg = new StringBuilder(); for (Map.Entry<String, Status> entry : statuses.entrySet()) { String key = entry.getKey(); Status status = entry.getValue(); Level l = status.getLevel(); if (Level.ERROR.equals(l)) { level = Level.ERROR; if (msg.length() > 0) { msg.append(","); } msg.append(key); } else if (Level.WARN.equals(l)) { if(! Level.ERROR.equals(level)) { level = Level.WARN; } if (msg.length() > 0) { msg.append(","); } msg.append(key); } } return new Status(level, msg.toString()); }