public class SwitchCommanderCollector extends Collector
collectData, collectorDescription, collectorName, collectorPort, dataStore, propsFileName, running| Constructor and Description |
|---|
SwitchCommanderCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
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.
|
protected void |
doFullDiscovery()
Perform Full Discovery
|
protected void |
doPartialDiscovery(java.lang.String address)
Perform Partial Discovery
|
static Corba3GPPProvider |
getCorba() |
static SwitchCommanderCollectorDataStoreMap |
getDataMap() |
static java.util.Properties |
getPropsFile()
Returns the Properties object for this collector
|
protected void |
initialiseDataStore()
Initialise the data store.
|
static void |
main(java.lang.String[] args)
Entry point for this class
|
protected void |
processBoard()
Retrieve, process and add board data to data store
|
protected void |
processManagedElement(java.lang.String address)
Process managed element
|
protected void |
processPort()
Process port data //TODO This is a placeholder function for processing
ports information
|
protected void |
processRack()
Retrieve, process and add rack data to data store
|
protected void |
processShelf()
Retrieve, process and add shelves data to data store
|
static void |
setCorba(Corba3GPPProvider corba) |
static void |
setDATA_SOURCE_ID(int dATA_SOURCE_ID) |
static void |
setPropsFile(java.util.Properties propsFile) |
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, GetEntities, GetEntities, GetGNodeBData, GetHssData, GetInfo, GetInventory, GetInventory, 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, isRunning, loadPropertiesFile, setDataStore, setRunning, shutdown, startup, startuppublic SwitchCommanderCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
collectorName - Collector namecollectorDescription - Collector descriptionpublic static SwitchCommanderCollectorDataStoreMap getDataMap()
public static java.util.Properties getPropsFile()
public static Corba3GPPProvider getCorba()
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 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 initialiseDataStore()
CollectorDataStore . Should be overridden if a
different kind of data store is to be used.initialiseDataStore in class Collectorprotected void processManagedElement(java.lang.String address)
protected void processRack()
protected void processShelf()
protected void processBoard()
protected void processPort()
protected void doFullDiscovery()
protected void doPartialDiscovery(java.lang.String address)
public 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.
public static void setPropsFile(java.util.Properties propsFile)
public static void setDATA_SOURCE_ID(int dATA_SOURCE_ID)
public static void setCorba(Corba3GPPProvider corba)