public class Pz2AceRecordSession extends Pz2RecordSession
baseRecord, dumpRecord, pazpar2Client, recid, recordQuery, serviceUrl, time
Constructor and Description |
---|
Pz2AceRecordSession(ServiceRequest request,
Document baseRecord) |
Modifier and Type | Method and Description |
---|---|
void |
aceDone(boolean done) |
boolean |
aceImprovedTheRecord()
Compares original search record with ACE search record.
|
boolean |
aceReadyForChainUse() |
boolean |
aceReadyForRecordRequest()
Issues a show command on the ACE query, to check if the query is ready for
the first record request (it is considered ready when at least 1 hit has
been returned, or, if there are no active clients left)
|
boolean |
aceRecordPrefered() |
static String |
createAceQuery(String pattern,
String ti,
String au,
String filter)
Constructs an ACE query string from select record attributes.
|
com.indexdata.masterkey.pazpar2.client.Pazpar2Client |
getAceClient() |
long |
getAge()
Gets the age of the client - to see if the client should be retired.
|
Document |
getRecord() |
boolean |
hitsFound() |
boolean |
isAceDone()
Determines if ACE has completed, based on 'activeclients' on the record
request
|
boolean |
isFiltered() |
boolean |
isNewClient()
Indicates that this client was newly created and not re-entered yet.
|
Document |
makeRecordRequest(int timeout) |
void |
performAceSearch(int timeout,
String ti,
String au,
String acePattern,
String filter) |
void |
saveAceRecord(Document doc)
Save a document.
|
void |
setNewClient(boolean isNewClient)
Indicates that this client was newly created and not re-entered yet.
|
getPazpar2Client, getPz2sessionId, logLocations, makeOffsetRequest, setDumpRecordToConsole
public Pz2AceRecordSession(ServiceRequest request, Document baseRecord) throws StandardServiceException
StandardServiceException
public com.indexdata.masterkey.pazpar2.client.Pazpar2Client getAceClient()
public void performAceSearch(int timeout, String ti, String au, String acePattern, String filter) throws ServiceException
ServiceException
public Document makeRecordRequest(int timeout) throws ServiceException
ServiceException
public boolean aceReadyForRecordRequest() throws ServiceException
StandardServiceException
ServiceException
public boolean hitsFound() throws ServiceException
ServiceException
public void aceDone(boolean done)
public boolean aceReadyForChainUse() throws ServiceException
ServiceException
public static String createAceQuery(String pattern, String ti, String au, String filter) throws StandardServiceException
record
- containing the attribute values to be used for a new queryStandardServiceException
public boolean isFiltered()
public long getAge()
public boolean isNewClient()
public void setNewClient(boolean isNewClient)
public boolean isAceDone()
public void saveAceRecord(Document doc)
key
- doc
- public Document getRecord()
getRecord
in class Pz2RecordSession
public boolean aceRecordPrefered()
public boolean aceImprovedTheRecord()
recordDoc
- aceRecordResponse
- Copyright © 2008-2015 Index Data. All Rights Reserved.