Skip to content

Commit 5f38c94

Browse files
authored
Merge pull request #3148 from ControlSystemStudio/ditch-jersey-client
Ditch jersey client
2 parents 323b72e + 37b108d commit 5f38c94

File tree

11 files changed

+1260
-785
lines changed

11 files changed

+1260
-785
lines changed

app/save-and-restore/app/pom.xml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
<artifactId>save-and-restore</artifactId>
1111

12+
<properties>
13+
<skipITs>true</skipITs>
14+
</properties>
15+
1216
<dependencies>
1317

1418
<dependency>
@@ -43,18 +47,6 @@
4347
<version>${jgit.version}</version>
4448
</dependency>
4549

46-
47-
<dependency>
48-
<groupId>com.sun.jersey</groupId>
49-
<artifactId>jersey-core</artifactId>
50-
<version>1.19</version>
51-
</dependency>
52-
<dependency>
53-
<groupId>com.sun.jersey</groupId>
54-
<artifactId>jersey-client</artifactId>
55-
<version>1.19</version>
56-
</dependency>
57-
5850
<dependency>
5951
<groupId>com.fasterxml.jackson.jaxrs</groupId>
6052
<artifactId>jackson-jaxrs-json-provider</artifactId>
@@ -96,5 +88,24 @@
9688
</includes>
9789
</resource>
9890
</resources>
91+
<plugins>
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-surefire-plugin</artifactId>
95+
<version>3.2.5</version>
96+
</plugin>
97+
<!-- use self-contained integration tests - org.phoebus.olog.docker -->
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-failsafe-plugin</artifactId>
101+
<version>3.2.5</version>
102+
<configuration>
103+
<skipITs>${skipITs}</skipITs>
104+
<includes>
105+
<include>**/*IT.java</include>
106+
</includes>
107+
</configuration>
108+
</plugin>
109+
</plugins>
99110
</build>
100111
</project>

app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/client/SaveAndRestoreClient.java

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ public interface SaveAndRestoreClient {
5555
List<SnapshotItem> getCompositeSnapshotItems(String uniqueNodeId);
5656

5757
/**
58-
* @param unqiueNodeId Unique id of a {@link Node}
58+
* @param uniqueNodeId Unique id of a {@link Node}
5959
* @return The parent {@link Node} of the specified id. May be null if the unique id is associated with the root
6060
* {@link Node}
6161
*/
62-
Node getParentNode(String unqiueNodeId);
62+
Node getParentNode(String uniqueNodeId);
6363

6464
/**
6565
* @param uniqueNodeId Id of an existing {@link Node}
@@ -107,10 +107,6 @@ public interface SaveAndRestoreClient {
107107
*/
108108
List<Tag> getAllTags();
109109

110-
/**
111-
* @return All snapshot {@link Node}s persisted on the remote service
112-
*/
113-
List<Node> getAllSnapshots();
114110

115111
/**
116112
* Move a set of {@link Node}s to a new parent {@link Node}
@@ -130,10 +126,13 @@ public interface SaveAndRestoreClient {
130126
*/
131127
Node copyNodes(List<String> sourceNodeIds, String targetNodeId);
132128

129+
/**
130+
* Constructs a path like string to facilitate location of a {@link Node} in the tree structure.
131+
* @param uniqueNodeId Unique id
132+
* @return Path like /Root folder/foo/bar/my/favourite/node
133+
*/
133134
String getFullPath(String uniqueNodeId);
134135

135-
List<Node> getFromPath(String path);
136-
137136
ConfigurationData getConfigurationData(String nodeId);
138137

139138
/**
@@ -151,6 +150,12 @@ public interface SaveAndRestoreClient {
151150

152151
SnapshotData getSnapshotData(String uniqueId);
153152

153+
/**
154+
* Creates a {@link Snapshot}
155+
* @param parentNodeId The unique id of the configuration {@link Node} associated with the {@link Snapshot}
156+
* @param snapshot The {@link Snapshot} data object.
157+
* @return The new {@link Snapshot} as persisted by the service
158+
*/
154159
Snapshot createSnapshot(String parentNodeId, Snapshot snapshot);
155160

156161
Snapshot updateSnapshot(Snapshot snapshot);

0 commit comments

Comments
 (0)