|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.MessageAgent
class MessageAgent
Field Summary | |
---|---|
private static int |
agentNum
|
private int |
indexLastRead
|
private MessageVector |
messages
|
private java.lang.String |
name
|
private static java.lang.Object |
nameLock
|
Constructor Summary | |
---|---|
MessageAgent()
|
Method Summary | |
---|---|
(package private) void |
abandon(int msgId,
LDAPConstraints cons)
Abandon the request associated with MsgId |
(package private) void |
abandonAll()
Abandon all requests on this MessageAgent |
private void |
debugDisplayMessages()
Debug code to print messages in message vector |
(package private) java.lang.String |
getAgentName()
Get the maessage agent number for debugging |
(package private) int |
getCount()
Get a count of all messages queued |
(package private) java.lang.Object |
getLDAPMessage(java.lang.Integer msgId)
Returns a response queued, or waits if none queued |
(package private) Message |
getMessage(int msgid)
Returns the Message object for a given messageID |
(package private) java.lang.Object[] |
getMessageArray()
empty and return all messages owned by this agent |
(package private) int[] |
getMessageIDs()
Get a list of message ids controlled by this agent |
(package private) boolean |
isComplete(int msgid)
Indicates whether a specific operation is complete |
(package private) boolean |
isResponseReceived()
Returns true if any responses are queued for any of the agent's messages return false if no responses are queued, otherwise true |
(package private) boolean |
isResponseReceived(int msgId)
Returns true if any responses are queued for the specified msgId return false if no responses are queued, otherwise true |
(package private) void |
merge(MessageAgent fromAgent)
merges two message agents |
(package private) void |
sendMessage(Connection conn,
LDAPMessage msg,
int timeOut,
LDAPMessageQueue queue,
BindProperties bindProps)
Send a request to the server. |
(package private) void |
sleepersAwake(boolean all)
Wakes up any threads waiting for messages in the message agent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private MessageVector messages
private int indexLastRead
private static java.lang.Object nameLock
private static int agentNum
private java.lang.String name
Constructor Detail |
---|
MessageAgent()
Method Detail |
---|
java.lang.Object[] getMessageArray()
final void merge(MessageAgent fromAgent)
fromAgent
- the agent to be merged into this onefinal void sleepersAwake(boolean all)
final boolean isResponseReceived()
final boolean isResponseReceived(int msgId)
final void abandon(int msgId, LDAPConstraints cons)
msgId
- the message id to abandon
cons
- constraints associated with this requestfinal void abandonAll()
final int[] getMessageIDs()
final boolean isComplete(int msgid)
final Message getMessage(int msgid) throws java.lang.NoSuchFieldException
msgid
- the message ID.
java.lang.NoSuchFieldException
final void sendMessage(Connection conn, LDAPMessage msg, int timeOut, LDAPMessageQueue queue, BindProperties bindProps) throws LDAPException
conn
- the connection that identifies the server.
msg
- the LDAPMessage to send
timeOut
- the interval to wait for the message to complete or
null
if infinite.queue
- the LDAPMessageQueue associated with this request.
LDAPException
final java.lang.Object getLDAPMessage(java.lang.Integer msgId)
java.lang.String getAgentName()
int getCount()
private void debugDisplayMessages()
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |