See: Description
Class | Description |
---|---|
TMF814CorbaExceptionLogger | |
TMF814CorbaExecutor |
TMF814 v2.1 implementation of the CORBA Executor
|
TMF814CorbaIorProcessor |
TMF814 v2.1 implementation of the CORBA IOR Processor
|
TMF814CorbaIterator |
TMF814 v2.1 implementation of the CORBA Iterator
|
TMF814CorbaLogMessages |
Log messages specific for the TMF814 v2.1 implementation
|
TMF814CorbaNameServiceManager |
TMF814 v2.1 implementation of the CORBA Name Service Manager
|
TMF814CorbaOrbManager |
TMF814 v2.1 implementation of the CORBA ORB Manager
|
TMF814CorbaProperties |
TMF814 v2.1 implementation of the CORBA Properties
|
TMF814CorbaPropertiesConstants |
Constants specific for the TMF814 v2.1 CORBA implementation
|
TMF814CorbaProvider |
Provides CORBA data query and retrieval services using the TMF814 v2.1
implementation.
|
TMF814CorbaSession |
TMF814 v2.1 implementation of the CORBA Session
|
TMF814NMSSessionImpl |
NMSSession implementation for the TMF814 v2.1 definition
|
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:
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.