whitespace fixups
[jSite2.git] / src / net / pterodactylus / jsite / core / CoreImpl.java
index 2296e22..cff97c6 100644 (file)
@@ -32,7 +32,7 @@ import net.pterodactylus.util.logging.Logging;
 
 /**
  * The core of jSite.
- * 
+ *
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
  */
 public class CoreImpl implements Core, NodeListener, RequestListener {
@@ -79,7 +79,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that the projects were loaded successfully.
-        * 
+        *
         * @param directory
         *            The directory the projects were loaded from
         */
@@ -93,7 +93,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
        /**
         * Notifies all core listeners that loading the projects from the given
         * directory has failed.
-        * 
+        *
         * @param directory
         *            The directory the projects were tried to load from
         * @param throwable
@@ -108,7 +108,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that the projects were successfully saved.
-        * 
+        *
         * @param directory
         *            The directory the projects were saved to
         */
@@ -121,7 +121,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that the projects could not be saved.
-        * 
+        *
         * @param directory
         *            The directory the projects were to be saved to
         * @param throwable
@@ -136,7 +136,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that a project was added.
-        * 
+        *
         * @param project
         *            The project that was added
         */
@@ -149,7 +149,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that a project was cloned.
-        * 
+        *
         * @param clonedProject
         *            The project that was cloned
         * @param projectClone
@@ -164,7 +164,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that a project was removed.
-        * 
+        *
         * @param project
         *            The project that was removed
         */
@@ -177,7 +177,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that the nodes were successfully loaded.
-        * 
+        *
         * @param directory
         *            The directory the nodes were loaded from
         */
@@ -190,7 +190,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that loading the nodes has failed.
-        * 
+        *
         * @param directory
         *            The directory the nodes were loaded from
         * @param throwable
@@ -205,7 +205,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that the nodes were saved successfully.
-        * 
+        *
         * @param directory
         *            The directory the nodes were saved to
         */
@@ -218,7 +218,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that saving the nodes has failed.
-        * 
+        *
         * @param directory
         *            The directory the nodes were saved to
         * @param throwable
@@ -253,7 +253,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that a node was added to the core.
-        * 
+        *
         * @param node
         *            The node that was added
         */
@@ -266,7 +266,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that a node was removed from the core.
-        * 
+        *
         * @param node
         *            The node that was removed
         */
@@ -280,7 +280,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
        /**
         * Notifies all listeners that a connection to the given node is now being
         * established.
-        * 
+        *
         * @param node
         *            The node that is being connected to
         */
@@ -293,7 +293,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that the given node is now connected.
-        * 
+        *
         * @param node
         *            The node that is now connected
         */
@@ -306,7 +306,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that a connection to a node has failed.
-        * 
+        *
         * @param node
         *            The node that could not be connected
         * @param cause
@@ -321,7 +321,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Notifies all listeners that the given node was disconnected.
-        * 
+        *
         * @param node
         *            The node that is now disconnected
         * @param throwable
@@ -348,7 +348,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Returns the project manager.
-        * 
+        *
         * @return The project manager
         */
        public ProjectManager getProjectManager() {
@@ -357,7 +357,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Sets the project manager to use.
-        * 
+        *
         * @param projectManager
         *            The project manager to use
         */
@@ -367,7 +367,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Returns the node manager.
-        * 
+        *
         * @return The node manager
         */
        public NodeManager getNodeManager() {
@@ -376,7 +376,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Sets the node manager to use.
-        * 
+        *
         * @param nodeManager
         *            The node manager to use
         */
@@ -386,7 +386,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
 
        /**
         * Sets the request manager to use.
-        * 
+        *
         * @param requestManager
         *            The request manager to use
         */
@@ -463,7 +463,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         * {@inheritDoc}
         */
        public boolean addNode(Node node) throws UnknownHostException {
-               logger.log(Level.INFO, "addNode(node=" + node + ")");
+               logger.log(Level.FINEST, "addNode(node=" + node + ")");
                return nodeManager.addNode(node);
        }
 
@@ -471,7 +471,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         * {@inheritDoc}
         */
        public void removeNode(Node node) {
-               logger.log(Level.INFO, "removeNode(node=" + node + ")");
+               logger.log(Level.FINEST, "removeNode(node=" + node + ")");
                nodeManager.removeNode(node);
        }
 
@@ -479,7 +479,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         * {@inheritDoc}
         */
        public void connectToNode(Node node) {
-               logger.log(Level.INFO, "connectToNode(node=" + node + ")");
+               logger.log(Level.FINEST, "connectToNode(node=" + node + ")");
                fireNodeConnecting(node);
                nodeManager.connect(node);
        }
@@ -488,7 +488,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         * {@inheritDoc}
         */
        public void disconnectFromNode(Node node) {
-               logger.log(Level.INFO, "disconnectFromNode(node=" + node + ")");
+               logger.log(Level.FINEST, "disconnectFromNode(node=" + node + ")");
                nodeManager.disconnect(node);
        }
 
@@ -496,7 +496,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         * {@inheritDoc}
         */
        public void createProject() throws IOException, JSiteException {
-               logger.log(Level.INFO, "createProject()");
+               logger.log(Level.FINEST, "createProject()");
                Project newProject = projectManager.createProject();
                fireProjectAdded(newProject);
        }
@@ -505,7 +505,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         * {@inheritDoc}
         */
        public void cloneProject(Project project) {
-               logger.log(Level.INFO, "cloneProject(project=" + project + ")");
+               logger.log(Level.FINEST, "cloneProject(project=" + project + ")");
                Project projectClone = projectManager.cloneProject(project);
                fireProjectCloned(project, projectClone);
        }
@@ -514,7 +514,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         * {@inheritDoc}
         */
        public void removeProject(Project project) {
-               logger.log(Level.INFO, "removeProject(project=" + project + ")");
+               logger.log(Level.FINEST, "removeProject(project=" + project + ")");
                projectManager.removeProject(project);
                fireProjectRemoved(project);
        }
@@ -528,7 +528,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         */
        @SuppressWarnings("unused")
        private void loadConfig() {
-               logger.log(Level.INFO, "loadConfig()");
+               logger.log(Level.FINEST, "loadConfig()");
                /* TODO */
        }
 
@@ -537,7 +537,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         */
        @SuppressWarnings("unused")
        private void saveConfig() {
-               logger.log(Level.INFO, "saveConfig()");
+               logger.log(Level.FINEST, "saveConfig()");
                /* TODO */
        }