OW2 Consortium jaspte

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 duanzhiquan 1
/**
2
 * =========================================================================
3
 * 					Bench4Q version 1.2.1
4
 * =========================================================================
5
 *
6
 * Bench4Q is available on the Internet at http://forge.ow2.org/projects/jaspte
7
 * You can find latest version there.
8
 *
9
 * Distributed according to the GNU Lesser General Public Licence.
10
 * This library is free software; you can redistribute it and/or modify it
11
 * under the terms of the GNU Lesser General Public License as published by
12
 * the Free Software Foundation; either version 2.1 of the License, or any
13
 * later version.
14
 *
15
 * SEE Copyright.txt FOR FULL COPYRIGHT INFORMATION.
16
 *
17
 * This source code is distributed "as is" in the hope that it will be
18
 * useful.  It comes with no warranty, and no author or distributor
19
 * accepts any responsibility for the consequences of its use.
20
 *
21
 *
22
 * This version is a based on the implementation of TPC-W from University of Wisconsin.
23
 * This version used some source code of The Grinder.
24
 *
25
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
26
 *  * Initial developer(s): Zhiquan Duan.
27
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
28
 *
29
 */
30
 
31
package org.bench4Q.console.communication.server;
32
 
33
import org.bench4Q.agent.rbe.communication.Args;
34
import org.bench4Q.common.Bench4QProperties;
35
import org.bench4Q.common.communication.Message;
36
 
37
/**
38
 * Message indicating that all worker processes should be started.
39
 */
40
public class StartWorkerProcessesMessage implements Message {
41
	private static final long serialVersionUID = 1;
42
 
43
	/** @serial Properties to use to start the worker processes. */
44
	private final Bench4QProperties m_properties;
45
	private final Args m_args;
46
 
47
	/**
48
	 * Constructor.
49
	 *
50
	 * @param properties
51
	 *            Properties that override the agents' local properties.
52
	 * @param args
53
	 */
54
	public StartWorkerProcessesMessage(Bench4QProperties properties, Args args) {
55
		m_args = args;
56
		m_properties = properties;
57
	}
58
 
59
	/**
60
	 * Accessor for the properties.
61
	 *
62
	 * @return The properties.
63
	 */
64
	public Bench4QProperties getProperties() {
65
		return m_properties;
66
	}
67
 
68
	/**
69
	 * @return
70
	 */
71
	public Args getArgs() {
72
		return m_args;
73
	}
74
 
75
}