Package org.apache.storm.loadgen
Class ScopedTopologySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<String>
-
- org.apache.storm.loadgen.ScopedTopologySet
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,Cloneable
,Iterable<String>
,Collection<String>
,Set<String>
public class ScopedTopologySet extends HashSet<String> implements AutoCloseable
A set of topology names that will be killed when this is closed, or when the program exits.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScopedTopologySet(Nimbus.Iface client)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
close()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
-
Methods inherited from class java.util.HashSet
add, clone, contains, isEmpty, iterator, size, spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
ScopedTopologySet
public ScopedTopologySet(Nimbus.Iface client)
Constructor.- Parameters:
client
- the client used to kill the topologies when this exist.
-
-
Method Detail
-
remove
public boolean remove(Object o)
-
clear
public void clear()
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<String>
- Specified by:
removeAll
in interfaceSet<String>
- Overrides:
removeAll
in classAbstractSet<String>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<String>
- Specified by:
retainAll
in interfaceSet<String>
- Overrides:
retainAll
in classAbstractCollection<String>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-