Skip to content

Commit

Permalink
gh-2630 PR requests
Browse files Browse the repository at this point in the history
  • Loading branch information
GCHQDev404 committed Oct 24, 2022
1 parent 8ffd5c7 commit 31574a0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#
gaffer.store.class=uk.gov.gchq.gaffer.federatedstore.FederatedStore
gaffer.cache.service.class=uk.gov.gchq.gaffer.cache.impl.JcsCacheService
gaffer.store.operation.declarations=./operationDeclarations.json
gaffer.store.operation.declarations=./operationDeclarations.json
8 changes: 7 additions & 1 deletion example/real-federated-store/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 Crown Copyright
Copyright 2022-2022 Crown Copyright

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -14,6 +14,12 @@ limitations under the License.

Real FederatedStore Example
=============
This example uses a simple shell script that can build the Gaffer project, gathers
default config files (federatedStore.properties, graphConfig.json, OperationDeclarations.json, schema.json)
and an executable Gaffer Spring REST API. The REST API is then started backed by a real FederatedStore from the current config files.
Users can change these local config files, target/indexed-disk-cache and then reboot the REST API.
The script will keep users changes to config files, it will only re-gather deleted/missing files.
This should give a good foundation for users to learn how to configure, interact and launch a real FederatedStore.

## Deployment
This example does not start or configure a real accumulo cluster. Without you having access to an Accumulo cluster you will not be able to use a Gaffer Accumulo Store.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env bash
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d @../json-operation-examples/operation_getAllElements.json 'http://localhost:8080/rest/graph/operations/execute'
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env bash
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d @../json-operation-examples/operation_getAllGraphIds.json 'http://localhost:8080/rest/graph/operations/execute'
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env bash
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d @../json-operation-examples/operation_getSchema.json 'http://localhost:8080/rest/graph/operations/execute'
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '
{
"class":"getSchema"
Expand Down

0 comments on commit 31574a0

Please sign in to comment.