-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from hunteryavitz/54
stubbed out endpoint and service
- Loading branch information
Showing
65 changed files
with
1,201 additions
and
259 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +0,0 @@ | ||
### Get Production Payload | ||
|
||
```json | ||
|
||
{ | ||
"data": { | ||
"dataset1": [5, 13, 23, 24, 12, 8, 5, 0, 0, 0, 0, 0], | ||
"dataset2": [1, 1, 3, 2, 1, 1, 1, 0, 0, 0, 0, 0 ] | ||
} | ||
} | ||
``` | ||
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.0.16 | ||
0.0.17 |
31 changes: 31 additions & 0 deletions
31
src/main/java/com/hunteryavitz/blockchainapi/constants/AppConstants.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,31 @@ | ||
package com.hunteryavitz.blockchainapi.constants; | ||
|
||
import lombok.Getter; | ||
import org.springframework.beans.factory.annotation.Value; | ||
|
||
/** | ||
* Constants for the application. | ||
*/ | ||
public class AppConstants { | ||
|
||
/** | ||
* The node manager registry address. | ||
*/ | ||
@Value("${REGISTRY_ADDRESS}") | ||
@Getter | ||
private static String registryAddress; | ||
|
||
/** | ||
* The node certificate. | ||
*/ | ||
@Value("${CERTIFICATE}") | ||
@Getter | ||
private static String certificate; | ||
|
||
/** | ||
* The node port. | ||
*/ | ||
@Value("${PORT}") | ||
@Getter | ||
private static int port; | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/com/hunteryavitz/blockchainapi/constants/NodeStatus.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,32 @@ | ||
package com.hunteryavitz.blockchainapi.constants; | ||
|
||
/** | ||
* The NodeStatus enum represents the status of a node. | ||
*/ | ||
public enum NodeStatus { | ||
|
||
/** | ||
* The node is inactive. | ||
*/ | ||
INACTIVE, | ||
|
||
/** | ||
* The node is active. | ||
*/ | ||
ACTIVE, | ||
|
||
/** | ||
* The node is unresponsive. | ||
*/ | ||
UNRESPONSIVE, | ||
|
||
/** | ||
* The node is unregistered. | ||
*/ | ||
UNREGISTERED, | ||
|
||
/** | ||
* The node failed registration. | ||
*/ | ||
FAILED_REGISTRATION | ||
} |
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
Oops, something went wrong.