From f788607ff771a47bc60d6a86e00b3433c40f3d2c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 24 九月 2021 15:22:03 +0800 Subject: [PATCH] 接入视频直播 --- src/test/java/com/hxh/spring/test/Solr.java | 37 ++++++++++++++++++++++++++----------- 1 files changed, 26 insertions(+), 11 deletions(-) diff --git a/src/test/java/com/hxh/spring/test/Solr.java b/src/test/java/com/hxh/spring/test/Solr.java index 8188dc3..486c7c2 100644 --- a/src/test/java/com/hxh/spring/test/Solr.java +++ b/src/test/java/com/hxh/spring/test/Solr.java @@ -4,23 +4,38 @@ import java.util.List; import java.util.Map; +import com.xxl.job.core.biz.model.ReturnT; import org.junit.Test; import com.yeshi.buwan.util.SolrUtil; +import org.yeshi.utils.AppMarketUtil; +import org.yeshi.utils.LinuxRemoteCommandUtil; public class Solr { - @Test - public void test1() { - List<Long> videoTypeIds = new ArrayList<Long>(); - videoTypeIds.add(150L); - SolrUtil.getCategoryVideoList(1, "鏄ラ鍗侀噷", 1, videoTypeIds); - } + @Test + public void test1() { + List<Long> videoTypeIds = new ArrayList<Long>(); + videoTypeIds.add(150L); + SolrUtil.getCategoryVideoList(1, "鏄ラ鍗侀噷", 1, videoTypeIds); + } - @Test - public void test2() { - Map<String, Object> map = SolrUtil.getCategoryVideoList(1, "鎴戠殑鐖朵翰鎴戠殑鍏�", 1, null, "id desc"); - System.out.println(map); - } + @Test + public void test2() { + String solrIP = "203.195.196.115"; + String serverAccount = "root"; + String serverPwd = "Yeshi2016@"; + try { + LinuxRemoteCommandUtil.execute(solrIP, serverAccount, serverPwd, "/solr/solr-7.5.0/solr_restart.sh"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + + @Test + public void test3() { + SolrUtil.dataimportVideo(); + } } -- Gitblit v1.8.0