forked from eclipse-hono/hono-extras
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- handle commands and configs - use pubsub as internal message - updating db for device configs Signed-off-by: Georgios Dimitropoulos <[email protected]>
- Loading branch information
1 parent
c01bccb
commit c97a44d
Showing
32 changed files
with
1,818 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...ommunication/src/main/java/org/eclipse/hono/communication/api/config/PubSubConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* *********************************************************** | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* <p> | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* <p> | ||
* 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 | ||
* <p> | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* ********************************************************** | ||
* | ||
*/ | ||
|
||
package org.eclipse.hono.communication.api.config; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Constant values for PubSub. | ||
*/ | ||
public final class PubSubConstants { | ||
|
||
public static final String TENANT_NOTIFICATIONS = "registry-tenant.notification"; | ||
public static final String TELEMETRY_ENDPOINT = "telemetry"; | ||
public static final String EVENT_ENDPOINT = "event"; | ||
public static final String EVENT_STATES_SUBTOPIC_ENDPOINT = "event.state"; | ||
public static final String COMMAND_ENDPOINT = "command"; | ||
public static final String COMMAND_RESPONSE_ENDPOINT = "command_response"; | ||
|
||
private PubSubConstants() { | ||
} | ||
|
||
/** | ||
* Gets the list of all topics need to be created per tenant. | ||
* | ||
* @return List of all topics. | ||
*/ | ||
public static List<String> getTenantTopics() { | ||
return List.of(EVENT_ENDPOINT, | ||
COMMAND_ENDPOINT, | ||
COMMAND_RESPONSE_ENDPOINT, | ||
EVENT_STATES_SUBTOPIC_ENDPOINT, | ||
TELEMETRY_ENDPOINT); | ||
} | ||
} |
Oops, something went wrong.