Skip to content

Commit 81149c3

Browse files
author
Myron Scott
committed
remove WarningHandler
1 parent 4275839 commit 81149c3

File tree

6 files changed

+0
-122
lines changed

6 files changed

+0
-122
lines changed

dso-l2/src/main/java/com/tc/l2/logging/WarningAppender.java

Lines changed: 0 additions & 33 deletions
This file was deleted.

dso-l2/src/main/java/com/tc/objectserver/impl/DistributedObjectServer.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,6 @@
236236
import static com.tc.spi.Guardian.Op.SERVER_EXIT;
237237
import com.tc.spi.NetworkTranslator;
238238
import com.tc.spi.ProductCapabilities;
239-
import com.tc.spi.WarningDescription;
240-
import com.tc.spi.WarningHandler;
241239
import org.terracotta.configuration.Configuration;
242240
import org.terracotta.configuration.ServerConfiguration;
243241
import java.net.InetSocketAddress;
@@ -289,8 +287,6 @@ public class DistributedObjectServer {
289287
private WeightGeneratorFactory globalWeightGeneratorFactory;
290288
private EntityManagerImpl entityManager;
291289

292-
private WarningHandler handleWarnings;
293-
294290
// used by a test
295291
public DistributedObjectServer(ServerConfigurationManager configSetupManager, TCThreadGroup threadGroup,
296292
ConnectionPolicy connectionPolicy, TCServerInfoMBean tcServerInfoMBean) {
@@ -395,7 +391,6 @@ public void dumpOnExit() {
395391
// this is on exit so do not guard
396392
String clusterState = new String(getClusterState(Charset.defaultCharset(), null), Charset.defaultCharset());
397393
TCLogging.getDumpLogger().info(clusterState);
398-
warning("dump on exit");
399394
}
400395

401396
private void addExtendedConfigState(PrettyPrinter prettyPrinter) {
@@ -486,11 +481,6 @@ public synchronized void start() throws IOException, LocationNotCreatedException
486481
serviceRegistry.registerExternal(nullPlatformStorageServiceProvider);
487482
}
488483

489-
try {
490-
this.handleWarnings = this.serviceRegistry.subRegistry(0).getService(new BasicServiceConfiguration<>(WarningHandler.class));
491-
} catch (ServiceException se) {
492-
493-
}
494484
// We want to register our IMonitoringProducer shim.
495485
// (note that it requires a PlatformServer instance of THIS server).
496486
String hostAddress = "";
@@ -1273,21 +1263,4 @@ public CommunicationsManager getCommunicationsManager() {
12731263
public Persistor getPersistor() {
12741264
return persistor;
12751265
}
1276-
1277-
public void warning(Object description) {
1278-
if (handleWarnings != null) {
1279-
handleWarnings.warning(new WarningDescription() {
1280-
@Override
1281-
public String getCause() {
1282-
return description.toString();
1283-
}
1284-
1285-
@Override
1286-
public String getClusterDump() {
1287-
String clusterState = new String(getClusterState(Charset.defaultCharset(), null), Charset.defaultCharset());
1288-
return clusterState;
1289-
}
1290-
});
1291-
}
1292-
}
12931266
}

dso-l2/src/main/java/com/tc/server/TCServer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,4 @@ public interface TCServer extends Pauseable {
8383
void reloadConfiguration() throws ConfigurationSetupException;
8484

8585
String getClusterState(PrettyPrinter form);
86-
87-
void warn(Object event);
8886
}

dso-l2/src/main/java/com/tc/server/TCServerImpl.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,4 @@ public void unpause(String path) {
497497
public void stageWarning(Object description) {
498498
super.stageWarning(description);
499499
}
500-
501-
@Override
502-
public void warn(Object event) {
503-
if (dsoServer != null) {
504-
dsoServer.warning(event);
505-
}
506-
}
507500
}

server-spi/src/main/java/com/tc/spi/WarningDescription.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

server-spi/src/main/java/com/tc/spi/WarningHandler.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)