Class ParameterConnection

java.lang.Object
org.jboss.remotingjmx.protocol.v2.ParameterConnection

public class ParameterConnection extends Object
Class responsible for the initial parameter exchange on the connection before we 'begin' and allow interoperability with the target MBeanServer.
Author:
Darran Lofthouse
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    protected final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.jboss.remotingjmx.protocol.v2.ClientExecutorManager
     
    protected org.jboss.remotingjmx.protocol.v2.ClientRequestManager
     
    protected org.jboss.marshalling.Marshaller
    Creates and returns a Marshaller which is ready to be used for marshalling.
    protected org.jboss.marshalling.Unmarshaller
    Creates and returns a Unmarshaller which is ready to be used for unmarshalling.
    protected org.jboss.marshalling.Unmarshaller
    prepareForUnMarshalling(DataInput dataInput, org.jboss.marshalling.ClassResolver classResolver)
    Creates and returns a Unmarshaller which is ready to be used for unmarshalling.
    protected IOException
    This Exception conversion needs to return the IOException instead of throwing it, this is so that the compiler can detect that for the final Exception check something is actually thrown.
    protected void
    write(org.jboss.remotingjmx.protocol.v2.Common.MessageWriter writer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_TIMEOUT

      public static final int DEFAULT_TIMEOUT
      See Also:
    • timeoutSeconds

      protected final int timeoutSeconds
  • Method Details

    • getClientRequestManager

      protected org.jboss.remotingjmx.protocol.v2.ClientRequestManager getClientRequestManager()
    • getClientExecutorManager

      protected org.jboss.remotingjmx.protocol.v2.ClientExecutorManager getClientExecutorManager()
    • toIoException

      protected IOException toIoException(Exception e)
      This Exception conversion needs to return the IOException instead of throwing it, this is so that the compiler can detect that for the final Exception check something is actually thrown.
    • prepareForMarshalling

      protected org.jboss.marshalling.Marshaller prepareForMarshalling(DataOutput dataOutput) throws IOException
      Creates and returns a Marshaller which is ready to be used for marshalling. The Marshaller.start(org.jboss.marshalling.ByteOutput) will be invoked by this method, to use the passed dataOutput, before returning the marshaller.
      Parameters:
      dataOutput - The DataOutput to which the data will be marshalled
      Returns:
      Throws:
      IOException
    • prepareForUnMarshalling

      protected org.jboss.marshalling.Unmarshaller prepareForUnMarshalling(DataInput dataInput) throws IOException
      Creates and returns a Unmarshaller which is ready to be used for unmarshalling. The Unmarshaller.start(org.jboss.marshalling.ByteInput) will be invoked by this method, to use the passed dataInput, before returning the unmarshaller. This unmarshaller will use the context class loader to resolve any classes.
      Parameters:
      dataInput - The data input from which to unmarshall
      Returns:
      Throws:
      IOException
    • prepareForUnMarshalling

      protected org.jboss.marshalling.Unmarshaller prepareForUnMarshalling(DataInput dataInput, org.jboss.marshalling.ClassResolver classResolver) throws IOException
      Creates and returns a Unmarshaller which is ready to be used for unmarshalling. The Unmarshaller.start(org.jboss.marshalling.ByteInput) will be invoked by this method, to use the passed dataInput, before returning the unmarshaller.
      Parameters:
      dataInput - The data input from which to unmarshall
      classResolver - The class resolver to use for unmarshalling
      Returns:
      Throws:
      IOException
    • write

      protected void write(org.jboss.remotingjmx.protocol.v2.Common.MessageWriter writer) throws IOException
      Throws:
      IOException