|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.streaming.StreamMaster
public class StreamMaster
The StreamMaster keeps track of all userIds and DJs. It maintains the relation between DJ's and Users. GUI sessions may come and go, but the streammaster maintains a one-to-one relation between a user and a DJ. The UI uses this class to redirect requests to the right DJ. The StreamService uses this class to get the DJ from upon initialization.
Constructor Summary | |
---|---|
StreamMaster()
|
Method Summary | |
---|---|
static DJ |
getDJByUser(long userid)
Retrieve the DJ belonging to a user. |
DJFactory |
getDjFactory()
Getter for the DJ factory. |
static java.util.Collection<java.lang.Long> |
getUserIDs()
|
void |
setDjFactory(DJFactory factory)
Setter for the DJ factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamMaster()
Method Detail |
---|
public static DJ getDJByUser(long userid)
userid
- The id of the user.
public void setDjFactory(DJFactory factory)
factory
- The DF factory.public DJFactory getDjFactory()
public static java.util.Collection<java.lang.Long> getUserIDs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |