Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't run jobs (by default) if an engine hasn't been registered.
- Loading branch information
Showing
13 changed files
with
103 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
symmetric/src/main/java/org/jumpmind/symmetric/service/INotificationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.jumpmind.symmetric.service; | ||
|
||
import javax.management.Notification; | ||
|
||
public interface INotificationService { | ||
|
||
public void sendNotification(Notification event); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
symmetric/src/main/java/org/jumpmind/symmetric/service/jmx/NotificationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.jumpmind.symmetric.service.jmx; | ||
|
||
import javax.management.Notification; | ||
|
||
import org.jumpmind.symmetric.service.INotificationService; | ||
import org.springframework.jmx.export.annotation.ManagedResource; | ||
import org.springframework.jmx.export.notification.NotificationPublisher; | ||
import org.springframework.jmx.export.notification.NotificationPublisherAware; | ||
|
||
@ManagedResource(description = "Provide an implementation of SymmetricDS notifications by JMX") | ||
public class NotificationService implements NotificationPublisherAware, INotificationService { | ||
|
||
NotificationPublisher notificationPublisher; | ||
|
||
public void setNotificationPublisher(NotificationPublisher notificationPublisher) { | ||
this.notificationPublisher = notificationPublisher; | ||
} | ||
|
||
public void sendNotification(Notification event) { | ||
this.notificationPublisher.sendNotification(event); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters