|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bff.javampd.MPDAdmin
public class MPDAdmin
MPDAdmin represents a administrative controller to a MPD server. To obtain
an instance of the class you must use the getMPDAdmin method from the
MPD connection class. This class does not have a public constructor
(singleton model) so the object must be obtained from the connection object.
| Method Summary | |
|---|---|
void |
addMPDChangeListener(MPDChangeListener mcl)
Adds a MPDChangeListener to this object to receive
MPDChangeEvents. |
protected void |
fireMPDChangeEvent(int id)
Sends the appropriate MPDChangeEvent to all registered
MPDChangeListeners. |
int |
getDaemonUpTime()
Returns the daemon uptime in seconds. |
void |
killMPD()
Kills the mpd connection. |
void |
removePlayerChangedListener(MPDChangeListener mcl)
Removes a MPDChangeListener from this object. |
void |
updateDatabase()
Updates the MPD database by searching the mp3 directory for new music and removing the old music. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void addMPDChangeListener(MPDChangeListener mcl)
MPDChangeListener to this object to receive
MPDChangeEvents.
mcl - the MPDChangeListener to addpublic void removePlayerChangedListener(MPDChangeListener mcl)
MPDChangeListener from this object.
mcl - the MPDChangeListener to removeprotected void fireMPDChangeEvent(int id)
MPDChangeEvent to all registered
MPDChangeListeners.
id - the event id to send
public void killMPD()
throws MPDConnectionException,
MPDAdminException
MPDConnectionException - if there is a problem sending the command
MPDAdminException - if the MPD response contains an error
public void updateDatabase()
throws MPDConnectionException,
MPDAdminException
MPDConnectionException - if there is a problem sending the command
MPDAdminException - if the MPD response contains an error
public int getDaemonUpTime()
throws MPDConnectionException,
MPDAdminException
MPDAdminException - if the MPD response contains an error
MPDConnectionException - if there is a problem sending the command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||