hazelcast mysql_HAZELCAST 客户端命令 可用于简单调试
在windows下先运行server.bat,然后再启动client.bat,在client.bat可以执行以下命令(执行help就会出现以下命令):
Commands:
-- General commands
echo true|false //turns on/off echo of commands (default fa
lse)
silent true|false //turns on/off silent of command output (de
fault false)
# //repeats time , replace
$i in with current iteration (0..)
& //forks threads to execute
d>, replace $t in with current thread number (0..
When using #x or &x, is is advised to use silent true as well.
When using &x with m.putmany and m.removemany, each thread will get a diffe
rent share of keys unless a start key index is specified
jvm //displays info about the runtime
who //displays info about the cluster
whoami //displays info about this cluster member
ns //switch the namespace for using the distri
buted queue/map/set/list
-- Queue commands
q.offer //adds a string object to the queue
q.poll //takes an object from the queue
q.offermany []
o the queue ('obj' or byte[])
//adds indicated number of string objects t
q.pollmany //takes indicated number of objects from th
e queue
q.iterator [remove] //iterates the queue, remove if specified
q.size //size of the queue
q.clear //clears the queue
-- Set commands
s.add //adds a string object to the set
s.remove //removes the string object from the set
s.addmany
o the set ('obj')
//adds indicated number of string objects t
s.removemany //takes indicated number of objects from th
e set
s.iterator [remove] //iterates the set, removes if specified
s.size //size of the set
s.clear //clears the set
-- Lock commands
lock //same as Hazelcast.getLock(key).lock()
tryLock //same as Hazelcast.getLock(key).tryLock()
tryLock //same as tryLock with timeout in sec
onds
unlock //same as Hazelcast.getLock(key).unlock()
--Map commands
m.put //puts an entry to the map
m.remove //removes the entry of given key from the m
ap
m.get //returns the value of given key from the m
ap
m.putmany [] []//puts indicated number of entries to the m
ap ('key':byte[], +(0..)
m.removemany [] //removes indicated number of entries from
the map ('key', +(0..)
When using &x with m.putmany and m.removemany, each thread will get a diffe
rent share of keys unless a start key is specified
m.keys //iterates the keys of the map
m.values //iterates the values of the map
m.entries //iterates the entries of the map
m.iterator [remove] //iterates the keys of the map, remove if s
pecified
m.size //size of the map
m.clear //clears the map
m.destroy //destroys the map
m.lock //locks the key
m.tryLock //tries to lock the key and returns immedia
tely
m.tryLock //tries to lock the key within given second
s
m.unlock //unlocks the key
-- List commands:
l.add
l.add
l.contains
l.remove
l.remove
l.set
l.iterator [remove]
l.size
l.clear
-- AtomicNumber commands:
a.get
a.set
a.inc
a.dec
-- Executor Service commands:
execute //executes an echo task on rando
m member
execute0nKey //executes an echo task on the m
ember that owns the given key
execute0nMember //executes an echo task on the member wi
th given index
execute0nMembers //executes an echo task on all of the me
mbers
同理在linux也照样能执行相关操作,只是把server.bat和client.bat改成server.sh和client.sh
遗留点问题:
q.offermany 这个命令怎么执行添加多个对象呢? 求解
hazelcast mysql_HAZELCAST 客户端命令 可用于简单调试相关推荐
- 客户端命令行工具 - 接口调试神器 HTTPie
http www.baidu.com (默认get请求) 一.http http://127.0.0.1:8080/admin/login mobile=13226317777password=abc ...
- [转]九个Console命令,让js调试更简单
转自:九个Console命令,让js调试更简单 一.显示信息的命令 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <!DOCTYPE html> <html ...
- Windows网络编程入门:简单的客户端和服务器通信程序调试
昨日入手Windows网络编程经络这本书,第一章给了Echo客户端和服务器的简单通信实例程序.从小白到入门目测都是比较苦逼,居然想不到怎么来测试结果.什么同时运行啊.分别编译运行啊乱七八糟的想法就开始 ...
- Linux命令scp用于远程文件的拷贝(上传和下载)
3_Linux命令scp用于远程文件的拷贝(上传和下载) 文章目录 1.SCP简介 2.SCP使用 2.1.命令格式: 2.2.命令功能: 2.3.命令参数: 3.使用实例: 如何将本地文件通过终端上 ...
- ssh服务优化与客户端命令使用
上一节我们讲解了vim的一套使用方法,今天我们开始我们的第一个网络服务ssh.SSH的英文全称是Secure SHell.通过使用SSH,我们可以把所有传输的数据进行加密,这样"中间人&qu ...
- android命令大全 pdf,android调试桥(adb)常用命令.pdf
Android 调试桥 (adb) 是多种用途的工具,该工具可以帮助你管理设备或模拟器的状态. 可以通过下列几种方法加入 adb: 在设备上运行 shell 命令 通过端口转发来管理模拟器或设备 从模 ...
- 你知道吗?Linux命令竟如此简单!
你知道吗?Linux命令竟如此简单! 我Linux安完了,如何快速入门? 1.进入终端 2.好了,入门完了 咳 咳 开个玩笑 2.1查看磁盘容量 2.2新建 2.3查看&删除 2.5解压&am ...
- 在Visual Studio中使用命令行参数进行调试
我正在Visual Studio中开发一个C ++命令行应用程序,需要使用命令行参数进行调试. 目前我只使用我需要的参数(如此program.exe -file.txt )运行生成的EXE文件,但这样 ...
- 命令行下 pdb 调试 Python 程序
官方参考网站 The Python Debugger : https://docs.python.org/3/library/pdb.html gdb 调试命令的使用及总结:https://blog. ...
最新文章
- 重装WIN7之后使用Ubuntu LiveCD修复grub2双系统引导
- 云炬Android开发笔记 2-2 Android studio项目上传到Github及无法连接Github的问题处理
- 大数据阶段划分及案例单词统计
- OC与JS交互 初体会
- 构建高性能ASP.NET站点 第七章 如何解决内存的问题(后篇)—托管资源优化—监常用优化措施...
- ubuntu 下 maven安装
- protoc 生成C++代码
- python人口普查数据数据分析_7、Python 数据分析-Pandas人口分析案例
- Java如何实现代理服务器?
- Vivado SPI Flash程序下载
- 水声信号混响matlab,水声信号
- halo博客:如何加快搜索引擎收录网站速度
- 先秦经典智慧名言故事丛书(全16册) 内容简介
- Excel中Match()函数使用方法
- 为VMware vSphere创建Ubuntu 16.04 Terraform模板
- CAN通信详解(全)
- 已知两点获取单位向量 和 单位垂直向量
- openlayers3_API简说
- 各省绿色金融指数(2001-2020年)
- JS--文章置顶功能