mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
Refactor: Move monitor package from core to seedNode and rename to reporting
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
1e32d86b23
commit
1b10cc22db
@ -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;
|
||||
|
@ -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;
|
@ -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;
|
@ -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);
|
||||
}
|
@ -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;
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user