Skip to content

Commit

Permalink
Changed models package from ps models
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleymonte committed Nov 21, 2019
1 parent fe7f13f commit b1a6b76
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.fogbowcloud.app.api.dtos.QueueDTORequest;
import org.fogbowcloud.app.api.dtos.QueueDTOResponse;
import org.fogbowcloud.app.api.dtos.ResourceDTORequest;
import org.fogbowcloud.app.api.dtos.ResourceNode;
import org.fogbowcloud.app.api.dtos.ResourceDTOResponse;
import org.fogbowcloud.app.core.ApplicationFacade;
import org.fogbowcloud.app.core.exceptions.UnauthorizedRequestException;
Expand All @@ -27,7 +27,7 @@ public List<QueueDTO> getQueues(User user) {
return this.applicationFacade.getQueues(user);
}

public ResourceDTOResponse addNode(User user, String queueId, ResourceDTORequest node) throws UnauthorizedRequestException {
public ResourceDTOResponse addNode(User user, String queueId, ResourceNode node) throws UnauthorizedRequestException {
return this.applicationFacade.addNode(user, queueId, node);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.apache.log4j.Logger;
import org.fogbowcloud.app.core.constants.ConfProperty;
import org.fogbowcloud.app.ps.Constants.Endpoint;
import org.fogbowcloud.app.ps.dto.Pool;
import org.fogbowcloud.app.ps.models.Pool;
import org.fogbowcloud.app.utils.HttpWrapper;

public class ProvisioningRequestHelper {
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/org/fogbowcloud/app/ps/models/Node.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.fogbowcloud.app.ps.dto;
package org.fogbowcloud.app.ps.models;

import com.google.gson.annotations.SerializedName;

Expand All @@ -21,4 +21,8 @@ public String getState() {
public boolean isProvisioned() {
return state.equals("PROVISIONED");
}

public boolean isFailed() {
return state.equals("FAILED");
}
}
2 changes: 1 addition & 1 deletion src/main/java/org/fogbowcloud/app/ps/models/Pool.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.fogbowcloud.app.ps.dto;
package org.fogbowcloud.app.ps.models;

import com.google.gson.annotations.SerializedName;
import java.util.List;
Expand Down

0 comments on commit b1a6b76

Please sign in to comment.