Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.test.processor.performance.core
Class MessageCenter

public class MessageCenter      
This class is responsible for message creation and transmission from the
message producers to the message consumers (entry into the message processing
framework).
 
Links:
Kernel Association Association Link
to Class ThreePassProcessor
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class ClearingPoint
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
 

Field Summary
private Queue
private long[]
Constructor Summary
public void
Method Summary
private TestMessage
createMessage(Integer producerID, MESSAGE_TYPE messageType, Integer eventType, Long messageID)
public void
generateMessages(Integer messagesPerChannel, Boolean mixEventTypes)
public void
send(Integer numChannels, Integer whichChannel)
Field Detail
clearingPoint
private ClearingPoint clearingPoint
Multiplicity:
1
 

messageProcessor
private ThreePassProcessor messageProcessor
Multiplicity:
1
 

messageQueues
private Queue messageQueues
Multiplicity:
1
 

numEvents
private long[] numEvents
Multiplicity:
1
 
Constructor Detail
MessageCenter
public void MessageCenter (ThreePassProcessor messageProcessor)
 
Constructor
Parameters:
messageProcessor the message processor that is used to process messages
Stereotype:
create
 
Method Detail
createMessage
private TestMessage createMessage (Integer producerID, MESSAGE_TYPE messageType, Integer eventType, Long messageID)
 
Creates a message
Parameters:
producerID the message producer by which this message is sent
messageType the encoding type of the message
eventType the event type this message creates
messageID the ID associated with this message
Return:
the created message
 

generateMessages
public void generateMessages (Integer messagesPerChannel, Boolean mixEventTypes)
 
Generates a random number of messages for transmission
Parameters:
messagesPerChannel number of messages to be created per message
producer
mixEventTypes indicates whether each message producer will only
have messages of a single type
Throws:
MessageCenterException
 

send
public void send (Integer numChannels, Integer whichChannel)
 
Sends created messages to the message processing framework
Parameters:
numChannels number of message producers to use when sending
messages
Throws:
MessageCenterException
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD