Talk:DevFaqLookupEventBus

The API for in VM communications bus, that I use, it based on the old Space definition that existed in the original Voyager platform created by ObjectSpace Inc. It was a pretty simple API, and the power of a multicast, mesh fabric is great for simplifying dynamic module linking.

Here's a representation of that API. Is it really much different from lookup? I think the primary, most important detail is that DirectTopic, is a tree based namespace like java packages. The big deal is that you can subscribe to com.< or org.netbeans.< or some other part of the tree to see a) what is being communicated, and b) look for a wider range of traffic to help simplify what you really need to know about changes inside that namespace.

public class DirectSpace extends Observable implements ISpace {
	public void add( PublishedEventListener lis);
	public @Override boolean contains( ISpace lis );
	public @Override boolean contains( PublishedEventListener lis );
	public void connect( ISpace spc ) throws IOException;
	public void disconnect( ISpace spc ) throws IOException;
	public void remove( PublishedEventListener lis );
	public PublishedEventListener[] getContents();
	public void send( final DirectEvent event, final DirectTopic topic ) throws IOException;
}

public interface ISpace extends Remote {
	public void send( DirectEvent obj, DirectTopic topic ) throws IOException;
	public boolean contains( ISpace obj ) throws IOException;
	public boolean contains( PublishedEventListener obj ) throws IOException;
	public void connect( ISpace spc ) throws IOException;
	public void disconnect( ISpace spc ) throws IOException;
}

public class DirectTopic {
	public boolean matches( DirectTopic topic );
}

public interface PublishedEventListener extends Remote {
	public void publishedEvent( DirectEvent ev, DirectTopic t ) throws IOException;
}
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo