|
Openfire 3.6.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.clearspace.ClearspaceMUCTranscriptManager
public class ClearspaceMUCTranscriptManager
Stores MUC events that are intended to be recorded as a transcript for a group chat room in Clearspace.
A task will periodically flush the queue of MUC events, sending them to the Clearspace component via XMPP
for parsing and storing.
Clearspace is expected to handle the packets containing MUC events by parsing them as they come in, accumulating
them into a daily group chat transcript for the room it is associated with.
The task will flush each queue of MUC events assoicated with a room based on either the size of the queue, or time.
If the size of the queue exceeds a limit we have set, or a certain period of time has elapsed,
the queue will be sent to Clearspace -- whichever happens first. (When we say size of the queue, we really mean
the effective size as it will appear in a transcript-update packet).
Example of a transcript-update packet:
Constructor Summary | |
---|---|
ClearspaceMUCTranscriptManager(TaskEngine taskEngine)
|
Method Summary | |
---|---|
void |
messageReceived(JID roomJID,
JID user,
String nickname,
Message message)
Event triggered when a room occupant sent a message to a room. |
void |
nicknameChanged(JID roomJID,
JID user,
String oldNickname,
String newNickname)
Event triggered when an occupant changed his nickname in a room. |
void |
occupantJoined(JID roomJID,
JID user,
String nickname)
Event triggered when a new occupant joins a room. |
void |
occupantLeft(JID roomJID,
JID user)
Event triggered when an occupant left a room. |
void |
roomCreated(JID roomJID)
Event triggered when a new room was created. |
void |
roomDestroyed(JID roomJID)
Event triggered when a room was destroyed. |
void |
roomSubjectChanged(JID roomJID,
JID user,
String newSubject)
Event triggered when the subject of a room is changed. |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClearspaceMUCTranscriptManager(TaskEngine taskEngine)
Method Detail |
---|
public void start()
public void stop()
public void roomCreated(JID roomJID)
MUCEventListener
roomCreated
in interface MUCEventListener
roomJID
- JID of the room that was created.public void roomDestroyed(JID roomJID)
MUCEventListener
roomDestroyed
in interface MUCEventListener
roomJID
- JID of the room that was destroyed.public void occupantJoined(JID roomJID, JID user, String nickname)
MUCEventListener
occupantJoined
in interface MUCEventListener
roomJID
- the JID of the room where the occupant has joined.user
- the JID of the user joining the room.nickname
- nickname of the user in the room.public void occupantLeft(JID roomJID, JID user)
MUCEventListener
occupantLeft
in interface MUCEventListener
roomJID
- the JID of the room where the occupant has left.user
- the JID of the user leaving the room.public void nicknameChanged(JID roomJID, JID user, String oldNickname, String newNickname)
MUCEventListener
nicknameChanged
in interface MUCEventListener
roomJID
- the JID of the room where the user changed his nickname.user
- the JID of the user that changed his nickname.oldNickname
- old nickname of the user in the room.newNickname
- new nickname of the user in the room.public void messageReceived(JID roomJID, JID user, String nickname, Message message)
MUCEventListener
messageReceived
in interface MUCEventListener
roomJID
- the JID of the room that received the message.user
- the JID of the user that sent the message.nickname
- nickname used by the user when sending the message.message
- the message sent by the room occupant.public void roomSubjectChanged(JID roomJID, JID user, String newSubject)
MUCEventListener
roomSubjectChanged
in interface MUCEventListener
roomJID
- the JID of the room that had its subject changed.user
- the JID of the user that changed the subject.newSubject
- new room subject.
|
Openfire 3.6.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |