| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.test.processor.performance.core
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
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
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 |
|
createMessage(Integer producerID, MESSAGE_TYPE messageType, Integer eventType, Long messageID) |
public void |
|
public void |
send(Integer numChannels, Integer whichChannel) |
Multiplicity:
1
Multiplicity:
1
private Queue messageQueues
Multiplicity:
1
private long[] numEvents
Multiplicity:
1
Constructor
Parameters:
messageProcessor the message processor that is used to process messages
Stereotype:
create
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
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
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
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|