public class UPerf extends ReceiverAdapter
限定符和类型 | 类和说明 |
---|---|
static class |
UPerf.Config |
static class |
UPerf.Results |
限定符和类型 | 字段和说明 |
---|---|
protected int |
anycast_count |
protected java.lang.Thread |
event_loop_thread |
protected boolean |
get_before_put |
protected boolean |
looping |
protected java.util.List<Address> |
members |
protected boolean |
msg_bundling |
protected int |
msg_size |
protected int |
num_msgs |
protected int |
num_threads |
protected boolean |
oob |
protected double |
read_percentage |
protected java.util.List<Address> |
site_masters |
protected boolean |
sync |
protected boolean |
use_anycast_addrs |
protected View |
view |
构造器和说明 |
---|
UPerf() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addSiteMastersToMembers() |
protected void |
applyConfig(UPerf.Config config) |
protected void |
changeFieldAcrossCluster(java.lang.String field_name,
java.lang.Object value) |
void |
eventLoop() |
byte[] |
get(long key) |
UPerf.Config |
getConfig() |
protected static java.util.List<java.lang.String> |
getSites(JChannel channel) |
void |
init(java.lang.String props,
java.lang.String name,
boolean xsite,
AddressGenerator generator,
int bind_port) |
static void |
main(java.lang.String[] args) |
void |
put(long key,
byte[] val) |
void |
quitAll() |
void |
set(java.lang.String field_name,
java.lang.Object value) |
protected void |
startEventThread() |
UPerf.Results |
startTest() |
protected void |
stopEventThread() |
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
protected final java.util.List<Address> members
protected volatile View view
protected final java.util.List<Address> site_masters
protected volatile boolean looping
protected java.lang.Thread event_loop_thread
protected boolean sync
protected boolean oob
protected int num_threads
protected int num_msgs
protected int msg_size
protected int anycast_count
protected boolean use_anycast_addrs
protected boolean msg_bundling
protected double read_percentage
protected boolean get_before_put
public void init(java.lang.String props, java.lang.String name, boolean xsite, AddressGenerator generator, int bind_port) throws java.lang.Throwable
java.lang.Throwable
protected void startEventThread()
protected void stopEventThread()
public void viewAccepted(View new_view)
ReceiverAdapter
Channel.connect(String)
returns.viewAccepted
在接口中 MembershipListener
viewAccepted
在类中 ReceiverAdapter
protected void addSiteMastersToMembers()
public UPerf.Results startTest() throws java.lang.Throwable
java.lang.Throwable
public void quitAll()
public void set(java.lang.String field_name, java.lang.Object value)
public byte[] get(long key)
public void put(long key, byte[] val)
public UPerf.Config getConfig()
protected void applyConfig(UPerf.Config config)
public void eventLoop() throws java.lang.Throwable
java.lang.Throwable
protected void changeFieldAcrossCluster(java.lang.String field_name, java.lang.Object value) throws java.lang.Exception
java.lang.Exception
protected static java.util.List<java.lang.String> getSites(JChannel channel)
public static void main(java.lang.String[] args)