Package com.nt.udc.ndk.node
Class LDAPLoader
java.lang.Object
com.nt.udc.ndk.node.LDAPLoader
- All Implemented Interfaces:
EPFileLoader
,Runnable
FileLoader for LDAP lookup
-
Constructor Summary
ConstructorsConstructorDescriptionLDAPLoader
(LDAPLoaderConfig ldConfig) Creates an LDAPLoader object using the given loader config object.LDAPLoader
(LDAPLoaderConfig ldConfig, String filePath) Creates an LDAPLoader object using the given loader config object, and the specified output file. -
Method Summary
Modifier and TypeMethodDescriptionAllows inquisition on the file to which this loader is writing data.getKey()
This method returns a string key which can be used inside an NPL program to address the "table" which will be holding the data provided by this loader, e.g.Allows inquisition on the EPFileLoaderConfig which configures this loader.boolean
Used to help determine the health of the node using this loader.static void
void
run()
void
setFilePath
(String filePath) This method is called by the user of the loader object which implements EPFileLoader to specify the file where the loader will write its data using the enhancer file format.void
setLoaderConfig
(EPFileLoaderConfig loaderConfig) User of the loader object will call this method to specify an EPFileLoaderConfig which will know how to configure this loader.void
shutdown()
Shutsdown any thread associated with this loader.void
start()
Starts any thread associated with this loader.
-
Constructor Details
-
LDAPLoader
Creates an LDAPLoader object using the given loader config object. The output file path need to be specified for a loader created using this constructor.- Parameters:
ldConfig
- LDAPLoaderConfig object
-
LDAPLoader
Creates an LDAPLoader object using the given loader config object, and the specified output file.- Parameters:
ldConfig
- LDAPLoaderConfig objectfilePath
- file to which data will be loaded bu this loader.
-
-
Method Details
-
main
-
run
public void run() -
isHealthy
public boolean isHealthy()Used to help determine the health of the node using this loader. -
setFilePath
This method is called by the user of the loader object which implements EPFileLoader to specify the file where the loader will write its data using the enhancer file format.- Specified by:
setFilePath
in interfaceEPFileLoader
-
getFilePath
Allows inquisition on the file to which this loader is writing data.- Specified by:
getFilePath
in interfaceEPFileLoader
-
setLoaderConfig
User of the loader object will call this method to specify an EPFileLoaderConfig which will know how to configure this loader.- Specified by:
setLoaderConfig
in interfaceEPFileLoader
-
getLoaderConfig
Allows inquisition on the EPFileLoaderConfig which configures this loader.- Specified by:
getLoaderConfig
in interfaceEPFileLoader
-
getKey
This method returns a string key which can be used inside an NPL program to address the "table" which will be holding the data provided by this loader, e.g. lookup(table-key, field-key)- Specified by:
getKey
in interfaceEPFileLoader
-
start
public void start()Starts any thread associated with this loader.- Specified by:
start
in interfaceEPFileLoader
-
shutdown
public void shutdown()Shutsdown any thread associated with this loader.- Specified by:
shutdown
in interfaceEPFileLoader
-