use of org.omg.CORBA.NO_IMPLEMENT in project narayana by jbosstm.
the class JavaIdlRCManager method makeRC.
/**
* We create a RecoveryCoordinator reference, but without (we think)
* actually making the implementation object available to the orb.
* The data needed to construct the RecoveryCoordinator is put in
* the ObjectId. If a replay_completion is received, it will be sent,
* via the locationd daemon, to the RecoveryManager.
*/
public RecoveryCoordinator makeRC(Uid RCUid, Uid tranUid, Uid processUid, boolean isServerTransaction) {
initialise();
RecoveryCoordinator rc = null;
try {
String rcObjectId = GenericRecoveryCoordinator.makeId(RCUid, tranUid, processUid, isServerTransaction);
if (ref_ReCoo != null) {
// New for IOR template
String new_ior = RecoverIOR.getIORFromString(ORBManager.getORB().orb(), ref_ReCoo, rcObjectId);
org.omg.CORBA.Object rcAsObject = ORBManager.getORB().orb().string_to_object(new_ior);
// End for IOR Template
rc = RecoveryCoordinatorHelper.narrow(rcAsObject);
if (jtsLogger.logger.isDebugEnabled()) {
jtsLogger.logger.debug("JavaIdlRCManager: Created reference for tran " + tranUid + " = " + rc);
}
} else {
if (JavaIdlRCManager._runWithoutDaemon)
throw new NO_IMPLEMENT();
else {
jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_JacOrbRCManager_3();
rc = null;
}
}
} catch (Exception ex) {
jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_JacOrbRCManager_2(ex);
}
return rc;
}
use of org.omg.CORBA.NO_IMPLEMENT in project alliance by codice.
the class GetParametersRequestImpl method complete.
@Override
public State complete(DAGHolder parameters) throws ProcessingFault, SystemFault {
Filter filter = filterBuilder.attribute(Metacard.ID).is().equalTo().text(productIdStr);
Query query = new QueryImpl(filter);
Result result = getResult(query);
if (result == null) {
return State.COMPLETED;
}
Map<String, List<String>> mandatoryAttributes = new HashMap<>();
if (outgoingValidationEnabled) {
NsiliDataModel nsiliDataModel = new NsiliDataModel();
mandatoryAttributes = nsiliDataModel.getRequiredAttrsForView(NsiliConstants.NSIL_ALL_VIEW);
}
try {
if (desiredParameters != null) {
if (isParamContained(desiredParameters, "ALL")) {
parameters.value = ResultDAGConverter.convertResult(result, _orb(), _poa(), new ArrayList<>(), mandatoryAttributes);
} else if (isParamContained(desiredParameters, "CORE")) {
throw new NO_IMPLEMENT("CORE desired_parameter not supported");
} else if (isParamContained(desiredParameters, "ORDER")) {
throw new NO_IMPLEMENT("ORDER desired_parameter not supported");
} else {
parameters.value = ResultDAGConverter.convertResult(result, _orb(), _poa(), Arrays.asList(desiredParameters), mandatoryAttributes);
}
} else {
if (result != null) {
parameters.value = ResultDAGConverter.convertResult(result, _orb(), _poa(), new ArrayList<>(), mandatoryAttributes);
}
}
} catch (DagParsingException dpe) {
LOGGER.debug("DAG could not be parsed and will not be returned to caller:", dpe);
}
return State.COMPLETED;
}
Aggregations