-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1114 from yahoo/cache-logs
logging for cache put failures
- Loading branch information
Showing
8 changed files
with
146 additions
and
2 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
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
32 changes: 32 additions & 0 deletions
32
fili-core/src/main/java/com/yahoo/bard/webservice/logging/blocks/BardCacheInfo.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,32 @@ | ||
// Copyright 2016 Yahoo Inc. | ||
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms. | ||
// | ||
package com.yahoo.bard.webservice.logging.blocks; | ||
|
||
import com.yahoo.bard.webservice.logging.LogInfo; | ||
|
||
|
||
import com.fasterxml.jackson.annotation.JsonAutoDetect; | ||
|
||
/** | ||
* Log that keep tracks for cache set failures. | ||
*/ | ||
@JsonAutoDetect(getterVisibility = JsonAutoDetect.Visibility.PUBLIC_ONLY) | ||
public class BardCacheInfo implements LogInfo { | ||
String cacheKeyCksum; | ||
int cacheKeyLength; | ||
int cacheValLength; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param cacheKeyLength The Length of the cache key | ||
* @param cacheKeyCksum The cache Key MD5 checksum value | ||
* @param cacheValLength The cache value length | ||
*/ | ||
public BardCacheInfo(int cacheKeyLength, String cacheKeyCksum, int cacheValLength) { | ||
this.cacheKeyLength = cacheKeyLength; | ||
this.cacheKeyCksum = cacheKeyCksum; | ||
this.cacheValLength = cacheValLength; | ||
} | ||
} |
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
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