This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 293
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 #873 from zalando/ARUHA-1664-time-lag-stats
ARUHA-1664: Subscription time lag stats
- Loading branch information
Showing
22 changed files
with
476 additions
and
49 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
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
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
20 changes: 20 additions & 0 deletions
20
src/main/java/org/zalando/nakadi/exceptions/ErrorGettingCursorTimeLagException.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,20 @@ | ||
package org.zalando.nakadi.exceptions; | ||
|
||
import org.zalando.nakadi.domain.NakadiCursor; | ||
import org.zalando.nakadi.exceptions.runtime.MyNakadiRuntimeException1; | ||
|
||
public class ErrorGettingCursorTimeLagException extends MyNakadiRuntimeException1 { | ||
|
||
private final NakadiCursor failedCursor; | ||
|
||
public ErrorGettingCursorTimeLagException(final NakadiCursor failedCursor, | ||
final Throwable cause) { | ||
super("Error occurred when getting subscription time lag as as subscription cursor is wrong or expired: " + | ||
failedCursor.toString(), cause); | ||
this.failedCursor = failedCursor; | ||
} | ||
|
||
public NakadiCursor getFailedCursor() { | ||
return failedCursor; | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
src/main/java/org/zalando/nakadi/exceptions/runtime/LimitReachedException.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,9 @@ | ||
package org.zalando.nakadi.exceptions.runtime; | ||
|
||
public class LimitReachedException extends MyNakadiRuntimeException1 { | ||
|
||
public LimitReachedException(final String msg, final Throwable cause) { | ||
super(msg, cause); | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/org/zalando/nakadi/exceptions/runtime/TimeLagStatsTimeoutException.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,9 @@ | ||
package org.zalando.nakadi.exceptions.runtime; | ||
|
||
public class TimeLagStatsTimeoutException extends MyNakadiRuntimeException1 { | ||
|
||
public TimeLagStatsTimeoutException(final String msg, final Throwable cause) { | ||
super(msg, cause); | ||
} | ||
|
||
} |
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
Oops, something went wrong.