Search in sources :

Example 31 with DataStructure

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure in project fabric8 by jboss-fuse.

the class BrokerInfoMarshaller method tightMarshal1.

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
    BrokerInfo info = (BrokerInfo) o;
    int rc = super.tightMarshal1(wireFormat, o, 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());
    return rc + 0;
}
Also used : DataStructure(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure) BrokerInfo(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.BrokerInfo)

Example 32 with DataStructure

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure in project fabric8 by jboss-fuse.

the class ConnectionErrorMarshaller method tightMarshal1.

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
    ConnectionError info = (ConnectionError) o;
    int rc = super.tightMarshal1(wireFormat, o, bs);
    rc += tightMarshalThrowable1(wireFormat, info.getException(), bs);
    rc += tightMarshalNestedObject1(wireFormat, (DataStructure) info.getConnectionId(), bs);
    return rc + 0;
}
Also used : ConnectionError(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConnectionError) DataStructure(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure)

Example 33 with DataStructure

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure in project fabric8 by jboss-fuse.

the class ConnectionErrorMarshaller method looseMarshal.

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public void looseMarshal(OpenWireFormat wireFormat, Object o, DataByteArrayOutputStream dataOut) throws IOException {
    ConnectionError info = (ConnectionError) o;
    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalThrowable(wireFormat, info.getException(), dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure) info.getConnectionId(), dataOut);
}
Also used : ConnectionError(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConnectionError)

Example 34 with DataStructure

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure in project fabric8 by jboss-fuse.

the class ConnectionInfoMarshaller method tightMarshal1.

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
    ConnectionInfo info = (ConnectionInfo) o;
    int rc = super.tightMarshal1(wireFormat, o, bs);
    rc += tightMarshalCachedObject1(wireFormat, (DataStructure) info.getConnectionId(), bs);
    rc += tightMarshalString1(info.getClientId(), bs);
    rc += tightMarshalString1(info.getPassword(), bs);
    rc += tightMarshalString1(info.getUserName(), bs);
    rc += tightMarshalObjectArray1(wireFormat, info.getBrokerPath(), bs);
    bs.writeBoolean(info.isBrokerMasterConnector());
    bs.writeBoolean(info.isManageable());
    return rc + 0;
}
Also used : DataStructure(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure) ConnectionInfo(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConnectionInfo)

Example 35 with DataStructure

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure in project fabric8 by jboss-fuse.

the class ConnectionInfoMarshaller method looseMarshal.

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public void looseMarshal(OpenWireFormat wireFormat, Object o, DataByteArrayOutputStream dataOut) throws IOException {
    ConnectionInfo info = (ConnectionInfo) o;
    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure) info.getConnectionId(), dataOut);
    looseMarshalString(info.getClientId(), dataOut);
    looseMarshalString(info.getPassword(), dataOut);
    looseMarshalString(info.getUserName(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getBrokerPath(), dataOut);
    dataOut.writeBoolean(info.isBrokerMasterConnector());
    dataOut.writeBoolean(info.isManageable());
}
Also used : ConnectionInfo(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConnectionInfo)

Aggregations

DataStructure (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataStructure)30 IOException (java.io.IOException)7 Message (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.Message)6 DataResponse (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DataResponse)5 RemoveInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.RemoveInfo)5 BrokerInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.BrokerInfo)3 ConnectionError (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConnectionError)3 ConnectionInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConnectionInfo)3 ConsumerControl (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConsumerControl)3 ConsumerInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConsumerInfo)3 DestinationInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DestinationInfo)3 LocalTransactionId (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.LocalTransactionId)3 MessageAck (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageAck)3 MessageDispatch (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageDispatch)3 MessageDispatchNotification (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageDispatchNotification)3 MessageId (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageId)3 NetworkBridgeFilter (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.NetworkBridgeFilter)3 ProducerInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ProducerInfo)3 RemoveSubscriptionInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.RemoveSubscriptionInfo)3 SessionInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionInfo)3