|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
gov.virginia.dcjs.jini.service.GenericService
gov.virginia.dcjs.jini.service.GenericOutputService
gov.virginia.dcjs.jini.service.BroadcastService
| Field Summary |
| Fields inherited from class gov.virginia.dcjs.jini.service.GenericService |
r_name |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
BroadcastService(java.lang.String config)
|
|
| Method Summary | |
void |
addClient(IpBroadcastServer thread,
java.lang.String name)
Add the specified client thread to those being listenned on. |
protected void |
close(java.lang.Object destination)
Close communications with the specified output object. |
protected java.lang.Object |
createDestination(java.lang.String name)
Create a new destination object which can receive messages. |
protected void |
initializeServiceName()
Specify this service's name from JiniServices. |
protected void |
logWrite(java.lang.String apName,
java.lang.String message)
Queue up the specified message to be written to the log. |
static void |
main(java.lang.String[] args)
|
protected void |
newLine(java.lang.Object destination)
Add a new line to the specified destination. |
void |
removeClient(IpBroadcastServer thread,
java.lang.String name)
Remove the specified client thread from those being listenned to. |
void |
start()
Bring the service online |
void |
stop()
Take the service offline |
protected void |
write(java.lang.Object destination,
java.lang.String message)
Add the specified text to the output destination. |
| Methods inherited from class gov.virginia.dcjs.jini.service.GenericOutputService |
addDestination, close, close, destinations, getDestination, write, writeln |
| Methods inherited from class gov.virginia.dcjs.jini.service.GenericService |
destroy, getAdmin, serviceIDNotify |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gov.virginia.dcjs.jini.shared.OutputService |
close, close, destinations, write, writeln |
| Methods inherited from interface net.jini.admin.Administrable |
getAdmin |
| Constructor Detail |
public BroadcastService(java.lang.String config)
throws java.rmi.RemoteException
config - URL of server configuration file conforming to the
* IpServer.dtd at that site.| Method Detail |
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprotected void initializeServiceName()
JiniServices.
initializeServiceName in class GenericService
protected void write(java.lang.Object destination,
java.lang.String message)
write in class GenericOutputServiceprotected void newLine(java.lang.Object destination)
newLine in class GenericOutputService
protected void logWrite(java.lang.String apName,
java.lang.String message)
protected void close(java.lang.Object destination)
close in class GenericOutputService
public void start()
throws java.rmi.RemoteException
start in interface ServiceAdminstart in class GenericServicejava.rmi.RemoteException
public void stop()
throws java.rmi.RemoteException
stop in interface ServiceAdminstop in class GenericOutputServicejava.rmi.RemoteExceptionprotected java.lang.Object createDestination(java.lang.String name)
createDestination in class GenericOutputService
public void addClient(IpBroadcastServer thread,
java.lang.String name)
addClient in interface BroadcastControl
public void removeClient(IpBroadcastServer thread,
java.lang.String name)
removeClient in interface BroadcastControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||