Here are the examples of the java api class org.apache.activemq.openwire.commands.ConnectionInfo taken from open source projects.
1. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o the object to un-marshal * @param dataIn the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); }
2. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o the object to un-marshal * @param dataIn the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); }
3. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o the object to un-marshal * @param dataIn the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); }
4. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o the object to un-marshal * @param dataIn the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); }
5. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o the object to un-marshal * @param dataIn the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); }
6. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o the object to un-marshal * @param dataIn the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); }
7. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o the object to un-marshal * @param dataIn the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); }
8. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o the object to un-marshal * @param dataIn the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); }
9. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((org.apache.activemq.openwire.commands.ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); org.apache.activemq.openwire.commands.BrokerId value[] = new org.apache.activemq.openwire.commands.BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (org.apache.activemq.openwire.commands.BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); }
10. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((org.apache.activemq.openwire.commands.ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); org.apache.activemq.openwire.commands.BrokerId value[] = new org.apache.activemq.openwire.commands.BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (org.apache.activemq.openwire.commands.BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); }
11. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); dataOut.writeBoolean(info.isFaultTolerant()); dataOut.writeBoolean(info.isFailoverReconnect()); looseMarshalString(info.getClientIp(), dataOut); }
12. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o * the instance to be marshaled * @param dataOut * the output stream * @throws IOException * thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); tightMarshalString2(info.getClientIp(), dataOut, bs); }
13. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); bs.writeBoolean(info.isFaultTolerant()); bs.writeBoolean(info.isFailoverReconnect()); rc += tightMarshalString1(info.getClientIp(), bs); return rc + 0; }
14. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); dataOut.writeBoolean(info.isFaultTolerant()); dataOut.writeBoolean(info.isFailoverReconnect()); looseMarshalString(info.getClientIp(), dataOut); }
15. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o * the instance to be marshaled * @param dataOut * the output stream * @throws IOException * thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); tightMarshalString2(info.getClientIp(), dataOut, bs); }
16. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); bs.writeBoolean(info.isFaultTolerant()); bs.writeBoolean(info.isFailoverReconnect()); rc += tightMarshalString1(info.getClientIp(), bs); return rc + 0; }
17. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); dataOut.writeBoolean(info.isFaultTolerant()); dataOut.writeBoolean(info.isFailoverReconnect()); }
18. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o * the instance to be marshaled * @param dataOut * the output stream * @throws IOException * thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); }
19. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); bs.writeBoolean(info.isFaultTolerant()); bs.writeBoolean(info.isFailoverReconnect()); return rc + 0; }
20. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); dataOut.writeBoolean(info.isFaultTolerant()); dataOut.writeBoolean(info.isFailoverReconnect()); }
21. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o * the instance to be marshaled * @param dataOut * the output stream * @throws IOException * thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); }
22. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); bs.writeBoolean(info.isFaultTolerant()); bs.writeBoolean(info.isFailoverReconnect()); return rc + 0; }
23. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); }
24. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o the instance to be marshaled * @param dataOut the output stream * @throws IOException thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); }
25. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); return rc + 0; }
26. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); }
27. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o the instance to be marshaled * @param dataOut the output stream * @throws IOException thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); }
28. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); return rc + 0; }
29. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); }
30. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o the instance to be marshaled * @param dataOut the output stream * @throws IOException thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); }
31. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); return rc + 0; }
32. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); }
33. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o the instance to be marshaled * @param dataOut the output stream * @throws IOException thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); }
34. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); return rc + 0; }
35. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); dataOut.writeBoolean(info.isFaultTolerant()); dataOut.writeBoolean(info.isFailoverReconnect()); looseMarshalString(info.getClientIp(), dataOut); }
36. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o * the instance to be marshaled * @param dataOut * the output stream * @throws IOException * thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); tightMarshalString2(info.getClientIp(), dataOut, bs); }
37. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); bs.writeBoolean(info.isFaultTolerant()); bs.writeBoolean(info.isFailoverReconnect()); rc += tightMarshalString1(info.getClientIp(), bs); return rc + 0; }
38. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); dataOut.writeBoolean(info.isClientMaster()); dataOut.writeBoolean(info.isFaultTolerant()); dataOut.writeBoolean(info.isFailoverReconnect()); looseMarshalString(info.getClientIp(), dataOut); }
39. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o * the instance to be marshaled * @param dataOut * the output stream * @throws IOException * thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); bs.readBoolean(); tightMarshalString2(info.getClientIp(), dataOut, bs); }
40. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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()); bs.writeBoolean(info.isClientMaster()); bs.writeBoolean(info.isFaultTolerant()); bs.writeBoolean(info.isFailoverReconnect()); rc += tightMarshalString1(info.getClientIp(), bs); return rc + 0; }
41. ConnectionInfoMarshaller#looseMarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { ConnectionInfo info = (ConnectionInfo) o; super.looseMarshal(wireFormat, o, dataOut); looseMarshalCachedObject(wireFormat, 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()); }
42. ConnectionInfoMarshaller#tightMarshal2()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write a object instance to data output stream * * @param o * the instance to be marshaled * @param dataOut * the output stream * @throws IOException * thrown if an error occurs */ @Override public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo) o; tightMarshalCachedObject2(wireFormat, info.getConnectionId(), dataOut, bs); tightMarshalString2(info.getClientId(), dataOut, bs); tightMarshalString2(info.getPassword(), dataOut, bs); tightMarshalString2(info.getUserName(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs); bs.readBoolean(); bs.readBoolean(); }
43. ConnectionInfoMarshaller#tightMarshal1()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Write the booleans that this object uses to a BooleanStream */ @Override 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, 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; }
44. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); info.setFaultTolerant(dataIn.readBoolean()); info.setFailoverReconnect(dataIn.readBoolean()); info.setClientIp(looseUnmarshalString(dataIn)); }
45. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); info.setFaultTolerant(bs.readBoolean()); info.setFailoverReconnect(bs.readBoolean()); info.setClientIp(tightUnmarshalString(dataIn, bs)); }
46. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); info.setFaultTolerant(dataIn.readBoolean()); info.setFailoverReconnect(dataIn.readBoolean()); info.setClientIp(looseUnmarshalString(dataIn)); }
47. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); info.setFaultTolerant(bs.readBoolean()); info.setFailoverReconnect(bs.readBoolean()); info.setClientIp(tightUnmarshalString(dataIn, bs)); }
48. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); info.setFaultTolerant(dataIn.readBoolean()); info.setFailoverReconnect(dataIn.readBoolean()); info.setClientIp(looseUnmarshalString(dataIn)); }
49. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); info.setFaultTolerant(bs.readBoolean()); info.setFailoverReconnect(bs.readBoolean()); info.setClientIp(tightUnmarshalString(dataIn, bs)); }
50. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); info.setFaultTolerant(dataIn.readBoolean()); info.setFailoverReconnect(dataIn.readBoolean()); info.setClientIp(looseUnmarshalString(dataIn)); }
51. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); info.setFaultTolerant(bs.readBoolean()); info.setFailoverReconnect(bs.readBoolean()); info.setClientIp(tightUnmarshalString(dataIn, bs)); }
52. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); info.setFaultTolerant(dataIn.readBoolean()); info.setFailoverReconnect(dataIn.readBoolean()); }
53. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); info.setFaultTolerant(bs.readBoolean()); info.setFailoverReconnect(bs.readBoolean()); }
54. ConnectionInfoMarshaller#looseUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn)); info.setClientId(looseUnmarshalString(dataIn)); info.setPassword(looseUnmarshalString(dataIn)); info.setUserName(looseUnmarshalString(dataIn)); if (dataIn.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) looseUnmarsalNestedObject(wireFormat, dataIn); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(dataIn.readBoolean()); info.setManageable(dataIn.readBoolean()); info.setClientMaster(dataIn.readBoolean()); info.setFaultTolerant(dataIn.readBoolean()); info.setFailoverReconnect(dataIn.readBoolean()); }
55. ConnectionInfoMarshaller#tightUnmarshal()
Project: activemq-openwire
File: ConnectionInfoMarshaller.java
File: ConnectionInfoMarshaller.java
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */ @Override public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException { super.tightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo) o; info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs)); info.setClientId(tightUnmarshalString(dataIn, bs)); info.setPassword(tightUnmarshalString(dataIn, bs)); info.setUserName(tightUnmarshalString(dataIn, bs)); if (bs.readBoolean()) { short size = dataIn.readShort(); BrokerId value[] = new BrokerId[size]; for (int i = 0; i < size; i++) { value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat, dataIn, bs); } info.setBrokerPath(value); } else { info.setBrokerPath(null); } info.setBrokerMasterConnector(bs.readBoolean()); info.setManageable(bs.readBoolean()); info.setClientMaster(bs.readBoolean()); info.setFaultTolerant(bs.readBoolean()); info.setFailoverReconnect(bs.readBoolean()); }
56. OpenWireInteropTests#createConnectionInfo()
Project: activemq-openwire
File: OpenWireInteropTests.java
File: OpenWireInteropTests.java
protected ConnectionInfo createConnectionInfo() { ConnectionInfo info = new ConnectionInfo(connectionId.getConnectionId()); info.setManageable(false); info.setFaultTolerant(false); info.setClientId(name.getMethodName()); return info; }
57. MessageCompressionTest#receiveOpenWireBytesMessage()
Project: activemq-openwire
File: MessageCompressionTest.java
File: MessageCompressionTest.java
public OpenWireBytesMessage receiveOpenWireBytesMessage() throws Exception { connect(); assertTrue(awaitConnected(10, TimeUnit.SECONDS)); OpenWireConnection connection = new OpenWireConnection(); ConnectionInfo connectionInfo = connection.createConnectionInfo(); connectionInfo.setClientId(name.getMethodName()); assertTrue(request(connectionInfo, 10, TimeUnit.SECONDS)); assertEquals(1, brokerService.getAdminView().getCurrentConnectionsCount()); OpenWireSession sessionId = connection.createOpenWireSession(); assertTrue(request(sessionId.createSessionInfo(), 10, TimeUnit.SECONDS)); assertEquals(1, getProxyToQueue(getOpenWireQueue().getPhysicalName()).getQueueSize()); OpenWireConsumer consumerId = sessionId.createOpenWireConsumer(); ConsumerInfo consumerInfo = consumerId.createConsumerInfo(getOpenWireQueue()); consumerInfo.setDispatchAsync(false); consumerInfo.setPrefetchSize(1); assertTrue(request(consumerInfo, 10, TimeUnit.SECONDS)); assertEquals(1, brokerService.getAdminView().getQueueSubscribers().length); assertTrue("Should have received a message", Wait.waitFor(new Wait.Condition() { @Override public boolean isSatisified() throws Exception { return messages.size() == 1; } })); Message incoming = messages.poll(); assertTrue(incoming instanceof OpenWireBytesMessage); OpenWireBytesMessage received = (OpenWireBytesMessage) incoming; MessageAck ack = new MessageAck(); ack.setAckType(MessageAck.STANDARD_ACK_TYPE); ack.setConsumerId(consumerId.getConsumerId()); ack.setDestination(getOpenWireQueue()); ack.setLastMessageId(received.getMessageId()); ack.setMessageCount(1); assertTrue(request(ack, 60, TimeUnit.SECONDS)); assertEquals(0, getProxyToQueue(getOpenWireQueue().getPhysicalName()).getQueueSize()); assertTrue(request(connection.createRemoveInfo(), 10, TimeUnit.SECONDS)); assertEquals(0, brokerService.getAdminView().getCurrentConnectionsCount()); disconnect(); return received; }
58. MessageCompressionTest#receiveOpenWireTextMessage()
Project: activemq-openwire
File: MessageCompressionTest.java
File: MessageCompressionTest.java
public OpenWireTextMessage receiveOpenWireTextMessage() throws Exception { connect(); assertTrue(awaitConnected(10, TimeUnit.SECONDS)); OpenWireConnection connection = new OpenWireConnection(); ConnectionInfo connectionInfo = connection.createConnectionInfo(); connectionInfo.setClientId(name.getMethodName()); assertTrue(request(connectionInfo, 10, TimeUnit.SECONDS)); assertEquals(1, brokerService.getAdminView().getCurrentConnectionsCount()); OpenWireSession sessionId = connection.createOpenWireSession(); assertTrue(request(sessionId.createSessionInfo(), 10, TimeUnit.SECONDS)); assertEquals(1, getProxyToQueue(getOpenWireQueue().getPhysicalName()).getQueueSize()); OpenWireConsumer consumerId = sessionId.createOpenWireConsumer(); ConsumerInfo consumerInfo = consumerId.createConsumerInfo(getOpenWireQueue()); consumerInfo.setDispatchAsync(false); consumerInfo.setPrefetchSize(1); assertTrue(request(consumerInfo, 10, TimeUnit.SECONDS)); assertEquals(1, brokerService.getAdminView().getQueueSubscribers().length); assertTrue("Should have received a message", Wait.waitFor(new Wait.Condition() { @Override public boolean isSatisified() throws Exception { return messages.size() == 1; } })); Message incoming = messages.poll(); assertTrue(incoming instanceof OpenWireTextMessage); OpenWireTextMessage received = (OpenWireTextMessage) incoming; MessageAck ack = new MessageAck(); ack.setAckType(MessageAck.STANDARD_ACK_TYPE); ack.setConsumerId(consumerId.getConsumerId()); ack.setDestination(getOpenWireQueue()); ack.setLastMessageId(received.getMessageId()); ack.setMessageCount(1); assertTrue(request(ack, 60, TimeUnit.SECONDS)); assertEquals(0, getProxyToQueue(getOpenWireQueue().getPhysicalName()).getQueueSize()); assertTrue(request(connection.createRemoveInfo(), 10, TimeUnit.SECONDS)); assertEquals(0, brokerService.getAdminView().getCurrentConnectionsCount()); disconnect(); return received; }
59. MessageCompressionTest#sendOpenWireBytesMessage()
Project: activemq-openwire
File: MessageCompressionTest.java
File: MessageCompressionTest.java
private void sendOpenWireBytesMessage(String payload, boolean useCompression) throws Exception { connect(); assertTrue(awaitConnected(10, TimeUnit.SECONDS)); OpenWireConnection connection = new OpenWireConnection(); ConnectionInfo connectionInfo = connection.createConnectionInfo(); connectionInfo.setClientId(name.getMethodName()); assertTrue(request(connectionInfo, 10, TimeUnit.SECONDS)); assertEquals(1, brokerService.getAdminView().getCurrentConnectionsCount()); OpenWireSession sessionId = connection.createOpenWireSession(); assertTrue(request(sessionId.createSessionInfo(), 10, TimeUnit.SECONDS)); OpenWireProducer producerId = sessionId.createOpenWireProducer(); ProducerInfo info = producerId.createProducerInfo(getOpenWireQueue()); info.setDispatchAsync(false); assertTrue(request(info, 10, TimeUnit.SECONDS)); assertEquals(1, brokerService.getAdminView().getQueueProducers().length); OpenWireBytesMessage message = new OpenWireBytesMessage(); message.setUseCompression(useCompression); message.setBodyBytes(payload.getBytes("UTF8")); message.setTimestamp(System.currentTimeMillis()); message.setMessageId(producerId.getNextMessageId()); message.setProducerId(producerId.getProducerId()); message.setDestination(getOpenWireQueue()); message.onSend(); assertTrue(request(message, 10, TimeUnit.SECONDS)); assertEquals(1, getProxyToQueue(getOpenWireQueue().getPhysicalName()).getQueueSize()); assertTrue(request(connection.createRemoveInfo(), 10, TimeUnit.SECONDS)); assertEquals(0, brokerService.getAdminView().getCurrentConnectionsCount()); disconnect(); }
60. MessageCompressionTest#sendOpenWireTextMessage()
Project: activemq-openwire
File: MessageCompressionTest.java
File: MessageCompressionTest.java
private void sendOpenWireTextMessage(String payload, boolean useCompression) throws Exception { connect(); assertTrue(awaitConnected(10, TimeUnit.SECONDS)); OpenWireConnection connection = new OpenWireConnection(); ConnectionInfo connectionInfo = connection.createConnectionInfo(); connectionInfo.setClientId(name.getMethodName()); assertTrue(request(connectionInfo, 10, TimeUnit.SECONDS)); assertEquals(1, brokerService.getAdminView().getCurrentConnectionsCount()); OpenWireSession sessionId = connection.createOpenWireSession(); assertTrue(request(sessionId.createSessionInfo(), 10, TimeUnit.SECONDS)); OpenWireProducer producerId = sessionId.createOpenWireProducer(); ProducerInfo info = producerId.createProducerInfo(getOpenWireQueue()); info.setDispatchAsync(false); assertTrue(request(info, 10, TimeUnit.SECONDS)); assertEquals(1, brokerService.getAdminView().getQueueProducers().length); OpenWireTextMessage message = new OpenWireTextMessage(); message.setUseCompression(useCompression); message.setText(payload); message.setTimestamp(System.currentTimeMillis()); message.setMessageId(producerId.getNextMessageId()); message.setProducerId(producerId.getProducerId()); message.setDestination(getOpenWireQueue()); message.onSend(); assertTrue(request(message, 10, TimeUnit.SECONDS)); assertEquals(1, getProxyToQueue(getOpenWireQueue().getPhysicalName()).getQueueSize()); assertTrue(request(connection.createRemoveInfo(), 10, TimeUnit.SECONDS)); assertEquals(0, brokerService.getAdminView().getCurrentConnectionsCount()); disconnect(); }