public class FileNameIndexUtils extends Object
Constructor and Description |
---|
FileNameIndexUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
decodeJobHistoryFileName(String logFileName)
Helper function to decode the URL of the filename of the job-history
log file.
|
static String |
encodeJobHistoryFileName(String logFileName)
Helper function to encode the URL of the filename of the job-history
log file.
|
static String |
getDoneFileName(JobIndexInfo indexInfo)
Constructs the job history file name from the JobIndexInfo.
|
static String |
getDoneFileName(JobIndexInfo indexInfo,
int jobNameLimit) |
static JobIndexInfo |
getIndexInfo(String jhFileName)
Parses the provided job history file name to construct a
JobIndexInfo object which is returned.
|
public static String getDoneFileName(JobIndexInfo indexInfo) throws IOException
indexInfo
- the index info.IOException
public static String getDoneFileName(JobIndexInfo indexInfo, int jobNameLimit) throws IOException
IOException
public static JobIndexInfo getIndexInfo(String jhFileName) throws IOException
jhFileName
- the job history filename.IOException
public static String encodeJobHistoryFileName(String logFileName) throws IOException
logFileName
- file name of the job-history fileIOException
public static String decodeJobHistoryFileName(String logFileName) throws IOException
logFileName
- file name of the job-history fileIOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.