diff src/luan/host/Backup.java @ 1333:25746915a241

merge Luan and LuanState
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Feb 2019 22:33:40 -0700
parents f41919741100
children 8b61c8c4e07a
line wrap: on
line diff
--- a/src/luan/host/Backup.java	Tue Feb 12 21:50:26 2019 -0700
+++ b/src/luan/host/Backup.java	Tue Feb 12 22:33:40 2019 -0700
@@ -12,7 +12,7 @@
 import org.apache.lucene.index.SnapshotDeletionPolicy;
 import org.apache.lucene.index.IndexCommit;
 import org.apache.lucene.store.FSDirectory;
-import luan.LuanState;
+import luan.Luan;
 import luan.LuanTable;
 import luan.LuanException;
 import luan.modules.PackageLuan;
@@ -61,13 +61,13 @@
 		}
 		String fromPath = from.getCanonicalPath() + "/";
 		LuanTable luceneInstances;
-		LuanState luan = null;
+		Luan luan = null;
 		try {
 			if( WebHandler.isServing() ) {
 				luceneInstances = (LuanTable)WebHandler.runLuan( from.getName(), getLucenes, "getLucenes" );
 			} else {
-				luan = new LuanState();
-				luan.onClose = new LuanState.OnClose() {
+				luan = new Luan();
+				luan.onClose = new Luan.OnClose() {
 					private final List<Closeable> onClose = new ArrayList<Closeable>();
 
 					public void onClose(Closeable c) {