// ********************************************************************** // // Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** // Ice version 3.4.1 package IceBox; // <auto-generated> // // Generated from file `IceBox.ice' // // Warning: do not edit this file. // // </auto-generated> public final class _ServiceManagerDelD extends Ice._ObjectDelD implements _ServiceManagerDel { public void addObserver(final ServiceObserverPrx observer, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { final Ice.Current __current = new Ice.Current(); __initCurrent(__current, "addObserver", Ice.OperationMode.Normal, __ctx); IceInternal.Direct __direct = null; try { __direct = new IceInternal.Direct(__current) { public Ice.DispatchStatus run(Ice.Object __obj) { ServiceManager __servant = null; try { __servant = (ServiceManager)__obj; } catch(ClassCastException __ex) { throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation); } __servant.addObserver(observer, __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; } finally { __direct.destroy(); } } catch(Ice.SystemException __ex) { throw __ex; } catch(java.lang.Throwable __ex) { IceInternal.LocalExceptionWrapper.throwWrapper(__ex); } } public java.util.Map<java.lang.String, java.lang.String> getSliceChecksums(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { final Ice.Current __current = new Ice.Current(); __initCurrent(__current, "getSliceChecksums", Ice.OperationMode.Nonmutating, __ctx); final Ice.SliceChecksumDictHolder __result = new Ice.SliceChecksumDictHolder(); IceInternal.Direct __direct = null; try { __direct = new IceInternal.Direct(__current) { public Ice.DispatchStatus run(Ice.Object __obj) { ServiceManager __servant = null; try { __servant = (ServiceManager)__obj; } catch(ClassCastException __ex) { throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation); } __result.value = __servant.getSliceChecksums(__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; } public void shutdown(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { final Ice.Current __current = new Ice.Current(); __initCurrent(__current, "shutdown", Ice.OperationMode.Normal, __ctx); IceInternal.Direct __direct = null; try { __direct = new IceInternal.Direct(__current) { public Ice.DispatchStatus run(Ice.Object __obj) { ServiceManager __servant = null; try { __servant = (ServiceManager)__obj; } catch(ClassCastException __ex) { throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation); } __servant.shutdown(__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; } finally { __direct.destroy(); } } catch(Ice.SystemException __ex) { throw __ex; } catch(java.lang.Throwable __ex) { IceInternal.LocalExceptionWrapper.throwWrapper(__ex); } } public void startService(final String service, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, AlreadyStartedException, NoSuchServiceException { final Ice.Current __current = new Ice.Current(); __initCurrent(__current, "startService", Ice.OperationMode.Normal, __ctx); IceInternal.Direct __direct = null; try { __direct = new IceInternal.Direct(__current) { public Ice.DispatchStatus run(Ice.Object __obj) { ServiceManager __servant = null; try { __servant = (ServiceManager)__obj; } catch(ClassCastException __ex) { throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation); } try { __servant.startService(service, __current); return Ice.DispatchStatus.DispatchOK; } catch(Ice.UserException __ex) { setUserException(__ex); return Ice.DispatchStatus.DispatchUserException; } } }; try { Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct); if(__status == Ice.DispatchStatus.DispatchUserException) { __direct.throwUserException(); } assert __status == Ice.DispatchStatus.DispatchOK; } finally { __direct.destroy(); } } catch(AlreadyStartedException __ex) { throw __ex; } catch(NoSuchServiceException __ex) { throw __ex; } catch(Ice.SystemException __ex) { throw __ex; } catch(java.lang.Throwable __ex) { IceInternal.LocalExceptionWrapper.throwWrapper(__ex); } } public void stopService(final String service, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, AlreadyStoppedException, NoSuchServiceException { final Ice.Current __current = new Ice.Current(); __initCurrent(__current, "stopService", Ice.OperationMode.Normal, __ctx); IceInternal.Direct __direct = null; try { __direct = new IceInternal.Direct(__current) { public Ice.DispatchStatus run(Ice.Object __obj) { ServiceManager __servant = null; try { __servant = (ServiceManager)__obj; } catch(ClassCastException __ex) { throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation); } try { __servant.stopService(service, __current); return Ice.DispatchStatus.DispatchOK; } catch(Ice.UserException __ex) { setUserException(__ex); return Ice.DispatchStatus.DispatchUserException; } } }; try { Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct); if(__status == Ice.DispatchStatus.DispatchUserException) { __direct.throwUserException(); } assert __status == Ice.DispatchStatus.DispatchOK; } finally { __direct.destroy(); } } catch(AlreadyStoppedException __ex) { throw __ex; } catch(NoSuchServiceException __ex) { throw __ex; } catch(Ice.SystemException __ex) { throw __ex; } catch(java.lang.Throwable __ex) { IceInternal.LocalExceptionWrapper.throwWrapper(__ex); } } }