implement node addition and removal events
[jSite2.git] / src / net / pterodactylus / jsite / core / Core.java
index 731076b..0bf2cca 100644 (file)
@@ -23,7 +23,7 @@ import java.util.List;
 
 /**
  * Interface for the core.
- *
+ * 
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
  * @version $Id$
  */
@@ -31,7 +31,7 @@ public interface Core {
 
        /**
         * Adds the given listener to the list of registered listeners.
-        *
+        * 
         * @param coreListener
         *            The listener to add
         */
@@ -39,22 +39,38 @@ public interface Core {
 
        /**
         * Removes the given listener from the list of registered listeners.
-        *
+        * 
         * @param coreListener
         *            The listener to remove
         */
        public void removeCoreListener(CoreListener coreListener);
 
        /**
+        * Adds the given node to the core.
+        * 
+        * @param node
+        *            The node to add
+        */
+       public void addNode(Node node);
+
+       /**
+        * Removes the given node from the core.
+        * 
+        * @param node
+        *            The node to remove
+        */
+       public void removeNode(Node node);
+
+       /**
         * Returns the list of all configured nodes.
-        *
+        * 
         * @return All configured nodes
         */
        public List<Node> getNodes();
 
        /**
         * Returns whether the core is currently connected to the given node.
-        *
+        * 
         * @param node
         *            The node to check
         * @return <code>true</code> if the core is currently connected to the
@@ -74,7 +90,7 @@ public interface Core {
 
        /**
         * Connects to the given node.
-        *
+        * 
         * @param node
         *            The node to connect to
         */
@@ -82,7 +98,7 @@ public interface Core {
 
        /**
         * Disconnects from the given node.
-        *
+        * 
         * @param node
         *            The node to disconnect from
         */