Tabnine Logo
DestinationInfoMarshaller
Code IndexAdd Tabnine to your IDE (free)

How to use
DestinationInfoMarshaller
in
org.apache.activemq.openwire.v2

Best Java code snippets using org.apache.activemq.openwire.v2.DestinationInfoMarshaller (Showing top 16 results out of 315)

origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    DestinationInfo info = (DestinationInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getConnectionId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    dataOut.writeByte(info.getOperationType());
    looseMarshalLong(wireFormat, info.getTimeout(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getBrokerPath(), dataOut);

  }
}
origin: apache/activemq

/**
 * 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
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  DestinationInfo info = (DestinationInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat,
                                               dataIn));
  info
    .setDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(
                                                  wireFormat,
                                                  dataIn));
  info.setOperationType(dataIn.readByte());
  info.setTimeout(looseUnmarshalLong(wireFormat, dataIn));
  if (dataIn.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for (int i = 0; i < size; i++) {
      value[i] = (org.apache.activemq.command.BrokerId)looseUnmarsalNestedObject(wireFormat, dataIn);
    }
    info.setBrokerPath(value);
  } else {
    info.setBrokerPath(null);
  }
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  DestinationInfo info = (DestinationInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getConnectionId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalLong1(wireFormat, info.getTimeout(), bs);
  rc += tightMarshalObjectArray1(wireFormat, info.getBrokerPath(), bs);
  return rc + 1;
}
origin: apache/activemq

/**
 * 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
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs)
  throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  DestinationInfo info = (DestinationInfo)o;
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getConnectionId(), dataOut, bs);
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getDestination(), dataOut, bs);
  dataOut.writeByte(info.getOperationType());
  tightMarshalLong2(wireFormat, info.getTimeout(), dataOut, bs);
  tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs);
}
origin: org.apache.activemq/activemq-all

/**
 * 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
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs)
  throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  DestinationInfo info = (DestinationInfo)o;
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getConnectionId(), dataOut, bs);
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getDestination(), dataOut, bs);
  dataOut.writeByte(info.getOperationType());
  tightMarshalLong2(wireFormat, info.getTimeout(), dataOut, bs);
  tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs);
}
origin: org.apache.activemq/activemq-all

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    DestinationInfo info = (DestinationInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getConnectionId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    dataOut.writeByte(info.getOperationType());
    looseMarshalLong(wireFormat, info.getTimeout(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getBrokerPath(), dataOut);

  }
}
origin: org.apache.activemq/activemq-all

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  DestinationInfo info = (DestinationInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getConnectionId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalLong1(wireFormat, info.getTimeout(), bs);
  rc += tightMarshalObjectArray1(wireFormat, info.getBrokerPath(), bs);
  return rc + 1;
}
origin: pierre/meteo

/**
 * 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
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs)
  throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  DestinationInfo info = (DestinationInfo)o;
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getConnectionId(), dataOut, bs);
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getDestination(), dataOut, bs);
  dataOut.writeByte(info.getOperationType());
  tightMarshalLong2(wireFormat, info.getTimeout(), dataOut, bs);
  tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs);
}
origin: org.apache.activemq/activemq-all

/**
 * 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
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  DestinationInfo info = (DestinationInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat,
                                               dataIn));
  info
    .setDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(
                                                  wireFormat,
                                                  dataIn));
  info.setOperationType(dataIn.readByte());
  info.setTimeout(looseUnmarshalLong(wireFormat, dataIn));
  if (dataIn.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for (int i = 0; i < size; i++) {
      value[i] = (org.apache.activemq.command.BrokerId)looseUnmarsalNestedObject(wireFormat, dataIn);
    }
    info.setBrokerPath(value);
  } else {
    info.setBrokerPath(null);
  }
}
origin: org.apache.activemq/activemq-osgi

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    DestinationInfo info = (DestinationInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getConnectionId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    dataOut.writeByte(info.getOperationType());
    looseMarshalLong(wireFormat, info.getTimeout(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getBrokerPath(), dataOut);

  }
}
origin: org.apache.activemq/activemq-osgi

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  DestinationInfo info = (DestinationInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getConnectionId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalLong1(wireFormat, info.getTimeout(), bs);
  rc += tightMarshalObjectArray1(wireFormat, info.getBrokerPath(), bs);
  return rc + 1;
}
origin: org.apache.activemq/activemq-osgi

/**
 * 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
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs)
  throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  DestinationInfo info = (DestinationInfo)o;
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getConnectionId(), dataOut, bs);
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getDestination(), dataOut, bs);
  dataOut.writeByte(info.getOperationType());
  tightMarshalLong2(wireFormat, info.getTimeout(), dataOut, bs);
  tightMarshalObjectArray2(wireFormat, info.getBrokerPath(), dataOut, bs);
}
origin: org.apache.activemq/activemq-osgi

/**
 * 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
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  DestinationInfo info = (DestinationInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat,
                                               dataIn));
  info
    .setDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(
                                                  wireFormat,
                                                  dataIn));
  info.setOperationType(dataIn.readByte());
  info.setTimeout(looseUnmarshalLong(wireFormat, dataIn));
  if (dataIn.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for (int i = 0; i < size; i++) {
      value[i] = (org.apache.activemq.command.BrokerId)looseUnmarsalNestedObject(wireFormat, dataIn);
    }
    info.setBrokerPath(value);
  } else {
    info.setBrokerPath(null);
  }
}
origin: pierre/meteo

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    DestinationInfo info = (DestinationInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getConnectionId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    dataOut.writeByte(info.getOperationType());
    looseMarshalLong(wireFormat, info.getTimeout(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getBrokerPath(), dataOut);

  }
}
origin: pierre/meteo

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  DestinationInfo info = (DestinationInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getConnectionId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalLong1(wireFormat, info.getTimeout(), bs);
  rc += tightMarshalObjectArray1(wireFormat, info.getBrokerPath(), bs);
  return rc + 1;
}
origin: pierre/meteo

/**
 * 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
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  DestinationInfo info = (DestinationInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat,
                                               dataIn));
  info
    .setDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(
                                                  wireFormat,
                                                  dataIn));
  info.setOperationType(dataIn.readByte());
  info.setTimeout(looseUnmarshalLong(wireFormat, dataIn));
  if (dataIn.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for (int i = 0; i < size; i++) {
      value[i] = (org.apache.activemq.command.BrokerId)looseUnmarsalNestedObject(wireFormat, dataIn);
    }
    info.setBrokerPath(value);
  } else {
    info.setBrokerPath(null);
  }
}
org.apache.activemq.openwire.v2DestinationInfoMarshaller

Javadoc

Marshalling code for Open Wire Format for DestinationInfoMarshaller NOTE!: This file is auto generated - do not modify! if you need to make a change, please see the modify the groovy scripts in the under src/gram/script and then use maven openwire:generate to regenerate this file.

Most used methods

  • looseMarshalCachedObject
  • looseMarshalLong
  • looseMarshalObjectArray
  • looseUnmarsalCachedObject
  • looseUnmarsalNestedObject
  • looseUnmarshalLong
  • tightMarshalCachedObject1
  • tightMarshalCachedObject2
  • tightMarshalLong1
  • tightMarshalLong2
  • tightMarshalObjectArray1
  • tightMarshalObjectArray2
  • tightMarshalObjectArray1,
  • tightMarshalObjectArray2,
  • tightUnmarsalCachedObject,
  • tightUnmarsalNestedObject,
  • tightUnmarshalLong

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now