Feature/web gui2 (#16)
Some checks failed
Java CI with Gradle / build (push) Has been cancelled
Some checks failed
Java CI with Gradle / build (push) Has been cancelled
Add oveview and enhance.
This commit is contained in:
parent
8567a2f052
commit
6f45e7982a
32 changed files with 1382 additions and 250 deletions
|
|
@ -22,22 +22,27 @@ import org.jgrapes.core.Channel;
|
|||
import org.jgrapes.core.Event;
|
||||
|
||||
/**
|
||||
* Starts a VM.
|
||||
* Modifies a VM.
|
||||
*/
|
||||
@SuppressWarnings("PMD.DataClass")
|
||||
public class StartVm extends Event<Void> {
|
||||
public class ModifyVm extends Event<Void> {
|
||||
|
||||
private final String name;
|
||||
private final String path;
|
||||
private final Object value;
|
||||
|
||||
/**
|
||||
* Instantiates a new start vm event.
|
||||
* Instantiates a new modify vm event.
|
||||
*
|
||||
* @param channels the channels
|
||||
* @param name the name
|
||||
*/
|
||||
public StartVm(String name, Channel... channels) {
|
||||
public ModifyVm(String name, String path, Object value,
|
||||
Channel... channels) {
|
||||
super(channels);
|
||||
this.name = name;
|
||||
this.path = path;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -49,4 +54,22 @@ public class StartVm extends Event<Void> {
|
|||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the path.
|
||||
*
|
||||
* @return the path
|
||||
*/
|
||||
public String path() {
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value.
|
||||
*
|
||||
* @return the value
|
||||
*/
|
||||
public Object value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
/*
|
||||
* VM-Operator
|
||||
* Copyright (C) 2023 Michael N. Lipp
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.jdrupes.vmoperator.manager.events;
|
||||
|
||||
import org.jgrapes.core.Channel;
|
||||
import org.jgrapes.core.Event;
|
||||
|
||||
/**
|
||||
* Stops a VM.
|
||||
*/
|
||||
@SuppressWarnings("PMD.DataClass")
|
||||
public class StopVm extends Event<Void> {
|
||||
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* Instantiates a new start vm event.
|
||||
*
|
||||
* @param channels the channels
|
||||
* @param name the name
|
||||
*/
|
||||
public StopVm(String name, Channel... channels) {
|
||||
super(channels);
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name.
|
||||
*
|
||||
* @return the name
|
||||
*/
|
||||
public String name() {
|
||||
return name;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue