The main purpose of the
RecordStoreLocator class is to create a connection
to a Record Store server. The steps for obtaining a connection are:
Use the
create()method to create aRecordStoreLocatorobject with the hostname, port, name of the Record Store instance:RecordStoreLocator locator = RecordStoreLocator.create("localhost", 8500, "MyCrawl");Call the
ServiceLocator.getService()method to make a connection to the Record Store service on that server:RecordStore rs = locator.getService();
The class also has other getter and setter methods for configuring communication with a Record Store instance.

