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

How to use
BrokerInfoMarshaller
in
org.apache.activemq.openwire.v4

Best Java code snippets using org.apache.activemq.openwire.v4.BrokerInfoMarshaller (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 {

    BrokerInfo info = (BrokerInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getBrokerId(), dataOut);
    looseMarshalString(info.getBrokerURL(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getPeerBrokerInfos(), dataOut);
    looseMarshalString(info.getBrokerName(), dataOut);
    dataOut.writeBoolean(info.isSlaveBroker());
    dataOut.writeBoolean(info.isMasterBroker());
    dataOut.writeBoolean(info.isFaultTolerantConfiguration());
    dataOut.writeBoolean(info.isDuplexConnection());
    dataOut.writeBoolean(info.isNetworkConnection());
    looseMarshalLong(wireFormat, info.getConnectionId(), dataOut);
    looseMarshalString(info.getBrokerUploadUrl(), dataOut);
    looseMarshalString(info.getNetworkProperties(), dataOut);

  }
}
origin: apache/activemq

info.setBrokerId((org.apache.activemq.command.BrokerId) looseUnmarsalCachedObject(wireFormat, dataIn));
info.setBrokerURL(looseUnmarshalString(dataIn));
  org.apache.activemq.command.BrokerInfo value[] = new org.apache.activemq.command.BrokerInfo[size];
  for( int i=0; i < size; i++ ) {
    value[i] = (org.apache.activemq.command.BrokerInfo) looseUnmarsalNestedObject(wireFormat,dataIn);
  info.setPeerBrokerInfos(null);
info.setBrokerName(looseUnmarshalString(dataIn));
info.setSlaveBroker(dataIn.readBoolean());
info.setMasterBroker(dataIn.readBoolean());
info.setDuplexConnection(dataIn.readBoolean());
info.setNetworkConnection(dataIn.readBoolean());
info.setConnectionId(looseUnmarshalLong(wireFormat, dataIn));
info.setBrokerUploadUrl(looseUnmarshalString(dataIn));
info.setNetworkProperties(looseUnmarshalString(dataIn));
origin: apache/activemq

/**
 * 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());
  bs.writeBoolean(info.isDuplexConnection());
  bs.writeBoolean(info.isNetworkConnection());
  rc+=tightMarshalLong1(wireFormat, info.getConnectionId(), bs);
  rc += tightMarshalString1(info.getBrokerUploadUrl(), bs);
  rc += tightMarshalString1(info.getNetworkProperties(), bs);
  return rc + 0;
}
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);
  BrokerInfo info = (BrokerInfo)o;
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getBrokerId(), dataOut, bs);
  tightMarshalString2(info.getBrokerURL(), dataOut, bs);
  tightMarshalObjectArray2(wireFormat, info.getPeerBrokerInfos(), dataOut, bs);
  tightMarshalString2(info.getBrokerName(), dataOut, bs);
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  tightMarshalLong2(wireFormat, info.getConnectionId(), dataOut, bs);
  tightMarshalString2(info.getBrokerUploadUrl(), dataOut, bs);
  tightMarshalString2(info.getNetworkProperties(), dataOut, bs);
}
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);
  BrokerInfo info = (BrokerInfo)o;
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getBrokerId(), dataOut, bs);
  tightMarshalString2(info.getBrokerURL(), dataOut, bs);
  tightMarshalObjectArray2(wireFormat, info.getPeerBrokerInfos(), dataOut, bs);
  tightMarshalString2(info.getBrokerName(), dataOut, bs);
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  tightMarshalLong2(wireFormat, info.getConnectionId(), dataOut, bs);
  tightMarshalString2(info.getBrokerUploadUrl(), dataOut, bs);
  tightMarshalString2(info.getNetworkProperties(), dataOut, bs);
}
origin: pierre/meteo

/**
 * 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());
  bs.writeBoolean(info.isDuplexConnection());
  bs.writeBoolean(info.isNetworkConnection());
  rc+=tightMarshalLong1(wireFormat, info.getConnectionId(), bs);
  rc += tightMarshalString1(info.getBrokerUploadUrl(), bs);
  rc += tightMarshalString1(info.getNetworkProperties(), bs);
  return rc + 0;
}
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 {

    BrokerInfo info = (BrokerInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getBrokerId(), dataOut);
    looseMarshalString(info.getBrokerURL(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getPeerBrokerInfos(), dataOut);
    looseMarshalString(info.getBrokerName(), dataOut);
    dataOut.writeBoolean(info.isSlaveBroker());
    dataOut.writeBoolean(info.isMasterBroker());
    dataOut.writeBoolean(info.isFaultTolerantConfiguration());
    dataOut.writeBoolean(info.isDuplexConnection());
    dataOut.writeBoolean(info.isNetworkConnection());
    looseMarshalLong(wireFormat, info.getConnectionId(), dataOut);
    looseMarshalString(info.getBrokerUploadUrl(), dataOut);
    looseMarshalString(info.getNetworkProperties(), dataOut);

  }
}
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);
  BrokerInfo info = (BrokerInfo)o;
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getBrokerId(), dataOut, bs);
  tightMarshalString2(info.getBrokerURL(), dataOut, bs);
  tightMarshalObjectArray2(wireFormat, info.getPeerBrokerInfos(), dataOut, bs);
  tightMarshalString2(info.getBrokerName(), dataOut, bs);
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  tightMarshalLong2(wireFormat, info.getConnectionId(), dataOut, bs);
  tightMarshalString2(info.getBrokerUploadUrl(), dataOut, bs);
  tightMarshalString2(info.getNetworkProperties(), dataOut, bs);
}
origin: pierre/meteo

info.setBrokerId((org.apache.activemq.command.BrokerId) looseUnmarsalCachedObject(wireFormat, dataIn));
info.setBrokerURL(looseUnmarshalString(dataIn));
  org.apache.activemq.command.BrokerInfo value[] = new org.apache.activemq.command.BrokerInfo[size];
  for( int i=0; i < size; i++ ) {
    value[i] = (org.apache.activemq.command.BrokerInfo) looseUnmarsalNestedObject(wireFormat,dataIn);
  info.setPeerBrokerInfos(null);
info.setBrokerName(looseUnmarshalString(dataIn));
info.setSlaveBroker(dataIn.readBoolean());
info.setMasterBroker(dataIn.readBoolean());
info.setDuplexConnection(dataIn.readBoolean());
info.setNetworkConnection(dataIn.readBoolean());
info.setConnectionId(looseUnmarshalLong(wireFormat, dataIn));
info.setBrokerUploadUrl(looseUnmarshalString(dataIn));
info.setNetworkProperties(looseUnmarshalString(dataIn));
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 {
  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());
  bs.writeBoolean(info.isDuplexConnection());
  bs.writeBoolean(info.isNetworkConnection());
  rc+=tightMarshalLong1(wireFormat, info.getConnectionId(), bs);
  rc += tightMarshalString1(info.getBrokerUploadUrl(), bs);
  rc += tightMarshalString1(info.getNetworkProperties(), bs);
  return rc + 0;
}
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 {

    BrokerInfo info = (BrokerInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getBrokerId(), dataOut);
    looseMarshalString(info.getBrokerURL(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getPeerBrokerInfos(), dataOut);
    looseMarshalString(info.getBrokerName(), dataOut);
    dataOut.writeBoolean(info.isSlaveBroker());
    dataOut.writeBoolean(info.isMasterBroker());
    dataOut.writeBoolean(info.isFaultTolerantConfiguration());
    dataOut.writeBoolean(info.isDuplexConnection());
    dataOut.writeBoolean(info.isNetworkConnection());
    looseMarshalLong(wireFormat, info.getConnectionId(), dataOut);
    looseMarshalString(info.getBrokerUploadUrl(), dataOut);
    looseMarshalString(info.getNetworkProperties(), dataOut);

  }
}
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);
  BrokerInfo info = (BrokerInfo)o;
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getBrokerId(), dataOut, bs);
  tightMarshalString2(info.getBrokerURL(), dataOut, bs);
  tightMarshalObjectArray2(wireFormat, info.getPeerBrokerInfos(), dataOut, bs);
  tightMarshalString2(info.getBrokerName(), dataOut, bs);
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
  tightMarshalLong2(wireFormat, info.getConnectionId(), dataOut, bs);
  tightMarshalString2(info.getBrokerUploadUrl(), dataOut, bs);
  tightMarshalString2(info.getNetworkProperties(), dataOut, bs);
}
origin: org.apache.activemq/activemq-all

info.setBrokerId((org.apache.activemq.command.BrokerId) looseUnmarsalCachedObject(wireFormat, dataIn));
info.setBrokerURL(looseUnmarshalString(dataIn));
  org.apache.activemq.command.BrokerInfo value[] = new org.apache.activemq.command.BrokerInfo[size];
  for( int i=0; i < size; i++ ) {
    value[i] = (org.apache.activemq.command.BrokerInfo) looseUnmarsalNestedObject(wireFormat,dataIn);
  info.setPeerBrokerInfos(null);
info.setBrokerName(looseUnmarshalString(dataIn));
info.setSlaveBroker(dataIn.readBoolean());
info.setMasterBroker(dataIn.readBoolean());
info.setDuplexConnection(dataIn.readBoolean());
info.setNetworkConnection(dataIn.readBoolean());
info.setConnectionId(looseUnmarshalLong(wireFormat, dataIn));
info.setBrokerUploadUrl(looseUnmarshalString(dataIn));
info.setNetworkProperties(looseUnmarshalString(dataIn));
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 {
  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());
  bs.writeBoolean(info.isDuplexConnection());
  bs.writeBoolean(info.isNetworkConnection());
  rc+=tightMarshalLong1(wireFormat, info.getConnectionId(), bs);
  rc += tightMarshalString1(info.getBrokerUploadUrl(), bs);
  rc += tightMarshalString1(info.getNetworkProperties(), bs);
  return rc + 0;
}
origin: pierre/meteo

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

    BrokerInfo info = (BrokerInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getBrokerId(), dataOut);
    looseMarshalString(info.getBrokerURL(), dataOut);
    looseMarshalObjectArray(wireFormat, info.getPeerBrokerInfos(), dataOut);
    looseMarshalString(info.getBrokerName(), dataOut);
    dataOut.writeBoolean(info.isSlaveBroker());
    dataOut.writeBoolean(info.isMasterBroker());
    dataOut.writeBoolean(info.isFaultTolerantConfiguration());
    dataOut.writeBoolean(info.isDuplexConnection());
    dataOut.writeBoolean(info.isNetworkConnection());
    looseMarshalLong(wireFormat, info.getConnectionId(), dataOut);
    looseMarshalString(info.getBrokerUploadUrl(), dataOut);
    looseMarshalString(info.getNetworkProperties(), dataOut);

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

info.setBrokerId((org.apache.activemq.command.BrokerId) looseUnmarsalCachedObject(wireFormat, dataIn));
info.setBrokerURL(looseUnmarshalString(dataIn));
  org.apache.activemq.command.BrokerInfo value[] = new org.apache.activemq.command.BrokerInfo[size];
  for( int i=0; i < size; i++ ) {
    value[i] = (org.apache.activemq.command.BrokerInfo) looseUnmarsalNestedObject(wireFormat,dataIn);
  info.setPeerBrokerInfos(null);
info.setBrokerName(looseUnmarshalString(dataIn));
info.setSlaveBroker(dataIn.readBoolean());
info.setMasterBroker(dataIn.readBoolean());
info.setDuplexConnection(dataIn.readBoolean());
info.setNetworkConnection(dataIn.readBoolean());
info.setConnectionId(looseUnmarshalLong(wireFormat, dataIn));
info.setBrokerUploadUrl(looseUnmarshalString(dataIn));
info.setNetworkProperties(looseUnmarshalString(dataIn));
org.apache.activemq.openwire.v4BrokerInfoMarshaller

Javadoc

Marshalling code for Open Wire Format for BrokerInfoMarshaller 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
  • looseMarshalString
  • looseUnmarsalCachedObject
  • looseUnmarsalNestedObject
  • looseUnmarshalLong
  • looseUnmarshalString
  • tightMarshalCachedObject1
  • tightMarshalCachedObject2
  • tightMarshalLong1
  • tightMarshalLong2
  • tightMarshalLong1,
  • tightMarshalLong2,
  • tightMarshalObjectArray1,
  • tightMarshalObjectArray2,
  • tightMarshalString1,
  • tightMarshalString2,
  • tightUnmarsalCachedObject,
  • tightUnmarsalNestedObject,
  • tightUnmarshalLong,
  • tightUnmarshalString

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top plugins for Android Studio
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