public class TestApp extends Object implements EntryListener, ItemListener, MessageListener
Modifier and Type | Class and Description |
---|---|
static class |
TestApp.Echo |
static class |
TestApp.LongTask |
Constructor and Description |
---|
TestApp(HazelcastInstance hazelcast) |
Modifier and Type | Method and Description |
---|---|
void |
entryAdded(EntryEvent event)
Invoked when an entry is added.
|
void |
entryEvicted(EntryEvent event)
Invoked when an entry is evicted.
|
void |
entryRemoved(EntryEvent event)
Invoked when an entry is removed.
|
void |
entryUpdated(EntryEvent event)
Invoked when an entry is updated.
|
AtomicNumber |
getAtomicNumber() |
IList<Object> |
getList() |
IMap<Object,Object> |
getMap() |
IQueue<Object> |
getQueue() |
ISet<Object> |
getSet() |
ITopic<Object> |
getTopic() |
protected void |
handleAddListener(String[] args) |
protected void |
handleClear(String[] args) |
protected void |
handleCommand(String command) |
protected void |
handleContains(String[] args) |
protected void |
handleDestroy(String[] args) |
protected void |
handleHelp(String command) |
protected void |
handleInstances(String[] args) |
protected void |
handleIterator(String[] args) |
protected void |
handleListAdd(String[] args) |
protected void |
handleListAddMany(String[] args) |
protected void |
handleListContains(String[] args) |
protected void |
handleListRemove(String[] args) |
protected void |
handleListSet(String[] args) |
protected void |
handleLock(String[] args) |
protected void |
handleMapEntries() |
protected void |
handleMapEvict(String[] args) |
protected void |
handleMapGet(String[] args) |
protected void |
handleMapGetAsync(String[] args) |
protected void |
handleMapGetMany(String[] args) |
protected void |
handleMapGetMapEntry(String[] args) |
protected void |
handleMapKeys() |
protected void |
handleMapLocalKeys() |
protected void |
handleMapLock(String[] args) |
protected void |
handleMapPut(String[] args) |
protected void |
handleMapPutAsync(String[] args) |
protected void |
handleMapPutIfAbsent(String[] args) |
protected void |
handleMapPutMany(String[] args) |
protected void |
handleMapRemove(String[] args) |
protected void |
handleMapRemoveMany(String[] args) |
protected void |
handleMapReplace(String[] args) |
protected void |
handleMapTryLock(String[] args) |
protected void |
handleMapUnlock(String[] args) |
protected void |
handleMapValues() |
protected void |
handlePartitions(String[] args) |
protected void |
handleQCapacity(String[] args) |
protected void |
handleQOffer(String[] args) |
protected void |
handleQOfferMany(String[] args) |
protected void |
handleQPeek(String[] args) |
protected void |
handleQPoll(String[] args) |
protected void |
handleQPollMany(String[] args) |
protected void |
handleQTake(String[] args) |
protected void |
handleRemoveListener(String[] args) |
protected void |
handleSetAdd(String[] args) |
protected void |
handleSetAddMany(String[] args) |
protected void |
handleSetRemove(String[] args) |
protected void |
handleSetRemoveMany(String[] args) |
protected void |
handleSize(String[] args) |
protected void |
handleTopicPublish(String[] args) |
void |
itemAdded(ItemEvent itemEvent)
Invoked when an item is added.
|
void |
itemRemoved(ItemEvent itemEvent)
Invoked when an item is removed.
|
static void |
main(String[] args) |
void |
onMessage(Message msg)
Invoked when a message is received for the added topic.
|
void |
print(Object obj) |
void |
println(Object obj) |
void |
setHazelcast(HazelcastInstance hazelcast) |
void |
setLineReader(LineReader lineReader) |
void |
start(String[] args) |
void |
stop() |
public TestApp(HazelcastInstance hazelcast)
public AtomicNumber getAtomicNumber()
public void setHazelcast(HazelcastInstance hazelcast)
public void stop()
public void setLineReader(LineReader lineReader)
protected void handleCommand(String command)
protected void handlePartitions(String[] args)
protected void handleInstances(String[] args)
protected void handleListContains(String[] args)
protected void handleListRemove(String[] args)
protected void handleListAdd(String[] args)
protected void handleListSet(String[] args)
protected void handleMapPut(String[] args)
protected void handleMapPutAsync(String[] args)
protected void handleMapPutIfAbsent(String[] args)
protected void handleMapReplace(String[] args)
protected void handleMapGet(String[] args)
protected void handleMapGetAsync(String[] args)
protected void handleMapGetMapEntry(String[] args)
protected void handleMapRemove(String[] args)
protected void handleMapEvict(String[] args)
protected void handleMapPutMany(String[] args)
protected void handleMapGetMany(String[] args)
protected void handleMapRemoveMany(String[] args)
protected void handleMapLock(String[] args)
protected void handleLock(String[] args)
protected void handleMapTryLock(String[] args)
protected void handleMapUnlock(String[] args)
protected void handleAddListener(String[] args)
protected void handleRemoveListener(String[] args)
protected void handleMapLocalKeys()
protected void handleMapKeys()
protected void handleMapEntries()
protected void handleMapValues()
protected void handleSetAdd(String[] args)
protected void handleSetRemove(String[] args)
protected void handleSetAddMany(String[] args)
protected void handleListAddMany(String[] args)
protected void handleSetRemoveMany(String[] args)
protected void handleIterator(String[] args)
protected void handleContains(String[] args)
protected void handleSize(String[] args)
protected void handleClear(String[] args)
protected void handleDestroy(String[] args)
protected void handleQOffer(String[] args)
protected void handleQTake(String[] args)
protected void handleQPoll(String[] args)
protected void handleTopicPublish(String[] args)
protected void handleQOfferMany(String[] args)
protected void handleQPollMany(String[] args)
protected void handleQPeek(String[] args)
protected void handleQCapacity(String[] args)
public void entryAdded(EntryEvent event)
EntryListener
entryAdded
in interface EntryListener
event
- entry eventpublic void entryRemoved(EntryEvent event)
EntryListener
entryRemoved
in interface EntryListener
event
- entry eventpublic void entryUpdated(EntryEvent event)
EntryListener
entryUpdated
in interface EntryListener
event
- entry eventpublic void entryEvicted(EntryEvent event)
EntryListener
entryEvicted
in interface EntryListener
event
- entry eventpublic void itemAdded(ItemEvent itemEvent)
ItemListener
itemAdded
in interface ItemListener
itemEvent
- added itempublic void itemRemoved(ItemEvent itemEvent)
ItemListener
itemRemoved
in interface ItemListener
itemEvent
- removed item.public void onMessage(Message msg)
MessageListener
onMessage
in interface MessageListener
msg
- received messageprotected void handleHelp(String command)
public void println(Object obj)
public void print(Object obj)
Copyright © 2013 Hazelcast, Inc.. All rights reserved.