Hi folks,
i'm trying to use scripting through mancenter in order to get information from hazelcast map and update it later.
This is my function:
function getHgroups() {
var map = hazelcast.getMap('hgroups');
var result;
for (var key in map.keySet()) {
result = result + key + ', ';
}
return 'map: ' + map.size() + ' result: ' + result;
}
But, instead of getting keys of that map, I get the next information:
map: 3 result: undefinedkeyValues, notifyAll, removeAll, clearEntries, containsAll, getKeyValues, contains, empty, equals, notify, class, isEmpty, add, size, iterator, clear, wait, retainAll, toString, hashCode, toArray, addEntries, addAll, getClass, remove,...
Any suggestion? Is there anybody who has experience working with mancenter and scripting?
Thanks,
Javier.