private void printLockCommands() { println("-- Lock commands"); println("lock <key> //same as Hazelcast.getLock(key).lock()"); println("tryLock <key> //same as Hazelcast.getLock(key).tryLock()"); println("tryLock <key> <time> //same as tryLock <key> with timeout in seconds"); println("unlock <key> //same as Hazelcast.getLock(key).unlock()"); println(""); }
private void executeOnMember(String[] args) { // executeOnMember <echo-string> <memberIndex> doExecute(false, true, args); }
private void printQueueCommands() { println("-- Queue commands"); println("q.offer <string> //adds a string object to the queue"); println("q.poll //takes an object from the queue"); println("q.offermany <number> [<size>] //adds indicated number of string objects to the queue ('obj<i>' or " + "byte[<size>]) "); println("q.pollmany <number> //takes indicated number of objects from the queue"); println("q.iterator [remove] //iterates the queue, remove if specified"); println("q.size //size of the queue"); println("q.clear //clears the queue"); println(""); }
private void executeOnMember(String[] args) { // executeOnMember <echo-string> <memberIndex> doExecute(false, true, args); }
private void printExecutorServiceCommands() { println("-- Executor Service commands:"); println("execute <echo-input> //executes an echo task on random member"); println("executeOnKey <echo-input> <key> //executes an echo task on the member that owns the given key"); println("executeOnMember <echo-input> <memberIndex> //executes an echo task on the member with given index"); println("executeOnMembers <echo-input> //executes an echo task on all of the members"); println("e<threadcount>.simulateLoad <task-count> <delaySeconds> //simulates load on executor with given number " + "of thread (e1..e16)"); println(""); }
private void execute(String[] args) { // execute <echo-string> doExecute(false, false, args); }
private void printQueueCommands() { println("-- Queue commands"); println("q.offer <string> //adds a string object to the queue"); println("q.poll //takes an object from the queue"); println("q.offermany <number> [<size>] //adds indicated number of string objects to the queue ('obj<i>' or " + "byte[<size>]) "); println("q.pollmany <number> //takes indicated number of objects from the queue"); println("q.iterator [remove] //iterates the queue, remove if specified"); println("q.size //size of the queue"); println("q.clear //clears the queue"); println(""); }
private void executeOnKey(String[] args) { // executeOnKey <echo-string> <key> doExecute(true, false, args); }
private void printLockCommands() { println("-- Lock commands"); println("lock <key> //same as Hazelcast.getLock(key).lock()"); println("tryLock <key> //same as Hazelcast.getLock(key).tryLock()"); println("tryLock <key> <time> //same as tryLock <key> with timeout in seconds"); println("unlock <key> //same as Hazelcast.getLock(key).unlock()"); println(""); }
private void printExecutorServiceCommands() { println("-- Executor Service commands:"); println("execute <echo-input> //executes an echo task on random member"); println("executeOnKey <echo-input> <key> //executes an echo task on the member that owns the given key"); println("executeOnMember <echo-input> <memberIndex> //executes an echo task on the member with given index"); println("executeOnMembers <echo-input> //executes an echo task on all of the members"); println("e<threadcount>.simulateLoad <task-count> <delaySeconds> //simulates load on executor with given number " + "of thread (e1..e16)"); println(""); }
@Override public void entryAdded(EntryEvent event) { println(event); }
@Override public void entryRemoved(EntryEvent event) { println(event); }
@Override public void entryEvicted(EntryEvent event) { println(event); }
@Override public void mapEvicted(MapEvent event) { println(event); }
@Override public void mapEvicted(MapEvent event) { println(event); }
@Override public void mapCleared(MapEvent event) { println(event); }
private void printSetCommands() { println("-- Set commands"); println("s.add <string> //adds a string object to the set"); println("s.remove <string> //removes the string object from the set"); println("s.addmany <number> //adds indicated number of string objects to the set ('obj<i>')"); println("s.removemany <number> //takes indicated number of objects from the set"); println("s.iterator [remove] //iterates the set, removes if specified"); println("s.size //size of the set"); println("s.clear //clears the set"); println(""); }
@Override public void entryUpdated(EntryEvent event) { println(event); }