public int tightMarshal1()

in openwire-core/src/main/java/org/apache/activemq/openwire/codec/universal/BrokerInfoMarshaller.java [108:137]


    public int tightMarshal1(OpenWireFormat wireFormat, Object source, BooleanStream bs) throws IOException {
        BrokerInfo info = (BrokerInfo) source;
        int version = wireFormat.getVersion();

        int rc = super.tightMarshal1(wireFormat, source, bs);
        rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getBrokerId(), bs);
        rc += tightMarshalString1(info.getBrokerURL(), bs);
        rc += tightMarshalObjectArray1(wireFormat, info.getPeerBrokerInfos(), bs);
        rc += tightMarshalString1(info.getBrokerName(), bs);
        bs.writeBoolean(info.isSlaveBroker());
        bs.writeBoolean(info.isMasterBroker());
        bs.writeBoolean(info.isFaultTolerantConfiguration());
        if (version >= 2) {
            bs.writeBoolean(info.isDuplexConnection());
        }
        if (version >= 2) {
            bs.writeBoolean(info.isNetworkConnection());
        }
        if (version >= 2) {
            rc += tightMarshalLong1(wireFormat, info.getConnectionId(), bs);
        }
        if (version >= 3) {
            rc += tightMarshalString1(info.getBrokerUploadUrl(), bs);
        }
        if (version >= 3) {
            rc += tightMarshalString1(info.getNetworkProperties(), bs);
        }

        return rc + 0;
    }