Package com.nimbusds.ldapsync.console
Class SyncAgentConsoleApp
- java.lang.Object
-
- com.nimbusds.ldapsync.console.SyncAgentConsoleApp
-
- All Implemented Interfaces:
SyncTaskEventListener,EventListener
public class SyncAgentConsoleApp extends Object implements SyncTaskEventListener
Console application that runs theSyncTaskfrom the command line.The
configuration parametersare passed in a Java properties file:- by specifying the properties filename as a command line argument, or
- by piping the file through the standard input (STDIN).
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXECUTABLE_JAR_NAMEThe executable JAR name.
-
Constructor Summary
Constructors Constructor Description SyncAgentConsoleApp(Properties props)Creates a new Sync Agent console application.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)The main entry point to the console application.voidnotify(SyncTaskEvent event)Reports a synchronisation task event.
-
-
-
Field Detail
-
EXECUTABLE_JAR_NAME
public static final String EXECUTABLE_JAR_NAME
The executable JAR name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SyncAgentConsoleApp
public SyncAgentConsoleApp(Properties props) throws com.thetransactioncompany.util.PropertyParseException
Creates a new Sync Agent console application.- Parameters:
props- The configuration properties, seeConfiguration.- Throws:
com.thetransactioncompany.util.PropertyParseException- On a missing or invalid configuration property.
-
-
Method Detail
-
notify
public void notify(SyncTaskEvent event)
Description copied from interface:SyncTaskEventListenerReports a synchronisation task event.- Specified by:
notifyin interfaceSyncTaskEventListener- Parameters:
event- The event object.
-
main
public static void main(String[] args)
The main entry point to the console application. The Java properties configuration can be passed either by supplying its filename as a command line argument or by piping its content through standard input.- Parameters:
args- The command line arguments.
-
-