1 package net.pterodactylus.fcp.quelaton;
3 import java.util.Optional;
5 import net.pterodactylus.fcp.Peer;
8 * Command that modifies certain settings of a peer.
10 * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
12 public interface ModifyPeerCommand {
14 ModifyPeerCommand enable();
15 ModifyPeerCommand disable();
16 ModifyPeerCommand allowLocalAddresses();
17 ModifyPeerCommand disallowLocalAddresses();
18 ModifyPeerCommand setBurstOnly();
19 ModifyPeerCommand clearBurstOnly();
20 ModifyPeerCommand setListenOnly();
21 ModifyPeerCommand clearListenOnly();
22 ModifyPeerCommand ignoreSource();
23 ModifyPeerCommand useSource();
25 Executable<Optional<Peer>> byName(String name);
26 Executable<Optional<Peer>> byIdentity(String nodeIdentity);
27 Executable<Optional<Peer>> byHostAndPort(String host, int port);