/**
- * Copyright 2016 ZTE Corporation.
+ * Copyright 2016 ZTE, Inc. and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-package org.openo.msb;
+package org.onap.msb.apiroute;
import io.dropwizard.Configuration;
import javax.validation.Valid;
import org.hibernate.validator.constraints.NotEmpty;
-import org.openo.msb.api.ConsulInfo;
-import org.openo.msb.api.DiscoverInfo;
+import org.onap.msb.apiroute.api.DiscoverInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
@NotEmpty
private String defaultName = "Stranger";
-
- @NotEmpty
- private String propertiesName="redis.properties";
-
- @NotEmpty
- private String propertiesDir="conf";
-
+
@Valid
private DiscoverInfo discoverInfo;
- @Valid
- private ConsulInfo consulInfo;
-
- @JsonProperty
- public ConsulInfo getConsulInfo() {
- return consulInfo;
- }
-
- @JsonProperty
- public void setConsulInfo(ConsulInfo consulInfo) {
- this.consulInfo = consulInfo;
- }
-
-
- public String getPropertiesDir() {
- return propertiesDir;
- }
-
- public void setPropertiesDir(String propertiesDir) {
- this.propertiesDir = propertiesDir;
- }
-
- public String getPropertiesName() {
- return propertiesName;
- }
-
- public void setPropertiesName(String propertiesName) {
- this.propertiesName = propertiesName;
- }
-
+
@JsonProperty
public String getDefaultWorkspace() {
return defaultWorkspace;