public class ViewCacheEntriesRequest
extends com.novell.ldap.LDAPExtendedOperation
implements javax.naming.ldap.ExtendedRequest
LDAPConnection.extendedOperation
with
the instance as the LDAPExtendedOperation
parameter.
If the corresponding response class has been registered then the return from
LDAPConnection.extendedOperation
will be an instance of the response class.
To use this class with Java LDAP JNDI create an instance and call
LdapContext.extendedOperation
with the instance as the ExtendedRequest
parameter.
The return from LdapContext.extendedOperation
will be an instance of the response class.
ASN1OctetString UTF-8 encoded DN of DirXML-Driver object ASN1Integer timeout value for server-hosted result data (0-10 minutes) ASN1Integer starting position token (0, or the result from a previous request) ASN1Integer maximum count of events to retrieve (1 to 0xffffffff) ASN1Integer (Optional)Type of Cache(DxConst.TYPE_NORMAL_CACHE or DxConst.TYPE_PRIORITY_CACHE)
ViewCacheEntriesResponse
,
GetChunkedResultRequest
,
CloseChunkedResultRequest
,
LDAPConnection.extendedOperation(com.novell.ldap.LDAPExtendedOperation)
,
DxConst.TYPE_NORMAL_CACHE
,
DxConst.TYPE_PRIORITY_CACHE
,
Serialized FormConstructor and Description |
---|
ViewCacheEntriesRequest(java.lang.String driverDN,
int timeout,
int position,
int count)
Construct an LDAP extended operation to view entries in a DirXML driver's cache.
|
ViewCacheEntriesRequest(java.lang.String driverDN,
int timeout,
int position,
int count,
int cacheType)
Construct an LDAP extended operation to view entries in 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 ViewCacheEntriesRequest(java.lang.String driverDN, int timeout, int position, int count) throws com.novell.ldap.LDAPException
driverDN
- the DN of the DirXML-Driver objecttimeout
- (0-10 minutes, not range checked)position
- starting position token (0, or result from a previous request)count
- maximum count of events to retrieve (1 to 0xffffffff, not range checked)com.novell.ldap.LDAPException
public ViewCacheEntriesRequest(java.lang.String driverDN, int timeout, int position, int count, int cacheType) throws com.novell.ldap.LDAPException
driverDN
- the DN of the DirXML-Driver objecttimeout
- (0-10 minutes, not range checked)position
- starting position token (0, or result from a previous request)count
- maximum count of events to retrieve (1 to 0xffffffff, not range checked)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