Refactor: Move monitor package from core to seedNode and rename to reporting

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2022-12-11 17:10:02 -05:00
parent 1e32d86b23
commit 1b10cc22db
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307
6 changed files with 14 additions and 13 deletions

View File

@ -17,6 +17,11 @@
package bisq.seednode;
import bisq.seednode.reporting.DoubleValueItem;
import bisq.seednode.reporting.LongValueItem;
import bisq.seednode.reporting.ReportingItems;
import bisq.seednode.reporting.StringValueItem;
import bisq.core.dao.DaoFacade;
import bisq.core.dao.monitoring.BlindVoteStateMonitoringService;
import bisq.core.dao.monitoring.DaoStateMonitoringService;
@ -26,10 +31,6 @@ import bisq.core.dao.monitoring.model.DaoStateBlock;
import bisq.core.dao.monitoring.model.ProposalStateBlock;
import bisq.core.dao.state.DaoStateListener;
import bisq.core.dao.state.DaoStateService;
import bisq.core.monitor.DoubleValueItem;
import bisq.core.monitor.LongValueItem;
import bisq.core.monitor.ReportingItems;
import bisq.core.monitor.StringValueItem;
import bisq.network.p2p.P2PService;
import bisq.network.p2p.network.NetworkNode;

View File

@ -15,7 +15,7 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/
package bisq.core.monitor;
package bisq.seednode.reporting;
import lombok.Getter;
import lombok.Setter;

View File

@ -15,7 +15,7 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/
package bisq.core.monitor;
package bisq.seednode.reporting;
import lombok.Getter;
import lombok.Setter;

View File

@ -15,7 +15,7 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/
package bisq.core.monitor;
package bisq.seednode.reporting;
import bisq.common.proto.ProtobufferRuntimeException;
import bisq.common.proto.network.NetworkPayload;
@ -37,13 +37,13 @@ public interface ReportingItem extends NetworkPayload {
static ReportingItem fromProto(protobuf.ReportingItem proto) {
switch (proto.getMessageCase()) {
case STRING_VALUE_ITEM:
case MessageCase.STRING_VALUE_ITEM:
return StringValueItem.fromProto(proto, proto.getStringValueItem());
case LONG_VALUE_ITEM:
case MessageCase.LONG_VALUE_ITEM:
return LongValueItem.fromProto(proto, proto.getLongValueItem());
case DOUBLE_VALUE_ITEM:
case MessageCase.DOUBLE_VALUE_ITEM:
return DoubleValueItem.fromProto(proto, proto.getDoubleValueItem());
case MESSAGE_NOT_SET:
case MessageCase.MESSAGE_NOT_SET:
default:
throw new ProtobufferRuntimeException("Unknown message case: " + proto);
}

View File

@ -15,7 +15,7 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/
package bisq.core.monitor;
package bisq.seednode.reporting;
import bisq.common.proto.network.NetworkPayload;

View File

@ -15,7 +15,7 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/
package bisq.core.monitor;
package bisq.seednode.reporting;
import lombok.Getter;
import lombok.Setter;