-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) added redis test containers; 2) improved translation/caching
statistics
- Loading branch information
1 parent
14768b5
commit b666698
Showing
6 changed files
with
107 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...src/main/java/eu/europeana/api/translation/definitions/model/TranslationCachingStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package eu.europeana.api.translation.definitions.model; | ||
|
||
/** | ||
* The class for storing the translation and caching statistics | ||
*/ | ||
public class TranslationCachingStats { | ||
|
||
private int numLinesCached; | ||
private int numCharsCached; | ||
private int numLinesToBeTranslated; | ||
private int numCharsToBeTranslated; | ||
|
||
public int getNumLinesCached() { | ||
return numLinesCached; | ||
} | ||
public void setNumLinesCached(int numLinesCached) { | ||
this.numLinesCached = numLinesCached; | ||
} | ||
public int getNumCharsCached() { | ||
return numCharsCached; | ||
} | ||
public void setNumCharsCached(int numCharsCached) { | ||
this.numCharsCached = numCharsCached; | ||
} | ||
public int getNumLinesToBeTranslated() { | ||
return numLinesToBeTranslated; | ||
} | ||
public void setNumLinesToBeTranslated(int numLinesToBeTranslated) { | ||
this.numLinesToBeTranslated = numLinesToBeTranslated; | ||
} | ||
public int getNumCharsToBeTranslated() { | ||
return numCharsToBeTranslated; | ||
} | ||
public void setNumCharsToBeTranslated(int numCharsToBeTranslated) { | ||
this.numCharsToBeTranslated = numCharsToBeTranslated; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters