mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
50 lines
1.8 KiB
JSON
50 lines
1.8 KiB
JSON
{
|
|
"@context": [
|
|
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld",
|
|
"https://linkedsoftwaredependencies.org/bundles/npm/asynchronous-handlers/^1.0.0/components/context.jsonld"
|
|
],
|
|
"import": [
|
|
"css:config/app/main/general/templates.json",
|
|
"css:config/app/main/general/util.json"
|
|
],
|
|
"@graph": [
|
|
{
|
|
"comment": "This is the entry point to the application. It can be used to both start and stop the server.",
|
|
"@id": "urn:solid-server:default:App",
|
|
"@type": "App",
|
|
"initializer": { "@id": "urn:solid-server:default:Initializer" },
|
|
"finalizer": {
|
|
"comment": "Is executed when the server is stopped.",
|
|
"@type": "SequenceHandler",
|
|
"handlers": [
|
|
{ "@id": "urn:solid-server:default:Finalizer" },
|
|
{ "@id": "urn:solid-server:default:CleanupFinalizer" }
|
|
]
|
|
},
|
|
"clusterManager": {
|
|
"@id": "urn:solid-server:default:ClusterManager",
|
|
"@type": "ClusterManager",
|
|
"workers": { "@id": "urn:solid-server:default:variable:workers" }
|
|
}
|
|
},
|
|
{
|
|
"comment": "This is going to contain the list of finalizers that need to be called. These should be added in the configs where such classes are configured.",
|
|
"@id": "urn:solid-server:default:Finalizer",
|
|
"@type": "ParallelHandler",
|
|
"handlers": [
|
|
{
|
|
"@type": "FinalizableHandler",
|
|
"finalizable": { "@id": "urn:solid-server:default:ServerInitializer" }
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"comment": "Finalizers that need to cleanup once no more data will be written to the backend should be added here.",
|
|
"@id": "urn:solid-server:default:CleanupFinalizer",
|
|
"@type": "SequenceHandler",
|
|
"handlers": [
|
|
]
|
|
}
|
|
]
|
|
}
|