org.graphstream.stream.rmi
Class RMISource

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.graphstream.stream.rmi.RMISource
All Implemented Interfaces:
Serializable, Remote, RMIAdapterIn, Source

public class RMISource
extends UnicastRemoteObject
implements RMIAdapterIn, Source

See Also:
Serialized Form

Constructor Summary
RMISource()
           
RMISource(String name)
           
 
Method Summary
 void addAttributeSink(AttributeSink listener)
          Add a sink for attribute events only.
 void addElementSink(ElementSink listener)
          Add a sink for elements events only.
 void addSink(Sink listener)
          Add a sink for all graph events (attributes and graph elements) coming from this source.
 void bind(String name)
           
 void clearAttributeSinks()
          Remove all listener attribute sinks.
 void clearElementSinks()
          Remove all listener element sinks.
 void clearSinks()
          Remove all listener sinks.
 void edgeAdded(String graphId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed)
           
 void edgeAttributeAdded(String graphId, long timeId, String edgeId, String attribute, Object value)
           
 void edgeAttributeChanged(String graphId, long timeId, String edgeId, String attribute, Object oldValue, Object newValue)
           
 void edgeAttributeRemoved(String graphId, long timeId, String edgeId, String attribute)
           
 void edgeRemoved(String graphId, long timeId, String edgeId)
           
 void graphAttributeAdded(String graphId, long timeId, String attribute, Object value)
           
 void graphAttributeChanged(String graphId, long timeId, String attribute, Object oldValue, Object newValue)
           
 void graphAttributeRemoved(String graphId, long timeId, String attribute)
           
 void graphCleared(String graphId, long timeId)
           
 void nodeAdded(String graphId, long timeId, String nodeId)
           
 void nodeAttributeAdded(String graphId, long timeId, String nodeId, String attribute, Object value)
           
 void nodeAttributeChanged(String graphId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue)
           
 void nodeAttributeRemoved(String graphId, long timeId, String nodeId, String attribute)
           
 void nodeRemoved(String graphId, long timeId, String nodeId)
           
 void removeAttributeSink(AttributeSink listener)
          Remove an attribute sink.
 void removeElementSink(ElementSink listener)
          Remove an element sink.
 void removeSink(Sink listener)
          Remove a sink.
 void stepBegins(String graphId, long timeId, double step)
           
 
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
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMISource

public RMISource()
          throws RemoteException
Throws:
RemoteException

RMISource

public RMISource(String name)
          throws RemoteException
Throws:
RemoteException
Method Detail

bind

public void bind(String name)

edgeAdded

public void edgeAdded(String graphId,
                      long timeId,
                      String edgeId,
                      String fromNodeId,
                      String toNodeId,
                      boolean directed)
               throws RemoteException
Specified by:
edgeAdded in interface RMIAdapterIn
Throws:
RemoteException

edgeAttributeAdded

public void edgeAttributeAdded(String graphId,
                               long timeId,
                               String edgeId,
                               String attribute,
                               Object value)
                        throws RemoteException
Specified by:
edgeAttributeAdded in interface RMIAdapterIn
Throws:
RemoteException

edgeAttributeChanged

public void edgeAttributeChanged(String graphId,
                                 long timeId,
                                 String edgeId,
                                 String attribute,
                                 Object oldValue,
                                 Object newValue)
                          throws RemoteException
Specified by:
edgeAttributeChanged in interface RMIAdapterIn
Throws:
RemoteException

edgeAttributeRemoved

public void edgeAttributeRemoved(String graphId,
                                 long timeId,
                                 String edgeId,
                                 String attribute)
                          throws RemoteException
Specified by:
edgeAttributeRemoved in interface RMIAdapterIn
Throws:
RemoteException

edgeRemoved

public void edgeRemoved(String graphId,
                        long timeId,
                        String edgeId)
                 throws RemoteException
Specified by:
edgeRemoved in interface RMIAdapterIn
Throws:
RemoteException

graphAttributeAdded

public void graphAttributeAdded(String graphId,
                                long timeId,
                                String attribute,
                                Object value)
                         throws RemoteException
Specified by:
graphAttributeAdded in interface RMIAdapterIn
Throws:
RemoteException

graphAttributeChanged

public void graphAttributeChanged(String graphId,
                                  long timeId,
                                  String attribute,
                                  Object oldValue,
                                  Object newValue)
                           throws RemoteException
Specified by:
graphAttributeChanged in interface RMIAdapterIn
Throws:
RemoteException

graphAttributeRemoved

public void graphAttributeRemoved(String graphId,
                                  long timeId,
                                  String attribute)
                           throws RemoteException
Specified by:
graphAttributeRemoved in interface RMIAdapterIn
Throws:
RemoteException

graphCleared

public void graphCleared(String graphId,
                         long timeId)
                  throws RemoteException
Specified by:
graphCleared in interface RMIAdapterIn
Throws:
RemoteException

nodeAdded

public void nodeAdded(String graphId,
                      long timeId,
                      String nodeId)
               throws RemoteException
Specified by:
nodeAdded in interface RMIAdapterIn
Throws:
RemoteException

nodeAttributeAdded

public void nodeAttributeAdded(String graphId,
                               long timeId,
                               String nodeId,
                               String attribute,
                               Object value)
                        throws RemoteException
Specified by:
nodeAttributeAdded in interface RMIAdapterIn
Throws:
RemoteException

nodeAttributeChanged

public void nodeAttributeChanged(String graphId,
                                 long timeId,
                                 String nodeId,
                                 String attribute,
                                 Object oldValue,
                                 Object newValue)
                          throws RemoteException
Specified by:
nodeAttributeChanged in interface RMIAdapterIn
Throws:
RemoteException

nodeAttributeRemoved

public void nodeAttributeRemoved(String graphId,
                                 long timeId,
                                 String nodeId,
                                 String attribute)
                          throws RemoteException
Specified by:
nodeAttributeRemoved in interface RMIAdapterIn
Throws:
RemoteException

nodeRemoved

public void nodeRemoved(String graphId,
                        long timeId,
                        String nodeId)
                 throws RemoteException
Specified by:
nodeRemoved in interface RMIAdapterIn
Throws:
RemoteException

stepBegins

public void stepBegins(String graphId,
                       long timeId,
                       double step)
                throws RemoteException
Specified by:
stepBegins in interface RMIAdapterIn
Throws:
RemoteException

addAttributeSink

public void addAttributeSink(AttributeSink listener)
Description copied from interface: Source
Add a sink for attribute events only. Attribute events include attribute addition change and removal.

Specified by:
addAttributeSink in interface Source
Parameters:
listener - The sink to register.

addElementSink

public void addElementSink(ElementSink listener)
Description copied from interface: Source
Add a sink for elements events only. Elements events include, addition and removal of nodes and edges, as well as step events.

Specified by:
addElementSink in interface Source
Parameters:
listener - The sink to register.

addSink

public void addSink(Sink listener)
Description copied from interface: Source
Add a sink for all graph events (attributes and graph elements) coming from this source. This is similar to registering a sink for attributes an another for elements.

Specified by:
addSink in interface Source
Parameters:
listener - The sink to register.

removeAttributeSink

public void removeAttributeSink(AttributeSink listener)
Description copied from interface: Source
Remove an attribute sink.

Specified by:
removeAttributeSink in interface Source
Parameters:
listener - The sink to remove, if it does not exist, this is ignored silently.

removeElementSink

public void removeElementSink(ElementSink listener)
Description copied from interface: Source
Remove an element sink.

Specified by:
removeElementSink in interface Source
Parameters:
listener - The sink to remove, if it does not exist, this is ignored silently.

removeSink

public void removeSink(Sink listener)
Description copied from interface: Source
Remove a sink.

Specified by:
removeSink in interface Source
Parameters:
listener - The sink to remove, if it does not exist, this is ignored silently.

clearAttributeSinks

public void clearAttributeSinks()
Description copied from interface: Source
Remove all listener attribute sinks.

Specified by:
clearAttributeSinks in interface Source

clearElementSinks

public void clearElementSinks()
Description copied from interface: Source
Remove all listener element sinks.

Specified by:
clearElementSinks in interface Source

clearSinks

public void clearSinks()
Description copied from interface: Source
Remove all listener sinks.

Specified by:
clearSinks in interface Source


Copyright © 2013. All Rights Reserved.