新增任务至任务栏面板 @param extensionMethod @param requestMethod @param url @param statusCode @param issue @param requestResponse @return int id
(String extensionMethod, String requestMethod, String url,
String statusCode, String issue, IHttpRequestResponse requestResponse)
| 148 | * @return int id |
| 149 | */ |
| 150 | public int add(String extensionMethod, String requestMethod, String url, |
| 151 | String statusCode, String issue, IHttpRequestResponse requestResponse) { |
| 152 | synchronized (this.Udatas) { |
| 153 | Date d = new Date(); |
| 154 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| 155 | String startTime = sdf.format(d); |
| 156 | |
| 157 | int id = this.Udatas.size(); |
| 158 | this.Udatas.add( |
| 159 | new TablesData( |
| 160 | id, |
| 161 | extensionMethod, |
| 162 | requestMethod, |
| 163 | url, |
| 164 | statusCode, |
| 165 | issue, |
| 166 | startTime, |
| 167 | "", |
| 168 | requestResponse |
| 169 | ) |
| 170 | ); |
| 171 | fireTableRowsInserted(id, id); |
| 172 | return id; |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * 更新任务状态至任务栏面板 |
no test coverage detected