common
Class GenericSinkImpl

java.lang.Object
  extended bycommon.GenericSinkImpl
All Implemented Interfaces:
java.rmi.Remote, Sink, VolumeControl

public class GenericSinkImpl
extends java.lang.Object
implements Sink, VolumeControl, java.rmi.Remote


Field Summary
 
Fields inherited from interface common.Sink
STOP
 
Constructor Summary
GenericSinkImpl()
           
 
Method Summary
 net.jini.core.event.EventRegistration addSinkListener(net.jini.core.event.RemoteEventListener listener, java.rmi.MarshalledObject handback)
           
 void addSource(Source source)
           
 void fireNotify(int evtType)
           
 int getMaxVolume()
           
 int getVolume()
           
 void record()
           
 void removeSinkListener(net.jini.core.event.RemoteEventListener listener)
           
 void removeSource(Source source)
           
 void setProxy(java.rmi.Remote proxy)
           
 void setVolume(int vol)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericSinkImpl

public GenericSinkImpl()
Method Detail

setProxy

public void setProxy(java.rmi.Remote proxy)

record

public void record()
            throws java.rmi.RemoteException,
                   AlreadyRecordingException
Specified by:
record in interface Sink
Throws:
java.rmi.RemoteException
AlreadyRecordingException

stop

public void stop()
          throws java.rmi.RemoteException
Specified by:
stop in interface Sink
Throws:
java.rmi.RemoteException

addSource

public void addSource(Source source)
               throws IncompatableSourceException
Specified by:
addSource in interface Sink
Throws:
IncompatableSourceException

removeSource

public void removeSource(Source source)
                  throws java.rmi.RemoteException,
                         NoSuchSourceException
Specified by:
removeSource in interface Sink
Throws:
java.rmi.RemoteException
NoSuchSourceException

addSinkListener

public net.jini.core.event.EventRegistration addSinkListener(net.jini.core.event.RemoteEventListener listener,
                                                             java.rmi.MarshalledObject handback)
Specified by:
addSinkListener in interface Sink

removeSinkListener

public void removeSinkListener(net.jini.core.event.RemoteEventListener listener)
Specified by:
removeSinkListener in interface Sink

fireNotify

public void fireNotify(int evtType)

setVolume

public void setVolume(int vol)
Specified by:
setVolume in interface VolumeControl

getVolume

public int getVolume()
Specified by:
getVolume in interface VolumeControl

getMaxVolume

public int getMaxVolume()
Specified by:
getMaxVolume in interface VolumeControl