1- package org .phoebus .channelfinder .example ;
1+ package org .phoebus .channelfinder .configuration ;
22
33import co .elastic .clients .elasticsearch .ElasticsearchClient ;
44import co .elastic .clients .elasticsearch ._types .Refresh ;
2525import java .util .logging .Level ;
2626import java .util .logging .Logger ;
2727import java .util .stream .Collectors ;
28- import org .phoebus .channelfinder .ElasticConfig ;
2928import org .phoebus .channelfinder .entity .Channel ;
3029import org .phoebus .channelfinder .entity .Property ;
3130import org .phoebus .channelfinder .entity .Tag ;
5655 * @author Kunal Shroff
5756 */
5857@ Configuration
59- public class PopulateService {
58+ public class PopulateDBConfiguration {
6059
61- private static final Logger logger = Logger .getLogger (PopulateService .class .getName ());
60+ private static final Logger logger = Logger .getLogger (PopulateDBConfiguration .class .getName ());
6261 public static final String DEVICE_POWER_SUPPLY = "power supply" ;
6362 public static final String DEVICE_MAGNET = "magnet" ;
6463 public static final String UNIT_TEMP = "temperature" ;
@@ -843,7 +842,7 @@ private Collection<Channel> insertValves(
843842 "{" + "GV" + "}Opn-Sw" ,
844843 loc ,
845844 cell ,
846- PopulateService .ELEMENT_VACUUM ,
845+ PopulateDBConfiguration .ELEMENT_VACUUM ,
847846 "valve" ,
848847 "position" ,
849848 SIGTYPE_SWITCH ));
@@ -857,7 +856,7 @@ private Collection<Channel> insertValves(
857856 "{" + "GV" + "}Opn-St" ,
858857 loc ,
859858 cell ,
860- PopulateService .ELEMENT_VACUUM ,
859+ PopulateDBConfiguration .ELEMENT_VACUUM ,
861860 "valve" ,
862861 "position" ,
863862 SIGTYPE_STATUS ));
@@ -883,7 +882,7 @@ private Collection<Channel> insertGauges(
883882 "{" + dev + "}P-RB" ,
884883 loc ,
885884 cell ,
886- PopulateService .ELEMENT_VACUUM ,
885+ PopulateDBConfiguration .ELEMENT_VACUUM ,
887886 "gauge" ,
888887 "pressure" ,
889888 SIGTYPE_READBACK ));
@@ -897,7 +896,7 @@ private Collection<Channel> insertGauges(
897896 "{" + dev + OK_ST ,
898897 loc ,
899898 cell ,
900- PopulateService .ELEMENT_VACUUM ,
899+ PopulateDBConfiguration .ELEMENT_VACUUM ,
901900 "gauge" ,
902901 "error" ,
903902 SIGTYPE_STATUS ));
@@ -922,7 +921,7 @@ private Collection<Channel> insertPumps(
922921 "{" + dev + "}I-RB" ,
923922 loc ,
924923 cell ,
925- PopulateService .ELEMENT_VACUUM ,
924+ PopulateDBConfiguration .ELEMENT_VACUUM ,
926925 "pump" ,
927926 UNIT_CURRENT ,
928927 SIGTYPE_READBACK ));
@@ -936,7 +935,7 @@ private Collection<Channel> insertPumps(
936935 "{" + dev + "}P-RB" ,
937936 loc ,
938937 cell ,
939- PopulateService .ELEMENT_VACUUM ,
938+ PopulateDBConfiguration .ELEMENT_VACUUM ,
940939 "pump" ,
941940 "pressure" ,
942941 SIGTYPE_READBACK ));
@@ -950,7 +949,7 @@ private Collection<Channel> insertPumps(
950949 "{" + dev + "}On-Sw" ,
951950 loc ,
952951 cell ,
953- PopulateService .ELEMENT_VACUUM ,
952+ PopulateDBConfiguration .ELEMENT_VACUUM ,
954953 "pump" ,
955954 UNIT_POWER ,
956955 SIGTYPE_SWITCH ));
@@ -964,7 +963,7 @@ private Collection<Channel> insertPumps(
964963 "{" + dev + OK_ST ,
965964 loc ,
966965 cell ,
967- PopulateService .ELEMENT_VACUUM ,
966+ PopulateDBConfiguration .ELEMENT_VACUUM ,
968967 "pump" ,
969968 "error" ,
970969 SIGTYPE_STATUS ));
@@ -978,7 +977,7 @@ private Collection<Channel> insertPumps(
978977 "{" + dev + ON_ST ,
979978 loc ,
980979 cell ,
981- PopulateService .ELEMENT_VACUUM ,
980+ PopulateDBConfiguration .ELEMENT_VACUUM ,
982981 "pump" ,
983982 UNIT_POWER ,
984983 SIGTYPE_STATUS ));
0 commit comments