类 SharedConnectorJarStorageStrategy

    • 构造器详细资料

      • SharedConnectorJarStorageStrategy

        public SharedConnectorJarStorageStrategy​(org.apache.seatunnel.engine.common.config.server.ConnectorJarStorageConfig connectorJarStorageConfig,
                                                 SeaTunnelServer seaTunnelServer)
    • 方法详细资料

      • storageConnectorJarFile

        public org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier storageConnectorJarFile​(long jobId,
                                                                                                   org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
        从接口复制的说明: ConnectorJarStorageStrategy
        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
      • checkConnectorJarExisted

        public boolean checkConnectorJarExisted​(long jobId,
                                                org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
        从接口复制的说明: ConnectorJarStorageStrategy
        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
      • increaseRefCountForConnectorJar

        public void increaseRefCountForConnectorJar​(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)
      • deleteConnectorJar

        public void deleteConnectorJar​(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)
        从接口复制的说明: ConnectorJarStorageStrategy
        Delete the connector jar package by connectorJarIdentifier.
        参数:
        connectorJarIdentifier - the unique identifier of the connector jar.
      • getStorageLocationPath

        public String getStorageLocationPath​(long jobId,
                                             org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
        从接口复制的说明: ConnectorJarStorageStrategy
        Return the path for the connector jar.
        参数:
        jobId - jobId
        connectorJar - connectorJar
        返回:
        the storage path of connector jar
      • cleanUpWhenJobFinished

        public void cleanUpWhenJobFinished​(long jobId,
                                           List<org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier> connectorJarIdentifierList)
        从接口复制的说明: ConnectorJarStorageStrategy
        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
      • decreaseConnectorJarRefCount

        public void decreaseConnectorJarRefCount​(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)