接口 ConnectorJarStorageStrategy

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      boolean checkConnectorJarExisted​(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
      Check whether the same connector Jar package exists in the zeta engine.
      void cleanUpWhenJobFinished​(long jobId, List<org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier> connectorJarIdentifierList)
      Carry out the cleaning work after the task is finished.
      void deleteConnectorJar​(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)
      Delete the connector jar package by connectorJarIdentifier.
      void deleteConnectorJarInExecutionNode​(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)
      Delete the connector jar package in execution node by connectorJarIdentifier
      void deleteConnectorJarInternal​(File storageLocation)
      Delete the connector jar package in the local file system by connectorJarIdentifier.
      org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier getConnectorJarIdentifier​(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
      Obtain the unique identifier of the connector jar.
      File getStorageLocation​(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
      Return the physical storage location of the connector jar.
      String getStorageLocationPath​(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
      Return the path for the connector jar.
      org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier storageConnectorJarFile​(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
      Storage the connector jar package file.
      Optional<Path> storageConnectorJarFileInternal​(org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar, File storageLocation)
      Storage the connector jar package file in the local file system.
    • 方法详细资料

      • getStorageLocationPath

        String getStorageLocationPath​(long jobId,
                                      org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
        Return the path for the connector jar.
        参数:
        jobId - jobId
        connectorJar - connectorJar
        返回:
        the storage path of connector jar
      • getStorageLocation

        File getStorageLocation​(long jobId,
                                org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
        Return the physical storage location of the connector jar.
        参数:
        jobId - ID of the job for the connector jar
        connectorJar - connector jar
        返回:
        the (designated) physical storage location of the connector jar
      • storageConnectorJarFile

        org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier storageConnectorJarFile​(long jobId,
                                                                                            org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
        Storage the connector jar package file.
        参数:
        jobId - ID of the job for the connector jar
        connectorJar - connector jar
        返回:
        the storage path of connector jar file
      • storageConnectorJarFileInternal

        Optional<Path> storageConnectorJarFileInternal​(org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar,
                                                       File storageLocation)
        Storage the connector jar package file in the local file system.
        参数:
        connectorJar - connector jar
        storageLocation - the storage location of the connector jar in the local file system
        返回:
        the storage path of connector jar file
      • checkConnectorJarExisted

        boolean checkConnectorJarExisted​(long jobId,
                                         org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
        Check whether the same connector Jar package exists in the zeta engine.
        参数:
        jobId - ID of the job for the connector jar
        connectorJar - connector jar
        返回:
        true if the same connector Jar package exists in the engine, otherwise false
      • getConnectorJarIdentifier

        org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier getConnectorJarIdentifier​(long jobId,
                                                                                              org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
        Obtain the unique identifier of the connector jar.
        参数:
        jobId - ID of the job for the connector jar
        connectorJar - connector jar
        返回:
        the unique identifier of the connector jar
      • deleteConnectorJar

        void deleteConnectorJar​(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)
        Delete the connector jar package by connectorJarIdentifier.
        参数:
        connectorJarIdentifier - the unique identifier of the connector jar.
      • deleteConnectorJarInExecutionNode

        void deleteConnectorJarInExecutionNode​(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)
        Delete the connector jar package in execution node by connectorJarIdentifier
        参数:
        connectorJarIdentifier - the unique identifier of the connector jar.
      • deleteConnectorJarInternal

        void deleteConnectorJarInternal​(File storageLocation)
        Delete the connector jar package in the local file system by connectorJarIdentifier.
        参数:
        storageLocation - the storage location of the connector jar
      • cleanUpWhenJobFinished

        void cleanUpWhenJobFinished​(long jobId,
                                    List<org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier> connectorJarIdentifierList)
        Carry out the cleaning work after the task is finished.
        参数:
        jobId - ID of the job for the connector jar
        connectorJarIdentifierList - List of all Jar package identifiers referenced by the current task