aboutsummaryrefslogtreecommitdiff
path: root/subsonic-booter/src/main/java/net/sourceforge/subsonic/booter/agent/SubsonicListener.java
blob: d6239c0df741379e53094598f25a823879da879d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
}