Skip navigation links

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 ECI LightSoft 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

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

 
 // Get the Collector Property file
 propsFile = loadPropertiesFile(propsFileName);
 
 // Create TMF814CorbaProperties for the TMF814 v2.1 implementation
 TMF814CorbaPropertiesFactory propFac = new TMF814CorbaPropertiesFactory();
 TMF814CorbaProperties corbaProp = propFac.create(propsFile);
 
 // Create TMF814CorbaProvider for the TMF814 v2.1 implementation
 TMF814CorbaProviderFactory provFac = new TMF814CorbaProviderFactory();
 TMF814CorbaProvider corba = provFac.create(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<ManagedElement_T> meResult = new ArrayList<ManagedElement_T>();
 try {
  meResult = corba.getManagedElement(name);
 }
 catch (CorbaCollectorException e) {
 	throw e;
 }
 
 // Retrieve the returned result
 if ( !meResult.isEmpty() ) {
  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.

Skip navigation links