|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.tools.tasks.TaskTool
org.opends.server.tools.ImportLDIF
public class ImportLDIF
This program provides a utility that may be used to import the contents of an LDIF file into a Directory Server backend. This will be a process that is intended to run separate from Directory Server and not internally within the server process (e.g., via the tasks interface).
Field Summary | |
---|---|
static int |
LDIF_BUFFER_SIZE
The buffer size that should be used when reading data from LDIF. |
Fields inherited from class org.opends.server.tools.tasks.TaskTool |
---|
NOW |
Constructor Summary | |
---|---|
ImportLDIF()
|
Method Summary | |
---|---|
void |
addTaskAttributes(java.util.List<RawAttribute> attributes)
Adds utility specific attributes to attributes for
population of the entry that is added to the task backend. |
java.lang.Class |
getTaskClass()
Gets the Class that implements the utility to execute. |
java.lang.String |
getTaskObjectclass()
Gets the objectclass used to represent scheduled instances of this utility in the task backend. |
static void |
main(java.lang.String[] args)
The main method for ImportLDIF tool. |
static int |
mainImportLDIF(java.lang.String[] args)
Processes the command-line arguments and invokes the import process. |
static int |
mainImportLDIF(java.lang.String[] args,
boolean initializeServer,
java.io.OutputStream outStream,
java.io.OutputStream errStream)
Processes the command-line arguments and invokes the import process. |
protected int |
processLocal(boolean initializeServer,
java.io.PrintStream out,
java.io.PrintStream err)
Called when this utility should perform its actions locally in this JVM. |
Methods inherited from class org.opends.server.tools.tasks.TaskTool |
---|
createArgParser, getDependencyIds, getFailedDependencyAction, getNotifyUponCompletionEmailAddresses, getNotifyUponErrorEmailAddresses, getStartDateTime, process, validateTaskArgs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LDIF_BUFFER_SIZE
Constructor Detail |
---|
public ImportLDIF()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- The command-line arguments provided to this program.public static int mainImportLDIF(java.lang.String[] args)
args
- The command-line arguments provided to thisprogram.
public static int mainImportLDIF(java.lang.String[] args, boolean initializeServer, java.io.OutputStream outStream, java.io.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 void addTaskAttributes(java.util.List<RawAttribute> attributes)
attributes
for
population of the entry that is added to the task backend.
attributes
- that will be added to the task backendpublic java.lang.String getTaskObjectclass()
public java.lang.Class getTaskClass()
protected int processLocal(boolean initializeServer, java.io.PrintStream out, java.io.PrintStream err)
processLocal
in class TaskTool
initializeServer
- indicates whether or not 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 null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |