mirror of https://github.com/hyperledger/besu
Remove OrionConfiguration (#644)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>pull/2/head
parent
8fcee3222a
commit
d6a04f416b
@ -1,49 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2019 ConsenSys AG. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
|
||||||
* the License. You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on |
|
||||||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
|
||||||
* specific language governing permissions and limitations under the License. |
|
||||||
*/ |
|
||||||
package tech.pegasys.pantheon.orion; |
|
||||||
|
|
||||||
public class OrionConfiguration { |
|
||||||
|
|
||||||
private static final String DEFAULT_ORION_URL = "http://localhost:8888"; |
|
||||||
|
|
||||||
private boolean enabled; |
|
||||||
private String url; |
|
||||||
|
|
||||||
public static OrionConfiguration createDefault() { |
|
||||||
final OrionConfiguration config = new OrionConfiguration(); |
|
||||||
config.setEnabled(false); |
|
||||||
config.setUrl(DEFAULT_ORION_URL); |
|
||||||
return config; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public String toString() { |
|
||||||
return "OrionConfiguration{" + "enabled=" + enabled + ", url='" + url + '\'' + '}'; |
|
||||||
} |
|
||||||
|
|
||||||
public void setUrl(final String url) { |
|
||||||
this.url = url; |
|
||||||
} |
|
||||||
|
|
||||||
public String getUrl() { |
|
||||||
return this.url; |
|
||||||
} |
|
||||||
|
|
||||||
public boolean isEnabled() { |
|
||||||
return enabled; |
|
||||||
} |
|
||||||
|
|
||||||
public void setEnabled(final boolean enabled) { |
|
||||||
this.enabled = enabled; |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue