[LIB-13] Lazy scanners init, scan by URL and rename API functions
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / Scanner.java
index 0192f2b..2c6095a 100644 (file)
@@ -26,12 +26,14 @@ import org.hedgecode.chess.scanner.entity.PGNTournament;
  */
 public interface Scanner {
 
-    PGNTournament getTournament(String tournamentId) throws ChessHogScannerException;
+    PGNTournament scanTournament(String tournamentId) throws ChessHogScannerException;
 
     PGNTournament findTournament(String tournamentName) throws ChessHogScannerException;
 
-    PGNGame getGame(String gameId) throws ChessHogScannerException;
+    PGNGame scanGame(String gameId) throws ChessHogScannerException;
 
-    PGNGame getGame(String gameId, String tournamentId) throws ChessHogScannerException;
+    PGNGame scanGame(String gameId, String tournamentId) throws ChessHogScannerException;
+
+    PGNGame scanUrl(String gameUrl) throws ChessHogScannerException;
 
 }