Package com.ibm.cics.server
Class ContainerIterator
java.lang.Object
com.ibm.cics.server.API
com.ibm.cics.server.ContainerIterator
Deprecated.
The ContainerIterator allows CICS Java programs to browse all Containers in a Channel. The iterator should ideally be created, used, and discarded before manipulating the underlying containers. If underlying containers are created or deleted after the ContainerIterator is constructed, then attempts are made to keep track of which containers exist in underlying CICS, and the iterator can return those that the java code is aware of. In such cases, it is possible that containers returned by this iterator no longer exist in the underlying CICS system.
- See Also:
- Since CICS TS version:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the Channel associated with this iterator.getOwner()Deprecated.As of release 6.1, replaced by the more strongly-typed equivalentgetChannel()booleanhasNext()Deprecated.Determine if there is another Container in the Channel.next()Deprecated.Get the next Container from the Channel.voidremove()Deprecated.Remove an element from the Channel.Methods inherited from class com.ibm.cics.server.API
getCICSServerApiVersionMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
getOwner
Deprecated.As of release 6.1, replaced by the more strongly-typed equivalentgetChannel()Get the owner of this iterator.- Returns:
- The owning Channel.
- Since CICS TS version:
- 3.1
-
getChannel
Deprecated.Get the Channel associated with this iterator. i.e: The channel which is iterated over to visit all the containers associated with that channel.- Returns:
- The Channel, over which this iterator is acting.
- Since CICS TS version:
- 6.1
-
hasNext
public boolean hasNext()Deprecated.Determine if there is another Container in the Channel. If there is, and the Container does not already exist in Java, create a Container object to represent it. -
next
Deprecated.Get the next Container from the Channel.- Specified by:
nextin interfaceIterator<Container>- Returns:
- The next Container
- Throws:
NoSuchElementException- there are no more containers left- Since CICS TS version:
- 4.1
-
remove
public void remove()Deprecated.Remove an element from the Channel. This Iterator method is not supported. A Container can only be removed from the Channel when it is deleted.- Specified by:
removein interfaceIterator<Container>- Throws:
UnsupportedOperationException- if the method is called- Since CICS TS version:
- 3.1
-
Channel.getContainerNames()method to get the names of containers, and then usingChannel.getContainer(java.lang.String,boolean)(with existence checkingfalse), to get the container object. This new mechanism performs faster than using aContainerIterator.