Added debugging screen to alpha and beta builds. Dev task #73.

This commit is contained in:
akwizgran
2014-02-28 23:44:35 +00:00
parent 07b4d9b5d8
commit a2d099ea17
20 changed files with 440 additions and 43 deletions

View File

@@ -23,6 +23,9 @@ public interface Plugin {
/** Stops the plugin. */
void stop() throws IOException;
/** Returns true if the plugin is running. */
boolean isRunning();
/**
* Returns true if the plugin's {@link #poll(Collection)} method should be
* called periodically to attempt to establish connections.

View File

@@ -2,6 +2,7 @@ package org.briarproject.api.plugins;
import java.util.Collection;
import org.briarproject.api.TransportId;
import org.briarproject.api.lifecycle.Service;
import org.briarproject.api.plugins.duplex.DuplexPlugin;
@@ -11,6 +12,12 @@ import org.briarproject.api.plugins.duplex.DuplexPlugin;
*/
public interface PluginManager extends Service {
/**
* Returns the plugin for the given transport, or null if no such plugin
* is running.
*/
Plugin getPlugin(TransportId t);
/** Returns any running duplex plugins that support invitations. */
Collection<DuplexPlugin> getInvitationPlugins();
}