Package org.graphstream.stream.rmi
Class RMISource
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
-
Method Summary
Modifier and Type Method Description voidaddAttributeSink(AttributeSink listener)Add a sink for attribute events only.voidaddElementSink(ElementSink listener)Add a sink for elements events only.voidaddSink(Sink listener)Add a sink for all graph events (attributes and graph elements) coming from this source.voidbind(String name)voidclearAttributeSinks()Remove all listener attribute sinks.voidclearElementSinks()Remove all listener element sinks.voidclearSinks()Remove all listener sinks.voidedgeAdded(String graphId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed)voidedgeAttributeAdded(String graphId, long timeId, String edgeId, String attribute, Object value)voidedgeAttributeChanged(String graphId, long timeId, String edgeId, String attribute, Object oldValue, Object newValue)voidedgeAttributeRemoved(String graphId, long timeId, String edgeId, String attribute)voidedgeRemoved(String graphId, long timeId, String edgeId)voidgraphAttributeAdded(String graphId, long timeId, String attribute, Object value)voidgraphAttributeChanged(String graphId, long timeId, String attribute, Object oldValue, Object newValue)voidgraphAttributeRemoved(String graphId, long timeId, String attribute)voidgraphCleared(String graphId, long timeId)voidnodeAdded(String graphId, long timeId, String nodeId)voidnodeAttributeAdded(String graphId, long timeId, String nodeId, String attribute, Object value)voidnodeAttributeChanged(String graphId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue)voidnodeAttributeRemoved(String graphId, long timeId, String nodeId, String attribute)voidnodeRemoved(String graphId, long timeId, String nodeId)voidremoveAttributeSink(AttributeSink listener)Remove an attribute sink.voidremoveElementSink(ElementSink listener)Remove an element sink.voidremoveSink(Sink listener)Remove a sink.voidstepBegins(String graphId, long timeId, double step)Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
Constructor Details
-
RMISource
- Throws:
RemoteException
-
RMISource
- Throws:
RemoteException
-
-
Method Details
-
bind
-
edgeAdded
public void edgeAdded(String graphId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed) throws RemoteException- Specified by:
edgeAddedin interfaceRMIAdapterIn- Throws:
RemoteException
-
edgeAttributeAdded
public void edgeAttributeAdded(String graphId, long timeId, String edgeId, String attribute, Object value) throws RemoteException- Specified by:
edgeAttributeAddedin interfaceRMIAdapterIn- Throws:
RemoteException
-
edgeAttributeChanged
public void edgeAttributeChanged(String graphId, long timeId, String edgeId, String attribute, Object oldValue, Object newValue) throws RemoteException- Specified by:
edgeAttributeChangedin interfaceRMIAdapterIn- Throws:
RemoteException
-
edgeAttributeRemoved
public void edgeAttributeRemoved(String graphId, long timeId, String edgeId, String attribute) throws RemoteException- Specified by:
edgeAttributeRemovedin interfaceRMIAdapterIn- Throws:
RemoteException
-
edgeRemoved
- Specified by:
edgeRemovedin interfaceRMIAdapterIn- Throws:
RemoteException
-
graphAttributeAdded
public void graphAttributeAdded(String graphId, long timeId, String attribute, Object value) throws RemoteException- Specified by:
graphAttributeAddedin interfaceRMIAdapterIn- Throws:
RemoteException
-
graphAttributeChanged
public void graphAttributeChanged(String graphId, long timeId, String attribute, Object oldValue, Object newValue) throws RemoteException- Specified by:
graphAttributeChangedin interfaceRMIAdapterIn- Throws:
RemoteException
-
graphAttributeRemoved
public void graphAttributeRemoved(String graphId, long timeId, String attribute) throws RemoteException- Specified by:
graphAttributeRemovedin interfaceRMIAdapterIn- Throws:
RemoteException
-
graphCleared
- Specified by:
graphClearedin interfaceRMIAdapterIn- Throws:
RemoteException
-
nodeAdded
- Specified by:
nodeAddedin interfaceRMIAdapterIn- Throws:
RemoteException
-
nodeAttributeAdded
public void nodeAttributeAdded(String graphId, long timeId, String nodeId, String attribute, Object value) throws RemoteException- Specified by:
nodeAttributeAddedin interfaceRMIAdapterIn- Throws:
RemoteException
-
nodeAttributeChanged
public void nodeAttributeChanged(String graphId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue) throws RemoteException- Specified by:
nodeAttributeChangedin interfaceRMIAdapterIn- Throws:
RemoteException
-
nodeAttributeRemoved
public void nodeAttributeRemoved(String graphId, long timeId, String nodeId, String attribute) throws RemoteException- Specified by:
nodeAttributeRemovedin interfaceRMIAdapterIn- Throws:
RemoteException
-
nodeRemoved
- Specified by:
nodeRemovedin interfaceRMIAdapterIn- Throws:
RemoteException
-
stepBegins
- Specified by:
stepBeginsin interfaceRMIAdapterIn- Throws:
RemoteException
-
addAttributeSink
Description copied from interface:SourceAdd a sink for attribute events only. Attribute events include attribute addition change and removal.- Specified by:
addAttributeSinkin interfaceSource- Parameters:
listener- The sink to register.
-
addElementSink
Description copied from interface:SourceAdd a sink for elements events only. Elements events include, addition and removal of nodes and edges, as well as step events.- Specified by:
addElementSinkin interfaceSource- Parameters:
listener- The sink to register.
-
addSink
Description copied from interface:SourceAdd 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. -
removeAttributeSink
Description copied from interface:SourceRemove an attribute sink.- Specified by:
removeAttributeSinkin interfaceSource- Parameters:
listener- The sink to remove, if it does not exist, this is ignored silently.
-
removeElementSink
Description copied from interface:SourceRemove an element sink.- Specified by:
removeElementSinkin interfaceSource- Parameters:
listener- The sink to remove, if it does not exist, this is ignored silently.
-
removeSink
Description copied from interface:SourceRemove a sink.- Specified by:
removeSinkin interfaceSource- Parameters:
listener- The sink to remove, if it does not exist, this is ignored silently.
-
clearAttributeSinks
public void clearAttributeSinks()Description copied from interface:SourceRemove all listener attribute sinks.- Specified by:
clearAttributeSinksin interfaceSource
-
clearElementSinks
public void clearElementSinks()Description copied from interface:SourceRemove all listener element sinks.- Specified by:
clearElementSinksin interfaceSource
-
clearSinks
public void clearSinks()Description copied from interface:SourceRemove all listener sinks.- Specified by:
clearSinksin interfaceSource
-