-
Notifications
You must be signed in to change notification settings - Fork 214
/
ThingsSearchConstants.java
64 lines (53 loc) · 1.64 KB
/
ThingsSearchConstants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Copyright (c) 2017 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.eclipse.ditto.thingsearch.api;
import javax.annotation.concurrent.Immutable;
/**
* Constants for the Things-Search .
*/
@Immutable
public final class ThingsSearchConstants {
/**
* Name of the shard region for Things-Search updater.
*/
public static final String SHARD_REGION = "search-wildcard-updater";
/**
* Name of the pekko cluster role.
*/
public static final String CLUSTER_ROLE = "search";
private static final String PATH_DELIMITER = "/";
@SuppressWarnings("squid:S1075")
private static final String USER_PATH = "/user";
/**
* Name of the search actor.
*/
public static final String ROOT_ACTOR_NAME = "thingsWildcardSearchRoot";
/**
* Path of the root actor.
*/
public static final String ROOT_ACTOR_PATH = USER_PATH + PATH_DELIMITER + ROOT_ACTOR_NAME;
/**
* Name of the search actor.
*/
public static final String SEARCH_ACTOR_NAME = "thingsSearch";
/**
* Path of the search actor.
*/
public static final String SEARCH_ACTOR_PATH = ROOT_ACTOR_PATH + PATH_DELIMITER + SEARCH_ACTOR_NAME;
/*
* Inhibit instantiation of this utility class.
*/
private ThingsSearchConstants() {
// no-op
}
}