diff src/goodjava/lucene/backup/BackupServer.java @ 2022:969291201e12

ping lucene backups
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 20 Oct 2025 17:25:47 -0600
parents 2dbcc8360a3e
children
line wrap: on
line diff
--- a/src/goodjava/lucene/backup/BackupServer.java	Mon Oct 20 14:45:27 2025 -0600
+++ b/src/goodjava/lucene/backup/BackupServer.java	Mon Oct 20 17:25:47 2025 -0600
@@ -161,7 +161,7 @@
 
 	// for client
 
-	public static RpcClient rpcClient(String backupDomain) throws IOException {
+	static Socket clientSocket(String backupDomain) throws IOException {
 		Socket socket;
 		if( BackupServer.cipherSuites == null ) {
 			socket = new Socket(backupDomain,BackupServer.port);
@@ -169,6 +169,11 @@
 			socket = IoUtils.getSSLSocketFactory().createSocket(backupDomain,BackupServer.port);
 			((SSLSocket)socket).setEnabledCipherSuites(BackupServer.cipherSuites);
 		}
+		return socket;
+	}
+
+	public static RpcClient rpcClient(String backupDomain) throws IOException {
+		Socket socket = clientSocket(backupDomain);
 		return new RpcClient(socket);
 	}