public class MTOSISoapDataMap
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MTOSISoapDataMap.MTOSISoapEntityType |
| Constructor and Description |
|---|
MTOSISoapDataMap()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDevice(java.lang.String ipAddress,
java.lang.String deviceId) |
void |
addEntity(MTOSISoapDataMap.MTOSISoapEntityType type,
java.lang.String deviceId,
java.lang.String name)
Adds entity data to map that keep tracks of the entity data in Collector
DataStore associated with the device Id
|
protected java.lang.String |
convertToSlotTypeName(java.lang.String entityName)
This method converts slot name to include '#' e.g Change a subslot name
from '2345235~/shelf=1/slot=2/sub_slot=3' to
'2345235~/shelf=1/slot=2#/sub_slot=3#'
|
void |
deleteAllEntity()
Removes all data in data map
|
void |
deleteEntity(java.lang.String deviceId)
Remove all entity data associated with a device Id
|
boolean |
deviceExist(java.lang.String deviceId)
Check if device exists in map
|
boolean |
entityExist(MTOSISoapDataMap.MTOSISoapEntityType type,
java.lang.String deviceId,
java.lang.String name)
Check if the entity already exists in map
|
java.lang.String |
getEntityRelPos(java.lang.String strEntityName,
java.lang.String cdmType)
Returns the value of an entity's relative position to its parent Call
this method to find entityParentRelPos for other physical entities such
as slot sub_slot fan psu excluding PTP FTP CTP
|
java.lang.String |
getEntityRelPosTP(java.lang.String strEntityName,
java.lang.String tpType)
Returns the value of TP relative position to its parent Call this method
to find entityParentRelPos for PTP, FTP, CTP
|
java.util.Map<java.lang.String,java.lang.String> |
getManagedElementMap()
Returns the data map for ManagedElement
|
java.lang.String |
getParentEntity(java.lang.String entityType,
java.lang.String entityName,
java.lang.String deviceId)
Returns the parent of an entity
|
void |
removeDevice(java.lang.String deviceId) |
public boolean entityExist(MTOSISoapDataMap.MTOSISoapEntityType type, java.lang.String deviceId, java.lang.String name)
type - Entity typedeviceId - Device Idname - The name of the entitypublic boolean deviceExist(java.lang.String deviceId)
deviceId - The Device Id of the devicepublic void addDevice(java.lang.String ipAddress,
java.lang.String deviceId)
public void removeDevice(java.lang.String deviceId)
public void addEntity(MTOSISoapDataMap.MTOSISoapEntityType type, java.lang.String deviceId, java.lang.String name)
type - Entity Type e.g. SHELF, SLOT, SUBSLOT, etc.deviceId - Device Idname - The name of the entitypublic void deleteEntity(java.lang.String deviceId)
deviceId - Device Idpublic void deleteAllEntity()
public java.util.Map<java.lang.String,java.lang.String> getManagedElementMap()
public java.lang.String getParentEntity(java.lang.String entityType,
java.lang.String entityName,
java.lang.String deviceId)
entityType - The entity typeentityName - The entity namedeviceId - Device Id of the managed element where the entity residespublic java.lang.String getEntityRelPosTP(java.lang.String strEntityName,
java.lang.String tpType)
strEntityName - The entity name in either these formats :
"GigabitEthernet7/5/2.112"; "Serial7/3/2.235";
"GigabitEthernet7/5/2"; "E1 7/3/2";tpType - tpType of the entity either PTP, FTP, CTPpublic java.lang.String getEntityRelPos(java.lang.String strEntityName,
java.lang.String cdmType)
strEntityName - The entity nameprotected java.lang.String convertToSlotTypeName(java.lang.String entityName)
entityName - Name of the slot/subslot