@ThreadSafe public final class LineageMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>
mAddress, mClosed, mConnected, mProtocol, mServiceVersion
Constructor and Description |
---|
LineageMasterClient(MasterClientConfig conf)
Creates a new lineage master client.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
long |
createLineage(List<String> inputFiles,
List<String> outputFiles,
CommandLineJob job)
Creates a lineage.
|
boolean |
deleteLineage(long lineageId,
boolean cascade)
Deletes a lineage.
|
protected AlluxioService.Client |
getClient() |
List<LineageInfo> |
getLineageInfoList()
Retrieves the list of lineage information.
|
protected String |
getServiceName() |
protected long |
getServiceVersion() |
long |
reinitializeFile(String path,
long blockSizeBytes,
long ttl,
TtlAction ttlAction)
Reinitializates a given file.
|
void |
reportLostFile(String path)
Reports a file as lost.
|
getAddress
afterDisconnect, beforeDisconnect, checkVersion, close, connect, disconnect, isConnected, retryRPC, retryRPC
public LineageMasterClient(MasterClientConfig conf)
conf
- master client configurationprotected AlluxioService.Client getClient()
getClient
in class AbstractClient
protected String getServiceName()
getServiceName
in class AbstractClient
protected long getServiceVersion()
getServiceVersion
in class AbstractClient
protected void afterConnect()
AbstractClient
afterConnect
in class AbstractClient
public long createLineage(List<String> inputFiles, List<String> outputFiles, CommandLineJob job) throws IOException
inputFiles
- the list of input file namesoutputFiles
- the list of output file namesjob
- the job used for the creationIOException
public boolean deleteLineage(long lineageId, boolean cascade) throws IOException
lineageId
- the id of the lineagecascade
- true if the deletion is cascading, false otherwiseIOException
public long reinitializeFile(String path, long blockSizeBytes, long ttl, TtlAction ttlAction) throws IOException
path
- the path to the fileblockSizeBytes
- the size of the block in bytesttl
- the time to live for the filettlAction
- Action to take after Ttl expiryIOException
public List<LineageInfo> getLineageInfoList() throws IOException
IOException
public void reportLostFile(String path) throws IOException
path
- the path to the lost fileIOException
Copyright © 2023. All Rights Reserved.