类 AbstractConnectorJarStorageStrategy
- java.lang.Object
-
- org.apache.seatunnel.engine.server.service.jar.AbstractConnectorJarStorageStrategy
-
- 所有已实现的接口:
Serializable,ConnectorJarStorageStrategy
public abstract class AbstractConnectorJarStorageStrategy extends Object implements ConnectorJarStorageStrategy
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static StringCOMMON_PLUGIN_JAR_STORAGE_PATHprotected static StringCONNECTOR_PLUGIN_JAR_STORAGE_PATHprotected org.apache.seatunnel.engine.common.config.server.ConnectorJarStorageConfigconnectorJarStorageConfigprotected static com.hazelcast.logging.ILoggerLOGGERprotected com.hazelcast.spi.impl.NodeEngineImplnodeEngineprotected SeaTunnelServerseaTunnelServerprotected StringstorageDir
-
构造器概要
构造器 构造器 说明 AbstractConnectorJarStorageStrategy(org.apache.seatunnel.engine.common.config.server.ConnectorJarStorageConfig connectorJarStorageConfig, SeaTunnelServer seaTunnelServer)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddeleteConnectorJarInExecutionNode(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)Delete the connector jar package in execution node by connectorJarIdentifiervoiddeleteConnectorJarInternal(File storageFile)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.Optional<Path>storageConnectorJarFileInternal(org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar, File storageFile)Storage the connector jar package file in the local file system.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.apache.seatunnel.engine.server.service.jar.ConnectorJarStorageStrategy
checkConnectorJarExisted, cleanUpWhenJobFinished, deleteConnectorJar, getStorageLocationPath, storageConnectorJarFile
-
-
-
-
字段详细资料
-
LOGGER
protected static final com.hazelcast.logging.ILogger LOGGER
-
COMMON_PLUGIN_JAR_STORAGE_PATH
protected static final String COMMON_PLUGIN_JAR_STORAGE_PATH
- 另请参阅:
- 常量字段值
-
CONNECTOR_PLUGIN_JAR_STORAGE_PATH
protected static final String CONNECTOR_PLUGIN_JAR_STORAGE_PATH
- 另请参阅:
- 常量字段值
-
storageDir
protected String storageDir
-
connectorJarStorageConfig
protected final org.apache.seatunnel.engine.common.config.server.ConnectorJarStorageConfig connectorJarStorageConfig
-
seaTunnelServer
protected final SeaTunnelServer seaTunnelServer
-
nodeEngine
protected final com.hazelcast.spi.impl.NodeEngineImpl nodeEngine
-
-
构造器详细资料
-
AbstractConnectorJarStorageStrategy
public AbstractConnectorJarStorageStrategy(org.apache.seatunnel.engine.common.config.server.ConnectorJarStorageConfig connectorJarStorageConfig, SeaTunnelServer seaTunnelServer)
-
-
方法详细资料
-
getStorageLocation
public File getStorageLocation(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)
从接口复制的说明:ConnectorJarStorageStrategyReturn the physical storage location of the connector jar.- 指定者:
getStorageLocation在接口中ConnectorJarStorageStrategy- 参数:
jobId- ID of the job for the connector jarconnectorJar- connector jar- 返回:
- the (designated) physical storage location of the connector jar
-
getConnectorJarIdentifier
public org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier getConnectorJarIdentifier(long jobId, org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar)从接口复制的说明:ConnectorJarStorageStrategyObtain the unique identifier of the connector jar.- 指定者:
getConnectorJarIdentifier在接口中ConnectorJarStorageStrategy- 参数:
jobId- ID of the job for the connector jarconnectorJar- connector jar- 返回:
- the unique identifier of the connector jar
-
storageConnectorJarFileInternal
public Optional<Path> storageConnectorJarFileInternal(org.apache.seatunnel.engine.core.job.ConnectorJar connectorJar, File storageFile)
从接口复制的说明:ConnectorJarStorageStrategyStorage the connector jar package file in the local file system.- 指定者:
storageConnectorJarFileInternal在接口中ConnectorJarStorageStrategy- 参数:
connectorJar- connector jarstorageFile- the storage location of the connector jar in the local file system- 返回:
- the storage path of connector jar file
-
deleteConnectorJarInternal
public void deleteConnectorJarInternal(File storageFile)
从接口复制的说明:ConnectorJarStorageStrategyDelete the connector jar package in the local file system by connectorJarIdentifier.- 指定者:
deleteConnectorJarInternal在接口中ConnectorJarStorageStrategy- 参数:
storageFile- the storage location of the connector jar
-
deleteConnectorJarInExecutionNode
public void deleteConnectorJarInExecutionNode(org.apache.seatunnel.engine.core.job.ConnectorJarIdentifier connectorJarIdentifier)
从接口复制的说明:ConnectorJarStorageStrategyDelete the connector jar package in execution node by connectorJarIdentifier- 指定者:
deleteConnectorJarInExecutionNode在接口中ConnectorJarStorageStrategy- 参数:
connectorJarIdentifier- the unique identifier of the connector jar.
-
-