Ejemplo n.º 1
0
 private byte[] abortStream(java.util.Map<String, String> __ctx, boolean __explicitCtx) {
   if (__explicitCtx && __ctx == null) {
     __ctx = _emptyContext;
   }
   final Ice.Instrumentation.InvocationObserver __observer =
       IceInternal.ObserverHelper.get(this, "abortStream", __ctx);
   int __cnt = 0;
   try {
     while (true) {
       Ice._ObjectDel __delBase = null;
       try {
         __checkTwowayOnly("abortStream");
         __delBase = __getDelegate(false);
         _SourceDel __del = (_SourceDel) __delBase;
         return __del.abortStream(__ctx, __observer);
       } catch (IceInternal.LocalExceptionWrapper __ex) {
         __handleExceptionWrapper(__delBase, __ex, __observer);
       } catch (Ice.LocalException __ex) {
         __cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
       }
     }
   } finally {
     if (__observer != null) {
       __observer.detach();
     }
   }
 }
Ejemplo n.º 2
0
 private void modifyTransport(
     Components.TransportProfile theProfile,
     java.util.Map<String, String> __ctx,
     boolean __explicitCtx)
     throws GenericError {
   if (__explicitCtx && __ctx == null) {
     __ctx = _emptyContext;
   }
   final Ice.Instrumentation.InvocationObserver __observer =
       IceInternal.ObserverHelper.get(this, "modifyTransport", __ctx);
   int __cnt = 0;
   try {
     while (true) {
       Ice._ObjectDel __delBase = null;
       try {
         __checkTwowayOnly("modifyTransport");
         __delBase = __getDelegate(false);
         _SourceDel __del = (_SourceDel) __delBase;
         __del.modifyTransport(theProfile, __ctx, __observer);
         return;
       } catch (IceInternal.LocalExceptionWrapper __ex) {
         __handleExceptionWrapper(__delBase, __ex, __observer);
       } catch (Ice.LocalException __ex) {
         __cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
       }
     }
   } finally {
     if (__observer != null) {
       __observer.detach();
     }
   }
 }
Ejemplo n.º 3
0
 public void end_modifyTransport(Ice.AsyncResult __result) throws GenericError {
   Ice.AsyncResult.__check(__result, this, __modifyTransport_name);
   boolean __ok = __result.__wait();
   try {
     if (!__ok) {
       try {
         __result.__throwUserException();
       } catch (GenericError __ex) {
         throw __ex;
       } catch (Ice.UserException __ex) {
         throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
       }
     }
     __result.__readEmptyParams();
   } catch (Ice.LocalException ex) {
     Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
     if (__obsv != null) {
       __obsv.failed(ex.ice_name());
     }
     throw ex;
   }
 }
Ejemplo n.º 4
0
 public byte[] end_abortStream(Ice.AsyncResult __result) {
   Ice.AsyncResult.__check(__result, this, __abortStream_name);
   boolean __ok = __result.__wait();
   try {
     if (!__ok) {
       try {
         __result.__throwUserException();
       } catch (Ice.UserException __ex) {
         throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
       }
     }
     IceInternal.BasicStream __is = __result.__startReadParams();
     byte[] __ret;
     __ret = MarkerHelper.read(__is);
     __result.__endReadParams();
     return __ret;
   } catch (Ice.LocalException ex) {
     Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
     if (__obsv != null) {
       __obsv.failed(ex.ice_name());
     }
     throw ex;
   }
 }