public class EciLightsoftCollector extends Collector
collectData, collectorDescription, collectorName, collectorPort, dataStore, propsFileName, running| Constructor and Description |
|---|
EciLightsoftCollector(java.lang.String collectorName,
java.lang.String collectorDescription,
DataTracker data,
DataProcessor processor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectData(int dataSourceId,
java.lang.String address,
java.lang.String mask)
This method is responsible for ensuring that data is updated as appropriate, that is, the Collector should check
the EMS for new data and update any internal stores as appropriate.
|
void |
endCorbaSession()
Ends the CORBA session
|
TMF814CorbaIterator |
getAllEquipment(NameAndStringValue_T[] meName,
int intResultSize,
boolean blnDestroyIterator)
Invokes the getAllEquipment() CORBA method
|
TMF814CorbaIterator |
getAllManagedElements(int intResultSize,
boolean blnDestroyIterator)
Invokes the getAllManagedElements() CORBA method
|
TMF814CorbaIterator |
getAllPTPs(NameAndStringValue_T[] meName,
int intResultSize,
boolean blnDestroyIterator)
Invokes the getAllPTPs() CORBA method
|
TMF814CorbaIterator |
getAllTopologicalLinks(NameAndStringValue_T[] snName,
int intResultSize,
boolean blnDestroyIterator)
Invokes the getAllTopologicalLinks() CORBA method
|
TMF814CorbaIterator |
getContainedInUseTPs(NameAndStringValue_T[] ptpName,
int intResultSize,
boolean blnDestroyIterator)
Invokes the getContainedInUseTPs() CORBA method
|
TMF814CorbaIterator |
getContainedPotentialTPs(NameAndStringValue_T[] ptpName,
int intResultSize,
boolean blnDestroyIterator)
Invokes the getContainedPotentialTPs() method on the target EMS
|
java.util.List<java.lang.Object> |
getContainingSubnetworkNames(NameAndStringValue_T[] meName)
Invokes the getContainingSubnetworkNames() CORBA method
|
java.lang.String |
GetEntities(int dataSourceId,
int deviceId)
Handler for deviceId in integer and converts deviceId in integer to string
allowing collector to respond to ncp_query_collector
Invokes main GetEntities method
|
java.lang.String |
GetEntities(int dataSourceId,
java.lang.String deviceId)
Optional - The Collector implementation of GetEntities() is responsible for gathering and returning
ENTITY-MIB style entity information for a given device id and data source.
|
java.lang.String |
GetInventory(int dataSourceId,
int deviceId)
Handler for deviceId in integer and converts deviceId in integer to string
allowing collector to respond to ncp_query_collector
Invokes main GetInventory method
|
java.lang.String |
GetInventory(int dataSourceId,
java.lang.String deviceId)
Optional - The Collector implementation of GetInventory() is responsible for gathering and returning
device interface information for a specified device id and data source.
|
java.util.List<org.omg.CORBA.portable.IDLEntity> |
getManagedElement(NameAndStringValue_T[] meName)
Invokes the getManagedElement() CORBA method
|
boolean |
haveCorbaSession()
Checks if the CORBA session is active
|
static void |
main(java.lang.String[] args)
Entry point for this class
|
void |
reconnect()
Reconnects the CORBA session
|
void |
startCorbaSession()
Starts the CORBA session
|
java.lang.String |
UpdateData(int dataSourceId,
int requestType,
java.lang.String address,
java.lang.String mask)
UpdateData invokes the collectData method which is responsible for ensuring that data is updated as appropriate,
that is, the Collector should check the EMS for new data and update any internal stores as appropriate.
|
GetAfData, GetAmfData, GetAssociatedAddresses, GetAssociatedAddresses, GetAusfData, getCommandLineArgument, GetConnections, GetConnections, GetDeviceInfo, GetDeviceInfo, GetDeviceInfo, GetDeviceList, GetEirData, GetENodeBData, GetGNodeBData, GetHssData, GetInfo, GetLayer1Connections, GetLayer1Connections, GetLayer2Connections, GetLayer2Connections, GetLayer2Vpns, GetLayer2Vpns, GetLayer3Connections, GetLayer3Connections, GetLayer3Vpns, GetLayer3Vpns, GetMmeData, GetMplsInterfaces, GetMplsInterfaces, GetNefData, GetNrfData, GetNssfData, GetPcfData, GetPcrfData, GetPgwData, getPortNumberArgument, getPropertiesFileNameArgument, getPropertyValue, GetRanData, GetSAEGatewayData, GetSgwData, GetSmfData, GetUdmData, GetUpfData, initialiseDataStore, isRunning, loadPropertiesFile, setDataStore, setRunning, shutdown, startup, startuppublic EciLightsoftCollector(java.lang.String collectorName,
java.lang.String collectorDescription,
DataTracker data,
DataProcessor processor)
collectorName - Collector namecollectorDescription - Collector descriptiondata - DataTracker instanceprocessor - DataProcessor instancepublic java.lang.String UpdateData(int dataSourceId,
int requestType,
java.lang.String address,
java.lang.String mask)
CollectorUpdateData invokes the collectData method which is responsible for ensuring that data is updated as appropriate, that is, the Collector should check the EMS for new data and update any internal stores as appropriate.
If the Collector does not need to update its data then it does not need to perform any work other than returning the response message "<updateResponse></updateResponse>".
Note: Is it the Collector's responsibility to determine which devices the supplied IP relates to; the IP is NOT guaranteed to be the device id.
UpdateData in class CollectordataSourceId - Holds the ID of the data source which should be updatedrequestType - The type of requestaddress - If mask is not defined then it holds the address of the device to refresh, or else it holds the subnet to
refresh. If requestType is 1 then the address may be an IP or EMS native identifier.mask - Holds the subnet mask, or is not defined
<updateResponse></updateResponse>
protected void collectData(int dataSourceId,
java.lang.String address,
java.lang.String mask)
CollectorThis method is responsible for ensuring that data is updated as appropriate, that is, the Collector should check the EMS for new data and update any internal stores as appropriate.
collectData in class CollectordataSourceId - Holds the ID of the data source which should be updatedaddress - If mask is not defined then it holds the address (IP or native id) of the device to refresh, or else it holds the subnet to
refresh.mask - Holds the subnet mask, or is not definedpublic java.lang.String GetEntities(int dataSourceId,
int deviceId)
CollectorGetEntities in class Collectorpublic java.lang.String GetEntities(int dataSourceId,
java.lang.String deviceId)
CollectorOptional - The Collector implementation of GetEntities() is responsible for gathering and returning ENTITY-MIB style entity information for a given device id and data source.
This method is used by the CollectorInventory agent to produce a list of entity information for later use in containment modeling.
GetEntities in class CollectordataSourceId - The ID for the data sourcedeviceId - The ID for the device
<entityData>
<entityList>
<entity>
<name>A Vendor 9-slot Chassis System</name>
<class>3</class>
<index>1</index>
<vendorType>1.3.6.1.4.1.0.3.175</vendorType>
<descr>ACME-2000</descr>
<parentRelPos>-1</parentRelPos>
</entity>
.. other entities ..
</entityList>
</entityData>
public java.lang.String GetInventory(int dataSourceId,
int deviceId)
CollectorGetInventory in class Collectorpublic java.lang.String GetInventory(int dataSourceId,
java.lang.String deviceId)
CollectorOptional - The Collector implementation of GetInventory() is responsible for gathering and returning device interface information for a specified device id and data source.
GetInventory in class CollectordataSourceId - The ID for the data sourcedeviceId - The ID for the device
<deviceInventory>
<deviceId>10.1.254.1</deviceId>
<interfaceList>
<interface>
<ifPhysAddress>00:99:00:E5:C4:06</ifPhysAddress>
<ifDescr>FastEthernet0/1.10</ifDescr>
<ifOperStatus>1</ifOperStatus>
<ifIndex>19</ifIndex>
<interfaceId>MyUniqueInterfaceIdFor19</interfaceId>
<ifType>135</ifType>
<ipAddress></ipAddress>
<ifName>Fa0/1.10</ifName>
</interface>
.. other interfaces ..
</interfaceList>
</deviceInventory>
public void startCorbaSession()
throws CorbaCollectorException
CorbaCollectorExceptionpublic void endCorbaSession()
public boolean haveCorbaSession()
public void reconnect()
throws CorbaCollectorException
CorbaCollectorExceptionpublic TMF814CorbaIterator getAllManagedElements(int intResultSize, boolean blnDestroyIterator) throws CorbaCollectorException
intResultSize - The number of results to be returned by the iterator for each
iteration setblnDestroyIterator - Flag to destroy the iterator objectCorbaCollectorExceptionpublic java.util.List<org.omg.CORBA.portable.IDLEntity> getManagedElement(NameAndStringValue_T[] meName)
throws CorbaCollectorException
meName - Managed Element as NameAndStringValue_T[]CorbaCollectorExceptionpublic TMF814CorbaIterator getAllEquipment(NameAndStringValue_T[] meName, int intResultSize, boolean blnDestroyIterator) throws CorbaCollectorException
meName - Managed Element as NameAndStringValue_T[]intResultSize - Flag to toggle whether the iterator object on the EMS side
should be destroyed after all results have been processed by
the CORBA Iterator.blnDestroyIterator - Flag to toggle whether the iterator object on the EMS side
should be destroyed after all results have been processed by
the CORBA Iterator.CorbaCollectorExceptionpublic TMF814CorbaIterator getAllPTPs(NameAndStringValue_T[] meName, int intResultSize, boolean blnDestroyIterator) throws CorbaCollectorException
meName - Managed Element as NameAndStringValue_T[]intResultSize - Flag to toggle whether the iterator object on the EMS side
should be destroyed after all results have been processed by
the CORBA Iterator.blnDestroyIterator - Flag to toggle whether the iterator object on the EMS side
should be destroyed after all results have been processed by
the CORBA Iterator.CorbaCollectorExceptionpublic TMF814CorbaIterator getContainedPotentialTPs(NameAndStringValue_T[] ptpName, int intResultSize, boolean blnDestroyIterator) throws CorbaCollectorException
ptpName - Physical Termination Point name as NameAndStringValue_T[]intResultSize - The number of results to be returned by the iterator for each
iteration setblnDestroyIterator - Flag to toggle whether the iterator object on the EMS side
should be destroyed after all results have been processed by
the CORBA Iterator.CorbaCollectorExceptionpublic TMF814CorbaIterator getContainedInUseTPs(NameAndStringValue_T[] ptpName, int intResultSize, boolean blnDestroyIterator) throws CorbaCollectorException
ptpName - Physical Termination Point name as NameAndStringValue_T[]intResultSize - Flag to toggle whether the iterator object on the EMS side
should be destroyed after all results have been processed by
the CORBA Iterator.blnDestroyIterator - Flag to toggle whether the iterator object on the EMS side
should be destroyed after all results have been processed by
the CORBA Iterator.CorbaCollectorExceptionpublic java.util.List<java.lang.Object> getContainingSubnetworkNames(NameAndStringValue_T[] meName)
throws CorbaCollectorException
meName - Managed Element as NameAndStringValue_T[]CorbaCollectorExceptionpublic TMF814CorbaIterator getAllTopologicalLinks(NameAndStringValue_T[] snName, int intResultSize, boolean blnDestroyIterator) throws CorbaCollectorException
snName - Subnetwork as NameAndStringValue_T[]intResultSize - The number of results to be returned by the iterator for each
iteration setblnDestroyIterator - Flag to toggle whether the iterator object on the EMS side
should be destroyed after all results have been processed by
the CORBA Iterator.CorbaCollectorExceptionpublic static void main(java.lang.String[] args)
args - The following are acceptable arguments for this Collector:
If no arguments are specified, the default values will be used.