org.apache.qpid.management.domain.handler.impl
Class SchemaResponseMessageHandler

java.lang.Object
  extended by org.apache.qpid.management.domain.handler.base.BaseMessageHandler
      extended by org.apache.qpid.management.domain.handler.impl.SchemaResponseMessageHandler
All Implemented Interfaces:
IMessageHandler

public class SchemaResponseMessageHandler
extends BaseMessageHandler

Schema Response message handler. This handler is responsible to process 'S'(opcode) messages sent by the management broker containing the full schema details for a class.


Nested Class Summary
(package private) static interface SchemaResponseMessageHandler.IProcessor
          Behavioural interface for classes that are responsible to deal with schema messages.
 
Field Summary
(package private)  SchemaResponseMessageHandler.IProcessor _classSchemaProcessor
          Processor responsible to deal with class schema related messages.
(package private)  SchemaResponseMessageHandler.IProcessor _eventSchemaProcessor
          Processor responsible to deal with class event related messages.
 
Fields inherited from class org.apache.qpid.management.domain.handler.base.BaseMessageHandler
_domainModel, _logger
 
Constructor Summary
SchemaResponseMessageHandler()
           
 
Method Summary
(package private)  List<Map<String,Object>> getAttributes(org.apache.qpid.transport.codec.Decoder decoder, int howMany)
          Reads from the incoming message stream the properties definitions.
(package private)  List<MethodOrEventDataTransferObject> getEvents(org.apache.qpid.transport.codec.Decoder decoder, int howManyEvents)
          Reads the events definitions from the incoming message stream.
(package private)  List<MethodOrEventDataTransferObject> getMethods(org.apache.qpid.transport.codec.Decoder decoder, int howManyMethods)
          Reads the methods definitions from the incoming message stream.
 void process(org.apache.qpid.transport.codec.Decoder decoder, int sequenceNumber)
          Processes an incoming schema response.
 
Methods inherited from class org.apache.qpid.management.domain.handler.base.BaseMessageHandler
setDomainModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_classSchemaProcessor

final SchemaResponseMessageHandler.IProcessor _classSchemaProcessor
Processor responsible to deal with class schema related messages.


_eventSchemaProcessor

final SchemaResponseMessageHandler.IProcessor _eventSchemaProcessor
Processor responsible to deal with class event related messages.

Constructor Detail

SchemaResponseMessageHandler

public SchemaResponseMessageHandler()
Method Detail

process

public void process(org.apache.qpid.transport.codec.Decoder decoder,
                    int sequenceNumber)
Processes an incoming schema response. This will be used for building the corresponding class definition.

Parameters:
decoder - the decoder used for parsing the incoming stream.
sequenceNumber - the sequence number of the incoming message.

getAttributes

List<Map<String,Object>> getAttributes(org.apache.qpid.transport.codec.Decoder decoder,
                                       int howMany)
Reads from the incoming message stream the properties definitions.

Parameters:
decoder - the decoder used for decode incoming data.
howManyProperties - the number of properties to read.
Returns:
a list of maps. Each map contains a property definition.

getMethods

List<MethodOrEventDataTransferObject> getMethods(org.apache.qpid.transport.codec.Decoder decoder,
                                                 int howManyMethods)
Reads the methods definitions from the incoming message stream.

Parameters:
decoder - the decoder used for decode incoming data.
howManyMethods - the number of methods to read.
Returns:
a list method definitions.

getEvents

List<MethodOrEventDataTransferObject> getEvents(org.apache.qpid.transport.codec.Decoder decoder,
                                                int howManyEvents)
Reads the events definitions from the incoming message stream.

Parameters:
decoder - the decoder used for decode incoming data.
howManyEvents - the number of events to read.
Returns:
a list event definitions.


Licensed to the Apache Software Foundation