public class SyncReplSourceService extends SimpleJndiSrcService implements IAsynchronousService, Closeable
Constructor and Description |
---|
SyncReplSourceService(TaskType task) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
IBean |
getBean(String id,
LscDatasets pivotAttrs,
boolean fromSameService)
The simple object getter according to its identifier.
|
static org.apache.directory.ldap.client.api.LdapAsyncConnection |
getConnection(LdapConnectionType ldapConn) |
long |
getInterval()
The delay in milliseconds to look for available updates
|
Map<String,LscDatasets> |
getListPivots()
Returns a list of all the objects' identifiers.
|
Map.Entry<String,LscDatasets> |
getNextId()
This call is blocking until a data available on the data source
|
static org.apache.directory.api.ldap.model.message.Control |
getSearchContinuationControl(LdapServerType serverType) |
getFilterIdClean
get, getAttrs, getAttrsId, getBaseDn, getBeanFromSR, getFilterAll, getFilterId, getJndiServices
public SyncReplSourceService(TaskType task) throws LscServiceConfigurationException
LscServiceConfigurationException
public static org.apache.directory.ldap.client.api.LdapAsyncConnection getConnection(LdapConnectionType ldapConn) throws LscServiceConfigurationException
LscServiceConfigurationException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractSimpleJndiService
IOException
public Map<String,LscDatasets> getListPivots() throws LscServiceException
SimpleJndiSrcService
getListPivots
in interface IService
getListPivots
in class SimpleJndiSrcService
LscServiceException
public IBean getBean(String id, LscDatasets pivotAttrs, boolean fromSameService) throws LscServiceException
getBean
in interface IService
getBean
in class SimpleJndiSrcService
id
- Name of the entry to be returned, which is the name returned by
getListPivots()
(used for display only)pivotAttrs
- Map of attribute names and values, which is the data identifier in the
source such as returned by getListPivots()
. It must identify a unique
entry in the source.fromSameService
- are the pivot attributes provided by the same serviceLscServiceException
- May throw a NamingException
if the object is not found in the
directory, or if more than one object would be returned.public Map.Entry<String,LscDatasets> getNextId() throws LscServiceException
IAsynchronousService
getNextId
in interface IAsynchronousService
LscServiceException
public static org.apache.directory.api.ldap.model.message.Control getSearchContinuationControl(LdapServerType serverType) throws LscServiceConfigurationException
LscServiceConfigurationException
public long getInterval()
IAsynchronousService
getInterval
in interface IAsynchronousService
Copyright © 2005-2024 LSC project. All Rights Reserved.