Skip to content

Commit 9ebeb8a

Browse files
committed
wip
1 parent 7d596b7 commit 9ebeb8a

File tree

6 files changed

+11
-228
lines changed

6 files changed

+11
-228
lines changed

wrapper/src/main/java/software/amazon/jdbc/util/CacheServiceImpl.java

-161
This file was deleted.

wrapper/src/main/java/software/amazon/jdbc/util/monitoring/Monitor.java

-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ public interface Monitor {
2626
boolean isStopped();
2727

2828
MonitorStatus getStatus();
29-
30-
MonitorException getException();
3129
}

wrapper/src/main/java/software/amazon/jdbc/util/monitoring/MonitorException.java

-41
This file was deleted.

wrapper/src/main/java/software/amazon/jdbc/util/monitoring/MonitorListener.java

-21
This file was deleted.

wrapper/src/main/java/software/amazon/jdbc/util/monitoring/MonitorStatus.java

+11
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616

1717
package software.amazon.jdbc.util.monitoring;
1818

19+
import org.checkerframework.checker.nullness.qual.Nullable;
20+
1921
public class MonitorStatus {
2022
private MonitorState state;
2123
private long lastUsedTimeNs;
24+
private @Nullable Throwable exception;
2225

2326
public MonitorStatus(MonitorState state, long lastUsedTimeNs) {
2427
this.state = state;
@@ -40,4 +43,12 @@ public long getLastUsedTimeNs() {
4043
public void setLastUsedTimeNs(long lastUsedTimeNs) {
4144
this.lastUsedTimeNs = lastUsedTimeNs;
4245
}
46+
47+
public @Nullable Throwable getException() {
48+
return this.exception;
49+
}
50+
51+
public void setException(@Nullable Throwable exception) {
52+
this.exception = exception;
53+
}
4354
}

wrapper/src/main/resources/aws_advanced_jdbc_wrapper_messages.properties

-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ AwsWrapperDataSource.missingJdbcProtocol=Missing JDBC protocol. Could not constr
5959
AwsWrapperDataSource.missingTarget=JDBC url or Server name is required.
6060
AwsWrapperDataSource.configurationProfileNotFound=Configuration profile ''{0}'' not found.
6161

62-
CacheServiceImpl.autoCreatedCache=A default cache for with type ''{0}'' was automatically created due to a call to set data in a non-existing cache.
63-
CacheServiceImpl.classMismatch=Mismatch between specified cache data class and actual class - [specified class: {0}, actual class: {1}, cacheName: {2}, key: {3}].
64-
6562
# Cluster Aware Reader Failover Handler
6663
ClusterAwareReaderFailoverHandler.interruptedThread=Thread was interrupted.
6764
ClusterAwareReaderFailoverHandler.attemptingReaderConnection=Trying to connect to host: ''{0}'', with properties ''{1}''

0 commit comments

Comments
 (0)