Skip to content

Commit

Permalink
kafka + sql storage variant, reusing streams variant datamodel (#1012)
Browse files Browse the repository at this point in the history
* kafka + sql storage variant, reusing streams variant datamodel

* ksql - integration tests

* fix streams storage
  • Loading branch information
famarting authored Nov 23, 2020
1 parent f4240cb commit 66105cf
Show file tree
Hide file tree
Showing 20 changed files with 696 additions and 685 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,18 @@ public class RegistryStorageProducer {
@Inject
Instance<RegistryStorage> storages;

@Inject
Instance<RegistryStorageProvider> provider;

@Produces
@ApplicationScoped
@Current
public RegistryStorage realImpl() {

if (provider.isResolvable()) {
return provider.get().storage();
}

List<RegistryStorage> list = storages.stream().collect(Collectors.toList());
RegistryStorage impl = null;
if (list.size() == 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.apicurio.registry.storage.impl.ksql;
package io.apicurio.registry.storage;

/**
* @author [email protected]
* @author Fabian Martinez
*/
public class TestTypes {

public static void main(String[] args) {
System.out.println(long.class);
System.out.println(Long.class);
System.out.println(Long.class == long.class);
System.out.println(Long.class.equals(long.class));
}
public interface RegistryStorageProvider {

RegistryStorage storage();

}
1 change: 1 addition & 0 deletions perftest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>3.4.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 66105cf

Please sign in to comment.