implement node addition and removal events
[jSite2.git] / src / net / pterodactylus / util / fcp / FcpListener.java
index fd5bfad..eafb5aa 100644 (file)
@@ -322,6 +322,57 @@ public interface FcpListener extends EventListener {
        public void receivedSubscribedUSKUpdate(FcpConnection fcpConnection, SubscribedUSKUpdate subscribedUSKUpdate);
 
        /**
+        * Notifies a listener that a “PluginInfo” message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param pluginInfo
+        *            The “PluginInfo” message
+        */
+       public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo);
+
+       /**
+        * Notifies a listener that an “FCPPluginReply“ message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param fcpPluginReply
+        *            The “FCPPluginReply” message
+        */
+       public void receivedFCPPluginReply(FcpConnection fcpConnection, FCPPluginReply fcpPluginReply);
+
+       /**
+        * Notifies a listener that a “PersistentRequestModified” message was
+        * received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param persistentRequestModified
+        *            The “PersistentRequestModified” message
+        */
+       public void receivedPersistentRequestModified(FcpConnection fcpConnection, PersistentRequestModified persistentRequestModified);
+
+       /**
+        * Notifies a listener that a “PutSuccessful” message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param putSuccessful
+        *            The “PutSuccessful” message
+        */
+       public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful);
+
+       /**
+        * Notifies a listener that a “PutFetchable” message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param putFetchable
+        *            The “PutFetchable” message
+        */
+       public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable);
+
+       /**
         * Notifies a listener that a “ProtocolError” was received.
         * 
         * @param fcpConnection
@@ -343,4 +394,14 @@ public interface FcpListener extends EventListener {
         */
        public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage);
 
+       /**
+        * Notifies a listener that a connection was closed. A closed connection can
+        * be reestablished by calling {@link FcpConnection#connect()} on the same
+        * object again.
+        * 
+        * @param fcpConnection
+        *            The connection that was closed.
+        */
+       public void connectionClosed(FcpConnection fcpConnection);
+
 }