public GenericData getGenericData(
     java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
     throws IceInternal.LocalExceptionWrapper {
   final Ice.Current __current = new Ice.Current();
   __initCurrent(__current, "getGenericData", Ice.OperationMode.Idempotent, __ctx);
   final GenericDataHolder __result = new GenericDataHolder();
   IceInternal.Direct __direct = null;
   try {
     __direct =
         new IceInternal.Direct(__current) {
           public Ice.DispatchStatus run(Ice.Object __obj) {
             genericDataProvider __servant = null;
             if (__obj == null || __obj instanceof genericDataProvider) {
               __servant = (genericDataProvider) __obj;
             } else {
               throw new Ice.OperationNotExistException(
                   __current.id, __current.facet, __current.operation);
             }
             __result.value = __servant.getGenericData(__current);
             return Ice.DispatchStatus.DispatchOK;
           }
         };
     try {
       Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
       if (__status == Ice.DispatchStatus.DispatchUserException) {
         __direct.throwUserException();
       }
       assert __status == Ice.DispatchStatus.DispatchOK;
       return __result.value;
     } finally {
       __direct.destroy();
     }
   } catch (Ice.SystemException __ex) {
     throw __ex;
   } catch (java.lang.Throwable __ex) {
     IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
   }
   return __result.value;
 }
Beispiel #2
0
 public DaqUnitFields getFields(java.util.Map<String, String> __ctx)
     throws IceInternal.LocalExceptionWrapper {
   final Ice.Current __current = new Ice.Current();
   __initCurrent(__current, "getFields", Ice.OperationMode.Idempotent, __ctx);
   final DaqUnitFieldsHolder __result = new DaqUnitFieldsHolder();
   IceInternal.Direct __direct = null;
   try {
     __direct =
         new IceInternal.Direct(__current) {
           public Ice.DispatchStatus run(Ice.Object __obj) {
             DaqUnit __servant = null;
             try {
               __servant = (DaqUnit) __obj;
             } catch (ClassCastException __ex) {
               throw new Ice.OperationNotExistException(
                   __current.id, __current.facet, __current.operation);
             }
             __result.value = __servant.getFields(__current);
             return Ice.DispatchStatus.DispatchOK;
           }
         };
     try {
       Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
       if (__status == Ice.DispatchStatus.DispatchUserException) {
         __direct.throwUserException();
       }
       assert __status == Ice.DispatchStatus.DispatchOK;
       return __result.value;
     } finally {
       __direct.destroy();
     }
   } catch (Ice.SystemException __ex) {
     throw __ex;
   } catch (java.lang.Throwable __ex) {
     IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
   }
   return __result.value;
 }