public class ImportLDIF extends TaskTool
Modifier and Type | Method and Description |
---|---|
void |
addTaskAttributes(List<RawAttribute> attributes)
Adds utility specific attributes to
attributes for
population of the entry that is added to the task backend. |
protected void |
cleanup()
Cleanup task environment after offline run.
|
Class<?> |
getTaskClass()
Gets the Class that implements the utility to execute.
|
String |
getTaskId()
Gets an arbitrary task id assigned to this task.
|
String |
getTaskObjectclass()
Gets the objectclass used to represent scheduled instances of this
utility in the task backend.
|
protected boolean |
isEmbedded()
Returns
true if the tool is running in embedded mode. |
static void |
main(String[] args)
The main method for ImportLDIF tool.
|
static int |
mainEmbeddedOffline(String[] args,
boolean initializeServer)
Run the import-ldif tool in embedded mode.
|
static int |
mainImportLDIF(String[] args,
boolean initializeServer,
OutputStream outStream,
OutputStream errStream)
Processes the command-line arguments and invokes the import process.
|
protected int |
processLocal(boolean initializeServer,
PrintStream out,
PrintStream err)
Called when this utility should perform its actions locally in this
JVM.
|
checkVersion, createArgParser, getDependencyIds, getFailedDependencyAction, getNotifyUponCompletionEmailAddresses, getNotifyUponErrorEmailAddresses, getRecurringDateTime, getStartDateTime, process, runOffline, validateTaskArgs
public static void main(String[] args)
args
- The command-line arguments provided to this program.public static int mainImportLDIF(String[] args, boolean initializeServer, OutputStream outStream, OutputStream errStream)
args
- The command-line arguments provided to this
program.initializeServer
- Indicates whether to initialize the server.outStream
- The output stream to use for standard output, or
null
if standard output is not needed.errStream
- The output stream to use for standard error, or
null
if standard error is not needed.public static int mainEmbeddedOffline(String[] args, boolean initializeServer)
Embedded mode will not perform any modification to the running JVM JDK logging configuration.
args
- The command-line arguments provided to this program.initializeServer
- Indicates whether to initialize the server.public void addTaskAttributes(List<RawAttribute> attributes)
TaskScheduleInformation
attributes
for
population of the entry that is added to the task backend.attributes
- that will be added to the task backendpublic String getTaskObjectclass()
TaskScheduleInformation
public Class<?> getTaskClass()
TaskScheduleInformation
protected int processLocal(boolean initializeServer, PrintStream out, PrintStream err)
TaskTool
processLocal
in class TaskTool
initializeServer
- indicates whether to initialize the
directory server in the case of a local actionout
- stream to write messages; may be nullerr
- stream to write messages; may be nullprotected void cleanup()
TaskTool
public String getTaskId()
TaskScheduleInformation
null
otherwise.protected boolean isEmbedded()
TaskTool
true
if the tool is running in embedded mode.
Embedded mode would not change JDK logging configuration and will used running jvm slf4j loggers implementation
isEmbedded
in class TaskTool
true
if the tool is running in embedded mode.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.