|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lyra.Database.Library
public class Library
Deals with the basic status handling of the Music Player Daemon protocol and its interaction with the rest of the system.
Field Summary | |
---|---|
private AbstractBlock |
Block
|
private static java.lang.String |
CLASS
|
private Terminus |
Host
|
private Status |
Information
|
private java.util.Map<java.lang.String,java.lang.String> |
Lang
|
private Ledger |
Logger
|
private Comptroller |
Manager
|
private java.lang.Thread |
Synch
|
Constructor Summary | |
---|---|
Library(Ledger logger,
Comptroller manager,
Terminus host,
AbstractBlock block,
Status information,
java.util.Map<java.lang.String,java.lang.String> lang)
Primary constructor for this class. |
|
Library(Ledger logger,
Comptroller manager,
Terminus host,
Status information,
java.util.Map<java.lang.String,java.lang.String> lang)
This is an alternate constructor used when there is no need to block a user interface. |
Method Summary | |
---|---|
void |
hostUpdated(UpdateEvent update)
Updates of host information as passed through this specific method. |
void |
run()
|
void |
syncLibrary()
Manages the database of songs stored on our local database and the host daemon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Ledger Logger
private Comptroller Manager
private Terminus Host
private AbstractBlock Block
private Status Information
private java.util.Map<java.lang.String,java.lang.String> Lang
private java.lang.Thread Synch
private static final java.lang.String CLASS
Constructor Detail |
---|
public Library(Ledger logger, Comptroller manager, Terminus host, AbstractBlock block, Status information, java.util.Map<java.lang.String,java.lang.String> lang)
logger
- Ledger instance for logging and debugging purposes.manager
- Comptroller instance for interacting with the database.host
- Terminus instance for direct interaction with the Host.block
- Blocking capability instance.information
- Status information from the Music Player Daemon.lang
- Map containing language elements.public Library(Ledger logger, Comptroller manager, Terminus host, Status information, java.util.Map<java.lang.String,java.lang.String> lang)
logger
- Ledger instance for logging and debugging purposes.manager
- Comptroller instance for interacting with the database.host
- Terminus instance for direct interaction with the Host.information
- Status information from the Music Player Daemon.lang
- Map containing language elements.Method Detail |
---|
public void syncLibrary()
public void run()
run
in interface java.lang.Runnable
public void hostUpdated(UpdateEvent update)
UpdateListener
hostUpdated
in interface UpdateListener
update
- Update notification method.UpdateEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |