context.arch.discoverer.dataModel
Class HostnameIndexTable

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bycontext.arch.discoverer.dataModel.AbstractIndexTableImpl
              extended bycontext.arch.discoverer.dataModel.AbstractStringToIntegerVectorIndexTable
                  extended bycontext.arch.discoverer.dataModel.HostnameIndexTable
All Implemented Interfaces:
java.lang.Cloneable, IndexTableIF, java.util.Map, java.io.Serializable

public class HostnameIndexTable
extends AbstractStringToIntegerVectorIndexTable

Author:
Agathe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class context.arch.discoverer.dataModel.AbstractIndexTableImpl
name
 
Constructor Summary
HostnameIndexTable(java.lang.String indexName)
          Creates new ClassnameIndexTable
 
Method Summary
 void add(java.lang.Object componentDescription, java.lang.Object integer)
          Overrides the add method to put 2 keys value : the hostaddress and the hostname
 java.lang.Object getElementAsIndex(java.lang.Object componentDescription)
          Returns the relevant key that is stored : the hostname and hostaddress
 void removeKey(java.lang.Object componentDescription, java.lang.Object integer)
          This method allows to remove ...
 
Methods inherited from class context.arch.discoverer.dataModel.AbstractIndexTableImpl
getName, toString
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface context.arch.discoverer.dataModel.IndexTableIF
containsKey, get, keys
 

Constructor Detail

HostnameIndexTable

public HostnameIndexTable(java.lang.String indexName)
Creates new ClassnameIndexTable

Method Detail

getElementAsIndex

public java.lang.Object getElementAsIndex(java.lang.Object componentDescription)
Returns the relevant key that is stored : the hostname and hostaddress

Specified by:
getElementAsIndex in class AbstractIndexTableImpl
Parameters:
componentDescription - The object from which the class extracts what is relevant for it.
Returns:
ArrayList The component Hostname and Hostaddress

add

public void add(java.lang.Object componentDescription,
                java.lang.Object integer)
Overrides the add method to put 2 keys value : the hostaddress and the hostname

Specified by:
add in interface IndexTableIF
Overrides:
add in class AbstractStringToIntegerVectorIndexTable
Parameters:
componentDescription - The ComponentDescription object
integer - The index

removeKey

public void removeKey(java.lang.Object componentDescription,
                      java.lang.Object integer)
This method allows to remove ...

Specified by:
removeKey in interface IndexTableIF
Overrides:
removeKey in class AbstractStringToIntegerVectorIndexTable
Parameters:
componentDescription -
integer -