public class RMISource extends UnicastRemoteObject implements RMIAdapterIn, Source
Modifier and Type | Field and Description |
---|---|
(package private) ConcurrentLinkedQueue<AttributeSink> |
attributesListeners |
(package private) ConcurrentLinkedQueue<ElementSink> |
elementsListeners |
private static long |
serialVersionUID |
ref
Modifier and Type | Method and Description |
---|---|
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) |
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
private static final long serialVersionUID
ConcurrentLinkedQueue<AttributeSink> attributesListeners
ConcurrentLinkedQueue<ElementSink> elementsListeners
public RMISource() throws RemoteException
RemoteException
public RMISource(String name) throws RemoteException
RemoteException
public void edgeAdded(String graphId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed) throws RemoteException
edgeAdded
in interface RMIAdapterIn
RemoteException
public void edgeAttributeAdded(String graphId, long timeId, String edgeId, String attribute, Object value) throws RemoteException
edgeAttributeAdded
in interface RMIAdapterIn
RemoteException
public void edgeAttributeChanged(String graphId, long timeId, String edgeId, String attribute, Object oldValue, Object newValue) throws RemoteException
edgeAttributeChanged
in interface RMIAdapterIn
RemoteException
public void edgeAttributeRemoved(String graphId, long timeId, String edgeId, String attribute) throws RemoteException
edgeAttributeRemoved
in interface RMIAdapterIn
RemoteException
public void edgeRemoved(String graphId, long timeId, String edgeId) throws RemoteException
edgeRemoved
in interface RMIAdapterIn
RemoteException
public void graphAttributeAdded(String graphId, long timeId, String attribute, Object value) throws RemoteException
graphAttributeAdded
in interface RMIAdapterIn
RemoteException
public void graphAttributeChanged(String graphId, long timeId, String attribute, Object oldValue, Object newValue) throws RemoteException
graphAttributeChanged
in interface RMIAdapterIn
RemoteException
public void graphAttributeRemoved(String graphId, long timeId, String attribute) throws RemoteException
graphAttributeRemoved
in interface RMIAdapterIn
RemoteException
public void graphCleared(String graphId, long timeId) throws RemoteException
graphCleared
in interface RMIAdapterIn
RemoteException
public void nodeAdded(String graphId, long timeId, String nodeId) throws RemoteException
nodeAdded
in interface RMIAdapterIn
RemoteException
public void nodeAttributeAdded(String graphId, long timeId, String nodeId, String attribute, Object value) throws RemoteException
nodeAttributeAdded
in interface RMIAdapterIn
RemoteException
public void nodeAttributeChanged(String graphId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue) throws RemoteException
nodeAttributeChanged
in interface RMIAdapterIn
RemoteException
public void nodeAttributeRemoved(String graphId, long timeId, String nodeId, String attribute) throws RemoteException
nodeAttributeRemoved
in interface RMIAdapterIn
RemoteException
public void nodeRemoved(String graphId, long timeId, String nodeId) throws RemoteException
nodeRemoved
in interface RMIAdapterIn
RemoteException
public void stepBegins(String graphId, long timeId, double step) throws RemoteException
stepBegins
in interface RMIAdapterIn
RemoteException
public void addAttributeSink(AttributeSink listener)
Source
addAttributeSink
in interface Source
listener
- The sink to register.public void addElementSink(ElementSink listener)
Source
addElementSink
in interface Source
listener
- The sink to register.public void addSink(Sink listener)
Source
public void removeAttributeSink(AttributeSink listener)
Source
removeAttributeSink
in interface Source
listener
- The sink to remove, if it does not exist, this is ignored
silently.public void removeElementSink(ElementSink listener)
Source
removeElementSink
in interface Source
listener
- The sink to remove, if it does not exist, this is ignored
silently.public void removeSink(Sink listener)
Source
removeSink
in interface Source
listener
- The sink to remove, if it does not exist, this is ignored
silently.public void clearAttributeSinks()
Source
clearAttributeSinks
in interface Source
public void clearElementSinks()
Source
clearElementSinks
in interface Source
public void clearSinks()
Source
clearSinks
in interface Source
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses