View Javadoc
1   package net.avcompris.status.dao;
2   
3   import java.io.IOException;
4   import java.sql.SQLException;
5   
6   import javax.annotation.Nullable;
7   
8   public interface StatusDao {
9   
10  	ServicesStatusHistoryDto getServicesCachedStatus(EndpointDto... endpoints) throws SQLException, IOException;
11  
12  	String initCheck( //
13  			String serviceId, //
14  			String endpoint //
15  	) throws SQLException, IOException;
16  
17  	void addCheckError( //
18  			String serviceId, //
19  			String endpoint, //
20  			@Nullable String checkId, //
21  			String errorMessage //
22  	) throws SQLException, IOException;
23  
24  	void endCheck( //
25  			String checkId, //
26  			int elapsedMs, //
27  			int statusCode //
28  	) throws SQLException, IOException;
29  
30  	CheckDto getCheck(String checkId) throws SQLException, IOException;
31  }