Kanagaraj M has uploaded a new change for review. Change subject: engine: Adding no-arg constructor to gluster parameters ......................................................................
engine: Adding no-arg constructor to gluster parameters Added a no-arg constructor to all gluster parameters. This is to make sure these parameter classes are added to GWT serialization policy whitelist. Change-Id: I4ab197e9fb8f9d8f7f0be021716a6b3a028f1546 Signed-off-by: Kanagaraj M <kmayi...@redhat.com> --- M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/CreateGlusterVolumeParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterClusterParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookManageParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeActionParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksActionParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeOptionParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRebalanceParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRemoveBricksParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeReplaceBrickActionParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/RemoveGlusterServerParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/ResetGlusterVolumeOptionsParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/AddedGlusterServersParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookContentQueryParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookQueryParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServersQueryParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServiceQueryParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeAdvancedDetailsParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeQueriesParameters.java 22 files changed, 66 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/68/17368/1 diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/CreateGlusterVolumeParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/CreateGlusterVolumeParameters.java index e953ea9..74e209a 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/CreateGlusterVolumeParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/CreateGlusterVolumeParameters.java @@ -16,6 +16,9 @@ @Valid private GlusterVolumeEntity volume; + public CreateGlusterVolumeParameters() { + } + public CreateGlusterVolumeParameters(GlusterVolumeEntity volume) { setVolume(volume); } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterClusterParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterClusterParameters.java index 306d8295..5e86e7c 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterClusterParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterClusterParameters.java @@ -12,6 +12,9 @@ @NotNull(message = "VALIDATION.GLUSTER.VOLUME.CLUSTER_ID.NOT_NULL") private Guid clusterId; + public GlusterClusterParameters() { + } + public GlusterClusterParameters(Guid clusterId) { super(); this.clusterId = clusterId; @@ -20,7 +23,4 @@ public Guid getClusterId() { return clusterId; } - - - } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookManageParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookManageParameters.java index 6469820..58e0c19 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookManageParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookManageParameters.java @@ -12,6 +12,9 @@ private Guid sourceServerId; + public GlusterHookManageParameters() { + } + public GlusterHookManageParameters(Guid hookId) { super(hookId); } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookParameters.java index 7e4e148..924a6b3 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterHookParameters.java @@ -12,6 +12,9 @@ @NotNull(message = "VALIDATION.GLUSTER.GLUSTER_HOOK_ID.NOT_NULL") private Guid hookId; + public GlusterHookParameters() { + } + public GlusterHookParameters(Guid hookId) { setHookId(hookId); } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeActionParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeActionParameters.java index 063281f..5e1606f 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeActionParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeActionParameters.java @@ -11,6 +11,9 @@ private boolean forceAction; + public GlusterVolumeActionParameters() { + } + public GlusterVolumeActionParameters(Guid volumeId, boolean forceAction) { super(volumeId); setForceAction(forceAction); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksActionParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksActionParameters.java index d297b06..1b5d5d9 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksActionParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksActionParameters.java @@ -11,6 +11,9 @@ private int replicaCount = 0; private int stripeCount = 0; + public GlusterVolumeBricksActionParameters() { + } + public GlusterVolumeBricksActionParameters(Guid volumeId, List<GlusterBrickEntity> bricks, int replicaCount, int stripeCount) { super(volumeId, bricks); setReplicaCount(replicaCount); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksParameters.java index f8b55a7..ef3c07d 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeBricksParameters.java @@ -16,6 +16,9 @@ @NotNull(message = "VALIDATION.GLUSTER.VOLUME.BRICKS.NOT_NULL") private List<GlusterBrickEntity> bricks; + public GlusterVolumeBricksParameters() { + } + public GlusterVolumeBricksParameters(Guid volumeId, List<GlusterBrickEntity> bricks) { super(volumeId); setBricks(bricks); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeOptionParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeOptionParameters.java index a4fb1f9..4958316 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeOptionParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeOptionParameters.java @@ -15,6 +15,9 @@ @Valid private GlusterVolumeOptionEntity volumeOption; + public GlusterVolumeOptionParameters() { + } + public GlusterVolumeOptionParameters(GlusterVolumeOptionEntity option) { super(option.getVolumeId()); setVolumeOption(option); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeParameters.java index 6ed1587..9b766e9 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeParameters.java @@ -16,6 +16,9 @@ @NotNull(message = "VALIDATION.GLUSTER.VOLUME.ID.NOT_NULL") private Guid volumeId; + public GlusterVolumeParameters() { + } + public GlusterVolumeParameters(Guid volumeId) { setVolumeId(volumeId); } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRebalanceParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRebalanceParameters.java index e988b97..0ee974a 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRebalanceParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRebalanceParameters.java @@ -12,6 +12,9 @@ private boolean fixLayoutOnly; private boolean forceAction; + public GlusterVolumeRebalanceParameters() { + } + public GlusterVolumeRebalanceParameters(Guid volumeId, boolean fixLayoutOnly, boolean forceAction) { super(volumeId); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRemoveBricksParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRemoveBricksParameters.java index 5e55d4d..847d9fe 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRemoveBricksParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeRemoveBricksParameters.java @@ -21,6 +21,9 @@ private int replicaCount = 0; + public GlusterVolumeRemoveBricksParameters() { + } + public GlusterVolumeRemoveBricksParameters(Guid volumeId, List<GlusterBrickEntity> bricks) { super(volumeId); setBricks(bricks); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeReplaceBrickActionParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeReplaceBrickActionParameters.java index 602f93f..892e84b 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeReplaceBrickActionParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/GlusterVolumeReplaceBrickActionParameters.java @@ -17,6 +17,9 @@ private GlusterBrickEntity newBrick; + public GlusterVolumeReplaceBrickActionParameters() { + } + public GlusterVolumeReplaceBrickActionParameters(Guid volumeId, GlusterTaskOperation action, GlusterBrickEntity existingBrick, diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/RemoveGlusterServerParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/RemoveGlusterServerParameters.java index a02279a..0fcc857 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/RemoveGlusterServerParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/RemoveGlusterServerParameters.java @@ -14,6 +14,9 @@ private String hostnameOrIp; private boolean forceAction; + public RemoveGlusterServerParameters() { + } + public RemoveGlusterServerParameters(Guid clusterId, String hostnameOrIp, boolean forceAction) { setClusterId(clusterId); setHostnameOrIp(hostnameOrIp); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/ResetGlusterVolumeOptionsParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/ResetGlusterVolumeOptionsParameters.java index d9cc7ae..96b5051 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/ResetGlusterVolumeOptionsParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/gluster/ResetGlusterVolumeOptionsParameters.java @@ -14,6 +14,9 @@ private boolean forceAction = false; + public ResetGlusterVolumeOptionsParameters() { + } + public ResetGlusterVolumeOptionsParameters(Guid volumeId, GlusterVolumeOptionEntity volumeOption, boolean forceAction) { super(volumeId); setVolumeOption(volumeOption); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/AddedGlusterServersParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/AddedGlusterServersParameters.java index 4f9d893..7c1c55a 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/AddedGlusterServersParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/AddedGlusterServersParameters.java @@ -10,6 +10,9 @@ private boolean isServerKeyFingerprintRequired; + public AddedGlusterServersParameters() { + } + public AddedGlusterServersParameters(Guid clusterId, boolean isServerKeyFingerprintRequired) { super(clusterId); setServerKeyFingerprintRequired(isServerKeyFingerprintRequired); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookContentQueryParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookContentQueryParameters.java index 4d033a6..e239720 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookContentQueryParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookContentQueryParameters.java @@ -17,6 +17,9 @@ private Guid glusterServerId = null; + public GlusterHookContentQueryParameters() { + } + public GlusterHookContentQueryParameters(Guid glusterHookId) { setGlusterHookId(glusterHookId); } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookQueryParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookQueryParameters.java index da05043..023e4cb 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookQueryParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookQueryParameters.java @@ -11,6 +11,9 @@ private boolean includeServerHooks = false; + public GlusterHookQueryParameters() { + } + public GlusterHookQueryParameters(Guid hookId) { this.hookId = hookId; } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterParameters.java index 56f5dff..1c8a3ef 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterParameters.java @@ -14,6 +14,9 @@ @NotNull(message = "VALIDATION.GLUSTER.VOLUME.CLUSTER_ID.NOT_NULL") private Guid clusterId; + public GlusterParameters() { + } + public GlusterParameters(Guid clusterId) { setClusterId(clusterId); } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServersQueryParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServersQueryParameters.java index 4005bf9..d21e79b 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServersQueryParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServersQueryParameters.java @@ -15,6 +15,9 @@ private String fingerprint; + public GlusterServersQueryParameters() { + } + public GlusterServersQueryParameters(String serverName, String password) { setServerName(serverName); setPassword(password); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServiceQueryParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServiceQueryParameters.java index 5b92405..87af6d4 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServiceQueryParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterServiceQueryParameters.java @@ -10,6 +10,9 @@ private ServiceType serviceType; + public GlusterServiceQueryParameters() { + } + public GlusterServiceQueryParameters(Guid groupId) { super(groupId); } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeAdvancedDetailsParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeAdvancedDetailsParameters.java index e014546..ce8fda3 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeAdvancedDetailsParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeAdvancedDetailsParameters.java @@ -13,6 +13,9 @@ private Guid brickId; private boolean detailRequired; + public GlusterVolumeAdvancedDetailsParameters() { + } + public GlusterVolumeAdvancedDetailsParameters(Guid clusterId, Guid volumeId, Guid brickId, diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeQueriesParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeQueriesParameters.java index a516fd0..c53366d 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeQueriesParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterVolumeQueriesParameters.java @@ -11,6 +11,9 @@ private static final long serialVersionUID = 199106704417008718L; private Guid volumeId; + public GlusterVolumeQueriesParameters() { + } + public GlusterVolumeQueriesParameters(Guid clusterId, Guid volumeId) { super(clusterId); setVolumeId(volumeId); -- To view, visit http://gerrit.ovirt.org/17368 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4ab197e9fb8f9d8f7f0be021716a6b3a028f1546 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Kanagaraj M <kmayi...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches