aboutsummaryrefslogtreecommitdiff
path: root/subsonic-booter/src/main/java/net/sourceforge/subsonic/booter/agent/SubsonicListener.java
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-booter/src/main/java/net/sourceforge/subsonic/booter/agent/SubsonicListener.java')
-rw-r--r--subsonic-booter/src/main/java/net/sourceforge/subsonic/booter/agent/SubsonicListener.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/subsonic-booter/src/main/java/net/sourceforge/subsonic/booter/agent/SubsonicListener.java b/subsonic-booter/src/main/java/net/sourceforge/subsonic/booter/agent/SubsonicListener.java
new file mode 100644
index 00000000..d6239c0d
--- /dev/null
+++ b/subsonic-booter/src/main/java/net/sourceforge/subsonic/booter/agent/SubsonicListener.java
@@ -0,0 +1,28 @@
+package net.sourceforge.subsonic.booter.agent;
+
+import net.sourceforge.subsonic.booter.deployer.DeploymentStatus;
+
+/**
+ * Callback interface implemented by GUI classes that wants to be notified when
+ * the state of the Subsonic deployment changes.
+ *
+ * @author Sindre Mehus
+ */
+public interface SubsonicListener {
+
+ /**
+ * Invoked when new information about the Subsonic deployment is available.
+ *
+ * @param deploymentStatus The new deployment status, or <code>null</code> if an
+ * error occurred while retrieving the status.
+ */
+ void notifyDeploymentStatus(DeploymentStatus deploymentStatus);
+
+ /**
+ * Invoked when new information about the Subsonic Windows service is available.
+ *
+ * @param serviceStatus The new service status, or <code>null</code> if an
+ * error occurred while retrieving the status.
+ */
+ void notifyServiceStatus(String serviceStatus);
+}