com.SoftWoehr.JTOpenContrib.connectionmgr
Class ServiceHash

java.lang.Object
  |
  +--com.SoftWoehr.JTOpenContrib.connectionmgr.ServiceHash

public class ServiceHash
extends java.lang.Object


Constructor Summary
ServiceHash()
          Creates new ServiceHash
 
Method Summary
 boolean anyServiceClients(com.ibm.as400.access.AS400 as400, int service)
          Are any clients left of system as400 using service service?
 void clear()
          Clear all keys
 boolean containsServer(com.ibm.as400.access.AS400 as400)
          Contains reference to the identical unique AS400 object
 boolean containsServiceRecord(ServiceRecord key)
          Contains the server named?
 java.util.Enumeration elements()
          Enumeration of elements elements
 com.ibm.as400.access.AS400 get(ServiceRecord key)
          Get a server by name
 boolean isEmpty()
          Is empty?
 java.util.Enumeration keys()
          All service records
 com.ibm.as400.access.AS400 put(ServiceRecord key, com.ibm.as400.access.AS400 object)
          Map in an object
 com.ibm.as400.access.AS400 remove(ServiceRecord key)
          Remove a server by name
 int size()
          Number of elements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceHash

public ServiceHash()
Creates new ServiceHash
Method Detail

clear

public void clear()
           throws java.lang.UnsupportedOperationException
Clear all keys
Throws:
java.lang.UnsupportedOperationException -  

put

public com.ibm.as400.access.AS400 put(ServiceRecord key,
                                      com.ibm.as400.access.AS400 object)
Map in an object
Parameters:
key -  
object -  
Returns:
The AS400 passed in as an argument

get

public com.ibm.as400.access.AS400 get(ServiceRecord key)
Get a server by name
Parameters:
key -  
Returns:
The corresponding AS400 object

remove

public com.ibm.as400.access.AS400 remove(ServiceRecord key)
Remove a server by name
Parameters:
key - The service record to remove
Returns:
The removed AS400 corresponding to the service record

containsServiceRecord

public boolean containsServiceRecord(ServiceRecord key)
Contains the server named?
Parameters:
key -  
Returns:
true if contains the named server

containsServer

public boolean containsServer(com.ibm.as400.access.AS400 as400)
Contains reference to the identical unique AS400 object
Parameters:
as400 -  
Returns:
true if the AS400 is in the manager collection

anyServiceClients

public boolean anyServiceClients(com.ibm.as400.access.AS400 as400,
                                 int service)
Are any clients left of system as400 using service service?
Parameters:
as400 - An AS400 system which might currently be connected.
service - One of the AS400 service constants.
Returns:
true if any client is still active on system as400 using service service.

size

public int size()
Number of elements
Returns:
number of service sessions

keys

public java.util.Enumeration keys()
All service records
Returns:
number of service session keys

elements

public java.util.Enumeration elements()
Enumeration of elements elements
Returns:
number of serviceSession elements

isEmpty

public boolean isEmpty()
Is empty?
Returns:
true if no sessions