|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtunes.main.QTunes
public class QTunes
The main class. The qTunes server does very little on its own, but mainly
handle the loading/saving of the configuration and state, and the starting
and stopping of Service objects.
| Field Summary | |
|---|---|
java.util.List<ServiceContextImpl> |
contexts
|
| Constructor Summary | |
|---|---|
QTunes()
Create a new QTunes server |
|
| Method Summary | |
|---|---|
void |
addListener(Listener listener)
|
void |
addServiceContext(ServiceContextImpl context)
|
void |
fireEvent(java.lang.String name,
java.util.Map<?,?> eventprops)
|
java.util.Iterator<ServiceContextImpl> |
getActiveServices()
|
java.util.Date |
getServerBuildDate()
|
java.lang.String |
getServerName()
Return the name of the Server, as specified in the configuration |
java.util.Iterator<ServiceContextImpl> |
getServices()
|
java.lang.String |
getSoftwareName()
Return the name and version of the Software |
void |
loadConfiguration(java.io.File file)
Load the configuration from the specified file |
static void |
main(java.lang.String[] args)
|
void |
quit()
Deregister all Services and quit the Server |
void |
removeListener(Listener listener)
|
void |
removeServiceContext(ServiceContextImpl context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.List<ServiceContextImpl> contexts
| Constructor Detail |
|---|
public QTunes()
| Method Detail |
|---|
public java.lang.String getSoftwareName()
public java.lang.String getServerName()
public java.util.Date getServerBuildDate()
public java.util.Iterator<ServiceContextImpl> getServices()
public java.util.Iterator<ServiceContextImpl> getActiveServices()
public void quit()
public void loadConfiguration(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic void addServiceContext(ServiceContextImpl context)
public void removeServiceContext(ServiceContextImpl context)
public void addListener(Listener listener)
public void removeListener(Listener listener)
public void fireEvent(java.lang.String name,
java.util.Map<?,?> eventprops)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||