public class DeleteCacheEntriesRequest
extends com.novell.ldap.LDAPExtendedOperation
implements javax.naming.ldap.ExtendedRequest
LDAPConnection.extendedOperation
with
the instance as the LDAPExtendedOperation
parameter.
To use this class with Java LDAP JNDI create an instance and call
LdapContext.extendedOperation
with the instance as the ExtendedRequest
parameter.
ASN1OctetString UTF-encoded DN of DirXML-Driver object ASN1Integer starting position token (0, or value from a previous ViewCacheEntriesRequest operation) ASN1Integer count of records to delete (1 to 0xffffffff) ASN1OctetString optional event ID of starting record ASN1Integer (Optional)Type of Cache(DxConst.TYPE_NORMAL_CACHE or DxConst.TYPE_PRIORITY_CACHE)
ViewCacheEntriesRequest
operation.
The position token represents the starting position in the cache of the first event to delete.ViewCacheEntriesRequest
,
ViewCacheEntriesResponse
,
LDAPConnection.extendedOperation(com.novell.ldap.LDAPExtendedOperation)
,
DxConst.TYPE_NORMAL_CACHE
,
DxConst.TYPE_PRIORITY_CACHE
,
Serialized FormConstructor and Description |
---|
DeleteCacheEntriesRequest(java.lang.String driverDN,
int position,
int count,
java.lang.String eventID)
Construct an LDAP extended operation to delete entries from a DirXML driver's cache.
|
DeleteCacheEntriesRequest(java.lang.String driverDN,
int position,
int count,
java.lang.String eventID,
int cacheType)
Construct an LDAP extended operation to delete entries from a DirXML driver's cache based on the cache type.
|
Modifier and Type | Method and Description |
---|---|
javax.naming.ldap.ExtendedResponse |
createExtendedResponse(java.lang.String id,
byte[] berValue,
int offset,
int length)
Create the ExtendedResponse-implementing object that corresponds to this request.
|
byte[] |
getEncodedValue()
Return the LBER-encoded data for this request.
|
clone, getID, getValue, readDSML, readExternal, setID, setValue, toString, writeDSML, writeExternal
public DeleteCacheEntriesRequest(java.lang.String driverDN, int position, int count, java.lang.String eventID) throws com.novell.ldap.LDAPException
driverDN
- the DN of the DirXML-Driver objectposition
- starting position token (0, or result from a previous request)count
- maximum count of events to delete (1 to 0xffffffff, not range checked)eventID
- event ID of starting record (may be null
or empty)com.novell.ldap.LDAPException
public DeleteCacheEntriesRequest(java.lang.String driverDN, int position, int count, java.lang.String eventID, int cacheType) throws com.novell.ldap.LDAPException
driverDN
- the DN of the DirXML-Driver objectposition
- starting position token (0, or result from a previous request)count
- maximum count of events to delete (1 to 0xffffffff, not range checked)eventID
- event ID of starting record (may be null
or empty)cacheType
- Cache type value (DxConst.TYPE_NORMAL_CACHE
,
DxConst.TYPE_PRIORITY_CACHE
)com.novell.ldap.LDAPException
DxConst.TYPE_NORMAL_CACHE
,
DxConst.TYPE_PRIORITY_CACHE
public byte[] getEncodedValue()
ExtendedRequest
interface.getEncodedValue
in interface javax.naming.ldap.ExtendedRequest
null
, if there is no request data.public javax.naming.ldap.ExtendedResponse createExtendedResponse(java.lang.String id, byte[] berValue, int offset, int length) throws javax.naming.NamingException
ExtendedRequest
interface.createExtendedResponse
in interface javax.naming.ldap.ExtendedRequest
id
- (ignored)berValue
- contains LBER-encoded response dataoffset
- offset into berValue
length
- length (in bytes) of reponse datajavax.naming.NamingException