|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.opensmus.MUSMovie
public class MUSMovie
Field Summary | |
---|---|
MUSGroup |
allUsers
|
protected java.util.Vector<java.lang.String> |
m_disabledgroupslist
|
boolean |
m_enabled
|
java.util.concurrent.ConcurrentHashMap<java.lang.String,MUSGroup> |
m_grouplist
|
java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> |
m_groupsizelimitlist
|
int |
m_maxconnections
|
java.lang.String |
m_name
|
protected java.util.Vector<java.lang.String> |
m_notifydisconnectlist
|
boolean |
m_persists
|
MUSMovieProperties |
m_props
|
java.util.Vector<ServerSideScript> |
m_scriptList
|
java.util.concurrent.ConcurrentHashMap<java.lang.String,ServerUser> |
m_userlist
|
Constructor Summary | |
---|---|
MUSMovie(MUSServer srv,
java.lang.String initname)
|
Method Summary | |
---|---|
void |
addGroup(MUSGroup oneGroup)
|
void |
addUser(ServerUser wuser)
|
void |
buildUserlevelCache()
|
void |
checkStructure()
|
void |
createAllServerSideScripts()
|
ServerGroup |
createServerGroup(java.lang.String groupname)
Creates a new group on the movie and returns a pointer to it. |
boolean |
createServerSideScript(int scriptNumber)
|
void |
deleteServerGroup(java.lang.String groupname)
Deletes a group from the movie. |
boolean |
deleteServerSideScript(int scriptNum)
|
boolean |
deleteServerSideScript(java.lang.String scriptName)
|
void |
disableGroup(java.lang.String gname)
Disables this group so new users can not join it. |
void |
enableGroup(java.lang.String gname)
Enables this group to receive new users. |
MUSGroup |
getGroup(java.lang.String gname)
|
static void |
GetGroupListFromContents(LList list,
LValue cont)
|
int |
getRequiredUserLevel(java.lang.String command)
|
MUSServer |
getServer()
|
ServerGroup |
getServerGroup(int groupidx)
Retrieves a pointer to a ServerGroup object representing a group that exists on this ServerMovie. |
ServerGroup |
getServerGroup(java.lang.String groupname)
Retrieves a pointer to a ServerGroup object representing a group that exists on this ServerMovie. |
static void |
GetStringListFromContents(LList list,
LValue cont)
|
ServerUser |
getUser(java.lang.String uname)
|
void |
handleGroupAttributeMsg(ServerUser user,
java.lang.String attrcommand,
MUSMessage msg,
MUSMessage reply)
|
void |
handleGroupMsg(ServerUser user,
java.lang.String recpt,
MUSMessage msg)
|
void |
handleLocalMsg(ServerUser user,
java.lang.String recpt,
MUSMessage msg)
|
void |
handleMsg(ServerUser user,
MUSMessage msg)
|
void |
handleSystemMsg(ServerUser user,
java.lang.String recpt,
MUSMessage msg)
|
boolean |
IsConnectionAllowed(ServerUser auser)
|
boolean |
IsGroupAllowed(java.lang.String groupname)
|
void |
logDroppedMsg()
|
java.lang.String |
name()
Returns the name of the movie as a String |
void |
notifyDisconnection(java.lang.String uname)
|
boolean |
persists()
Checks if the movie is set to persist on the server even when no users are connected to it. |
void |
removeAllUsers()
|
void |
removeUser(ServerUser oneuser)
|
int |
serverGroupCount()
Gets the number of groups in this movie. |
int |
serverUserCount()
Gets the number of users connected to this movie. |
void |
setpersists(boolean persistflag)
Toggles the movie persistent flag for this movie. |
void |
setuserLevel(int level)
Sets the default user levels for users that connect to this movie and do not have a user account in the DB. |
LValue |
srvcmd_createUniqueName()
|
LValue |
srvcmd_getGroupCount()
|
LValue |
srvcmd_getGroups()
|
LValue |
srvcmd_getUserCount()
|
void |
srvcmd_joinGroup(ServerUser user,
java.lang.String gname)
|
void |
srvcmd_leaveGroup(ServerUser user,
java.lang.String gname)
|
int |
userLevel()
Gets the default user levels for users that connect to this movie and do not have a user account in the DB. |
boolean |
userThreadAlive(java.lang.String uname)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String m_name
public final java.util.concurrent.ConcurrentHashMap<java.lang.String,MUSGroup> m_grouplist
public final java.util.concurrent.ConcurrentHashMap<java.lang.String,ServerUser> m_userlist
public final java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> m_groupsizelimitlist
protected final java.util.Vector<java.lang.String> m_disabledgroupslist
protected final java.util.Vector<java.lang.String> m_notifydisconnectlist
public final int m_maxconnections
public MUSMovieProperties m_props
public boolean m_enabled
public boolean m_persists
public final java.util.Vector<ServerSideScript> m_scriptList
public final MUSGroup allUsers
Constructor Detail |
---|
public MUSMovie(MUSServer srv, java.lang.String initname)
Method Detail |
---|
public MUSServer getServer()
public void addGroup(MUSGroup oneGroup)
public LValue srvcmd_getUserCount() throws GroupNotFoundException
GroupNotFoundException
public MUSGroup getGroup(java.lang.String gname) throws GroupNotFoundException, MUSErrorCode
GroupNotFoundException
MUSErrorCode
public void notifyDisconnection(java.lang.String uname)
public ServerUser getUser(java.lang.String uname) throws UserNotFoundException
UserNotFoundException
public void addUser(ServerUser wuser)
public void removeUser(ServerUser oneuser)
public void removeAllUsers()
public void checkStructure()
public boolean userThreadAlive(java.lang.String uname)
public LValue srvcmd_getGroups()
public LValue srvcmd_getGroupCount()
public LValue srvcmd_createUniqueName()
public boolean IsGroupAllowed(java.lang.String groupname)
public boolean IsConnectionAllowed(ServerUser auser)
public void disableGroup(java.lang.String gname)
ServerMovie
disableGroup
in interface ServerMovie
public void enableGroup(java.lang.String gname)
ServerMovie
enableGroup
in interface ServerMovie
public void logDroppedMsg()
public ServerGroup getServerGroup(java.lang.String groupname) throws GroupNotFoundException
ServerMovie
getServerGroup
in interface ServerMovie
groupname
- String with the name of the group to be returned
GroupNotFoundException
public ServerGroup getServerGroup(int groupidx) throws GroupNotFoundException
ServerMovie
getServerGroup
in interface ServerMovie
groupidx
- index of the movie to be returned
GroupNotFoundException
public ServerGroup createServerGroup(java.lang.String groupname) throws MUSErrorCode
ServerMovie
createServerGroup
in interface ServerMovie
groupname
- String with the name of the group to be created
MUSErrorCode
public void deleteServerGroup(java.lang.String groupname)
ServerMovie
deleteServerGroup
in interface ServerMovie
groupname
- String with the name of the group to be deletedpublic int serverGroupCount()
ServerMovie
serverGroupCount
in interface ServerMovie
public int serverUserCount()
ServerMovie
serverUserCount
in interface ServerMovie
public java.lang.String name()
ServerMovie
name
in interface ServerMovie
public int userLevel()
ServerMovie
userLevel
in interface ServerMovie
public void setuserLevel(int level)
ServerMovie
setuserLevel
in interface ServerMovie
public boolean persists()
ServerMovie
persists
in interface ServerMovie
public void setpersists(boolean persistflag)
ServerMovie
setpersists
in interface ServerMovie
persistflag
- TRUE if the movie needs to persist on the server, FALSE otherwisepublic void createAllServerSideScripts()
public boolean createServerSideScript(int scriptNumber)
public boolean deleteServerSideScript(int scriptNum)
public boolean deleteServerSideScript(java.lang.String scriptName)
public void buildUserlevelCache()
public int getRequiredUserLevel(java.lang.String command)
public void handleMsg(ServerUser user, MUSMessage msg)
public void handleLocalMsg(ServerUser user, java.lang.String recpt, MUSMessage msg)
public void handleSystemMsg(ServerUser user, java.lang.String recpt, MUSMessage msg)
public void handleGroupAttributeMsg(ServerUser user, java.lang.String attrcommand, MUSMessage msg, MUSMessage reply)
public void handleGroupMsg(ServerUser user, java.lang.String recpt, MUSMessage msg)
public static void GetStringListFromContents(LList list, LValue cont)
public static void GetGroupListFromContents(LList list, LValue cont) throws MUSErrorCode
MUSErrorCode
public void srvcmd_joinGroup(ServerUser user, java.lang.String gname) throws MUSErrorCode
MUSErrorCode
public void srvcmd_leaveGroup(ServerUser user, java.lang.String gname) throws MUSErrorCode
MUSErrorCode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |