At Fri, 21 Feb 2014 11:10:22 +0000,
Daniel P. Berrange wrote:
On Thu, Feb 13, 2014 at 04:22:53PM +0100, Claudio Bley wrote:
> Add LifecycleListener interface which needs to be implemented
> when the user wishes to receive lifecycle change events on domains.
>
> The DomainEvent class represents the kind of event that
> occurred including details on that event.
>
> Signed-off-by: Claudio Bley <cbley(a)av-test.de>
> ---
> src/main/java/org/libvirt/Connect.java | 66 ++++++++++++++++++
> src/main/java/org/libvirt/Domain.java | 18 +++++
> src/main/java/org/libvirt/event/CrashedDetail.java | 15 +++++
> src/main/java/org/libvirt/event/DefinedDetail.java | 17 +++++
> src/main/java/org/libvirt/event/DetailInfo.java | 5 ++
> src/main/java/org/libvirt/event/DomainEvent.java | 71 ++++++++++++++++++++
> .../java/org/libvirt/event/DomainEventDetail.java | 7 ++
> .../java/org/libvirt/event/DomainEventType.java | 60 +++++++++++++++++
> .../java/org/libvirt/event/LifecycleListener.java | 24 +++++++
> .../java/org/libvirt/event/PMSuspendedDetail.java | 15 +++++
> src/main/java/org/libvirt/event/ResumedDetail.java | 20 ++++++
> .../java/org/libvirt/event/ShutdownDetail.java | 12 ++++
> src/main/java/org/libvirt/event/StartedDetail.java | 30 +++++++++
> src/main/java/org/libvirt/event/StoppedDetail.java | 40 +++++++++++
> .../java/org/libvirt/event/SuspendedDetail.java | 40 +++++++++++
> .../java/org/libvirt/event/UndefinedDetail.java | 7 ++
> src/main/java/org/libvirt/jna/Libvirt.java | 7 ++
> 17 files changed, 454 insertions(+)
> create mode 100644 src/main/java/org/libvirt/event/CrashedDetail.java
> create mode 100644 src/main/java/org/libvirt/event/DefinedDetail.java
> create mode 100644 src/main/java/org/libvirt/event/DetailInfo.java
> create mode 100644 src/main/java/org/libvirt/event/DomainEvent.java
> create mode 100644 src/main/java/org/libvirt/event/DomainEventDetail.java
> create mode 100644 src/main/java/org/libvirt/event/DomainEventType.java
> create mode 100644 src/main/java/org/libvirt/event/LifecycleListener.java
> create mode 100644 src/main/java/org/libvirt/event/PMSuspendedDetail.java
> create mode 100644 src/main/java/org/libvirt/event/ResumedDetail.java
> create mode 100644 src/main/java/org/libvirt/event/ShutdownDetail.java
> create mode 100644 src/main/java/org/libvirt/event/StartedDetail.java
> create mode 100644 src/main/java/org/libvirt/event/StoppedDetail.java
> create mode 100644 src/main/java/org/libvirt/event/SuspendedDetail.java
> create mode 100644 src/main/java/org/libvirt/event/UndefinedDetail.java
ACK
Thanks. I just noticed one minor thing:
diff --git a/src/main/java/org/libvirt/Connect.java
b/src/main/java/org/libvirt/Connect.java
index bbbd000..d82dba2 100644
--- a/src/main/java/org/libvirt/Connect.java
+++ b/src/main/java/org/libvirt/Connect.java
+ /**
+ * Adds the specified listener to receive lifecycle events for
+ * domains of this connections.
s/connections/connection
I'll fix that typo before pushing.
Claudio