Package com.ibm.tivoli.nm.collectors.framework.corba.impl.tmf814

Classes providing functionality to support the TMF814 v2.1 CORBA implementation.

See: Description

Package com.ibm.tivoli.nm.collectors.framework.corba.impl.tmf814 Description

Classes providing functionality to support the TMF814 v2.1 CORBA implementation.

The Huawei T2000 Collector is a good example to demonstrate the usage of the TMF814 v2.1 CORBA implementation. The diagram below shows the important classes involved in developing this Collector: TMF814 v2.1 CORBA implementation with the Huawei CORBA TMF814 Collector

Below is example code to use the TMF814 v2.1 CORBA implementation in a Collector:

 final String CORBA_IMPL_TYPE = "TMF814";
 
 // Get the Collector Property file
 propsFile = loadPropertiesFile(propsFileName);
 
 // Create CorbaProperties for the TMF814 v2.1 implementation
 CorbaPropertiesFactory propFac = new CorbaPropertiesFactory();
 TMF814CorbaProperties corbaProp = (TMF814CorbaProperties) propFac.createCorbaProperties(CORBA_IMPL_TYPE, propsFile);
 
 // Create CorbaProvider for the TMF814 v2.1 implementation
 CorbaProviderFactory provFac = new CorbaProviderFactory();
 TMF814CorbaProvider corba = (TMF814CorbaProvider) provFac.createCorbaProvider(CORBA_IMPL_TYPE, corbaProp);
 
 // Start a CORBA session
 corba.startCorbaSession();
 
 // Invoke a CORBA method and retrieve the results through the CORBA Iterator
 TMF814CorbaIterator iterator = corba.getAllManagedElements(corbaProp.getIntResultSize(),corbaProp.isBlnDestroyIterator());
 while (iterator.hasNext()) {
 	List<Object> meList = (List<Object>) iterator.next();
 	// Process all returned results...
 	for (Object obj : meList) {
 		// Perform some data processing...
 		...
 	}
 }
 
 // Invoke a CORBA method and retrieve the results from the ArrayList
 List<IDLEntity> meResult = null;
 try {
 	meResult = corba.getManagedElement(name);
 }
 catch (CorbaCollectorException e) {
 	throw e;
 }
 
 // Retrieve the returned result
 ManagedElement_T me = (ManagedElement_T) meResult.get(0);
 // Perform some data processing...
 ...
 
 
 // End CORBA session
 corba.endCorbaSession();
 
 

All classes from this package can be found in tmf814-corba-collector-framework.jar and reference the IDL-generated classes, methods and variables from tmf814-corba-gc.jar.