接口 ConnectorJarStorageStrategy
-
- 所有超级接口:
Serializable
- 所有已知实现类:
AbstractConnectorJarStorageStrategy,IsolatedConnectorJarStorageStrategy,SharedConnectorJarStorageStrategy
public interface ConnectorJarStorageStrategy extends Serializable
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleancheckConnectorJarExisted(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)Check whether the same connector Jar package exists in the zeta engine.voidcleanUpWhenJobFinished(long jobId, List<org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier> connectorJarIdentifierList)Carry out the cleaning work after the task is finished.voiddeleteConnectorJar(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)Delete the connector jar package by connectorJarIdentifier.voiddeleteConnectorJarInExecutionNode(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)Delete the connector jar package in execution node by connectorJarIdentifiervoiddeleteConnectorJarInternal(File storageLocation)Delete the connector jar package in the local file system by connectorJarIdentifier.org.apache.seatunnel.engine.core.job.ConnectorJarIdentifiergetConnectorJarIdentifier(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)Obtain the unique identifier of the connector jar.FilegetStorageLocation(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)Return the physical storage location of the connector jar.StringgetStorageLocationPath(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)Return the path for the connector jar.org.apache.seatunnel.engine.core.job.ConnectorJarIdentifierstorageConnectorJarFile(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- jobIdconnectorJar- 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 jarconnectorJar- 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 jarconnectorJar- 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 jarstorageLocation- 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 jarconnectorJar- 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 jarconnectorJar- 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 jarconnectorJarIdentifierList- List of all Jar package identifiers referenced by the current task
-
-