Interface DataStoreContext


  • public interface DataStoreContext
    Access to internals exposed for data store use only.
    Since:
    2.0.0
    • Method Detail

      • baseDirectory

        Path baseDirectory()
        Get the base data directory where the engine will store data and configuration.
        Returns:
        the base data directory
        Since:
        2.0.0
      • asyncExecutor

        Executor asyncExecutor()
        Access the engine's async executor that can be used to schedule tasks
        Returns:
        the executor
        Since:
        2.0.0
      • deserializeSubjectRef

        SubjectRef<?> deserializeSubjectRef​(String type,
                                            String identifier)
        Deserialize a subject reference given a type and identifier.
        Parameters:
        type - the subject type
        identifier - the subject identifier
        Returns:
        a resolved subject ref
      • lazySubjectRef

        SubjectRef<?> lazySubjectRef​(String type,
                                     String identifier)
        Create a subject ref that will only be resolved once data is queried.
        Parameters:
        type - the subject type
        identifier - the identifier
        Returns:
        a lazy subject reference
      • dataSourceForUrl

        @Deprecated
        DataSource dataSourceForUrl​(String url)
                             throws SQLException
        Deprecated.
        need to find a better place to put this
        Temporary -- create a pooled SQL datasource for a certain URL.
        Parameters:
        url - the URL to query
        Returns:
        a valid data source
        Throws:
        SQLException - if the connection is invalid
        Since:
        2.0.0