1 package net.pterodactylus.fcp.quelaton;
5 import java.util.Optional;
7 import net.pterodactylus.fcp.NodeRef;
8 import net.pterodactylus.fcp.Peer;
11 * Command that adds a peer to the node.
13 * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
15 public interface AddPeerCommand {
17 Executable<Optional<Peer>> fromFile(File file);
18 Executable<Optional<Peer>> fromURL(URL url);
19 Executable<Optional<Peer>> fromNodeRef(NodeRef nodeRef);