All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.firebus.DiscoveryAgent Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package io.firebus;


public abstract class DiscoveryAgent extends Thread 
{
	protected NodeCore nodeCore;

	public DiscoveryAgent()
	{
	}

	public DiscoveryAgent(NodeCore nc)
	{
		setNodeCore(nc);
	}
	
	public void setNodeCore(NodeCore nc)
	{
		nodeCore = nc;
		if(nodeCore != null) {
			init();
			start();
		}
	}
	
	public void setFirebus(Firebus fb)
	{
		fb.addDiscoveryAgent(this);
	}
	
	public abstract void init();
	
	public abstract void run();
	
	public abstract void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy