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

Classes providing functionality to support the 3GPP v2.5 CORBA implementation.

See: Description

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

Classes providing functionality to support the 3GPP v2.5 CORBA implementation.

Below is example code to use the 3GPP v2.5 CORBA implementation in a Collector:

 final String CORBA_IMPL_TYPE = "3GPP";

 // Get the Collector Property file
 propsFile = loadPropertiesFile(propsFileName);

 // Create CorbaProperties for the 3GPP v2.5 implementation
 CorbaPropertiesFactory propFac = new CorbaPropertiesFactory();
 corbaProp = (Corba3GPPProperties) propFac.createCorbaProperties(FACTORY_TYPE_3GPP, propsFile);

 // Create CorbaProvider for the 3GPP v2.5 implementation
 CorbaProviderFactory factory = new CorbaProviderFactory();
 provider = (Corba3GPPProvider) factory.createCorbaProvider(FACTORY_TYPE_3GPP, corbaProp);

 // Start a CORBA session
 corba.startCorbaSession();

 // Create a start date from yesterday
 Calendar cal = Calendar.getInstance();
 Date startDate = new Date();
 startDate = cal.getTime();
 cal.add(Calendar.DATE, -1);

 // Invoke a CORBA method and retrieve the results
 ArrayList<FileInfoType> result = (ArrayList<FileInfoType>) provider.list_available_files((short) 3, startDate, new Date());

 for (FileInfoType finfo : result) {
 	// Perform some data processing...
 	...
 }

 // End CORBA session
 corba.endCorbaSession();
 
 

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