This commit is contained in:
Christopher Schnick
2022-12-01 11:58:06 +01:00
parent 778485b4a9
commit fa93d1c8e1
3 changed files with 4 additions and 38 deletions
@@ -15,7 +15,10 @@ public class MessageExchanges {
private static void loadAll() {
if (ALL == null) {
ALL = ServiceLoader.load(MessageExchange.class).stream()
.map(ServiceLoader.Provider::get)
.map(s -> {
var ex = (MessageExchange) s.get();
return ex;
})
.collect(Collectors.toSet());
}
}
@@ -1,36 +0,0 @@
package io.xpipe.beacon.exchange;
import io.xpipe.beacon.RequestMessage;
import io.xpipe.beacon.ResponseMessage;
import io.xpipe.core.source.DataSourceId;
import io.xpipe.core.store.DataStore;
import lombok.Builder;
import lombok.NonNull;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;
/**
* Sends stream-based data to a daemon.
*/
public class ReadExecuteExchange implements MessageExchange {
@Override
public String getId() {
return "readExecute";
}
@Jacksonized
@Builder
@Value
public static class Request implements RequestMessage {
@NonNull
DataStore dataStore;
DataSourceId target;
}
@Jacksonized
@Builder
@Value
public static class Response implements ResponseMessage {}
}
-1
View File
@@ -55,7 +55,6 @@ module io.xpipe.beacon {
SelectExchange,
ReadExchange,
QueryTextDataExchange,
ReadExecuteExchange,
ListStoresExchange,
DialogExchange,
QueryDataSourceExchange,