IceGrid.AdminPrxHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icegrid-compat Show documentation
Show all versions of icegrid-compat Show documentation
Locate, deploy, and manage Ice servers
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
//
//
// Generated from file `Admin.ice'
//
// Warning: do not edit this file.
//
//
//
package IceGrid;
/**
* Provides type-specific helper functions.
**/
public final class AdminPrxHelper extends Ice.ObjectPrxHelperBase implements AdminPrx
{
private static final String _addApplication_name = "addApplication";
public void addApplication(ApplicationDescriptor descriptor)
throws AccessDeniedException,
DeploymentException
{
_iceI_addApplication(descriptor, null, false);
}
public void addApplication(ApplicationDescriptor descriptor, java.util.Map context)
throws AccessDeniedException,
DeploymentException
{
_iceI_addApplication(descriptor, context, true);
}
private void _iceI_addApplication(ApplicationDescriptor iceP_descriptor, java.util.Map context, boolean explicitCtx)
throws AccessDeniedException,
DeploymentException
{
_checkTwowayOnly(_addApplication_name);
end_addApplication(_iceI_begin_addApplication(iceP_descriptor, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor)
{
return _iceI_begin_addApplication(descriptor, null, false, false, null);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor, java.util.Map context)
{
return _iceI_begin_addApplication(descriptor, context, true, false, null);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor, Ice.Callback cb)
{
return _iceI_begin_addApplication(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_addApplication(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor, Callback_Admin_addApplication cb)
{
return _iceI_begin_addApplication(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor, java.util.Map context, Callback_Admin_addApplication cb)
{
return _iceI_begin_addApplication(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_addApplication(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_addApplication(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_addApplication(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_addApplication(ApplicationDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_addApplication(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_addApplication(ApplicationDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_addApplication(iceP_descriptor,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_addApplication_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_addApplication(ApplicationDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_addApplication_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_addApplication_name, cb);
try
{
result.prepare(_addApplication_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ApplicationDescriptor.ice_write(ostr, iceP_descriptor);
ostr.writePendingValues();
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_addApplication(Ice.AsyncResult iresult)
throws AccessDeniedException,
DeploymentException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _addApplication_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(AccessDeniedException ex_)
{
throw ex_;
}
catch(DeploymentException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
result_.readEmptyParams();
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_addApplication_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
try
{
_proxy.end_addApplication(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response();
}
private static final String _syncApplication_name = "syncApplication";
public void syncApplication(ApplicationDescriptor descriptor)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_syncApplication(descriptor, null, false);
}
public void syncApplication(ApplicationDescriptor descriptor, java.util.Map context)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_syncApplication(descriptor, context, true);
}
private void _iceI_syncApplication(ApplicationDescriptor iceP_descriptor, java.util.Map context, boolean explicitCtx)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_checkTwowayOnly(_syncApplication_name);
end_syncApplication(_iceI_begin_syncApplication(iceP_descriptor, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor)
{
return _iceI_begin_syncApplication(descriptor, null, false, false, null);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor, java.util.Map context)
{
return _iceI_begin_syncApplication(descriptor, context, true, false, null);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor, Ice.Callback cb)
{
return _iceI_begin_syncApplication(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_syncApplication(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor, Callback_Admin_syncApplication cb)
{
return _iceI_begin_syncApplication(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor, java.util.Map context, Callback_Admin_syncApplication cb)
{
return _iceI_begin_syncApplication(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_syncApplication(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_syncApplication(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_syncApplication(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_syncApplication(ApplicationDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_syncApplication(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_syncApplication(ApplicationDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_syncApplication(iceP_descriptor,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_syncApplication_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_syncApplication(ApplicationDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_syncApplication_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_syncApplication_name, cb);
try
{
result.prepare(_syncApplication_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ApplicationDescriptor.ice_write(ostr, iceP_descriptor);
ostr.writePendingValues();
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_syncApplication(Ice.AsyncResult iresult)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _syncApplication_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(AccessDeniedException ex_)
{
throw ex_;
}
catch(ApplicationNotExistException ex_)
{
throw ex_;
}
catch(DeploymentException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
result_.readEmptyParams();
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_syncApplication_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
try
{
_proxy.end_syncApplication(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response();
}
private static final String _updateApplication_name = "updateApplication";
public void updateApplication(ApplicationUpdateDescriptor descriptor)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_updateApplication(descriptor, null, false);
}
public void updateApplication(ApplicationUpdateDescriptor descriptor, java.util.Map context)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_updateApplication(descriptor, context, true);
}
private void _iceI_updateApplication(ApplicationUpdateDescriptor iceP_descriptor, java.util.Map context, boolean explicitCtx)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_checkTwowayOnly(_updateApplication_name);
end_updateApplication(_iceI_begin_updateApplication(iceP_descriptor, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor)
{
return _iceI_begin_updateApplication(descriptor, null, false, false, null);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor, java.util.Map context)
{
return _iceI_begin_updateApplication(descriptor, context, true, false, null);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor, Ice.Callback cb)
{
return _iceI_begin_updateApplication(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_updateApplication(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor, Callback_Admin_updateApplication cb)
{
return _iceI_begin_updateApplication(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor, java.util.Map context, Callback_Admin_updateApplication cb)
{
return _iceI_begin_updateApplication(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_updateApplication(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_updateApplication(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_updateApplication(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_updateApplication(ApplicationUpdateDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_updateApplication(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_updateApplication(ApplicationUpdateDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_updateApplication(iceP_descriptor,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_updateApplication_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_updateApplication(ApplicationUpdateDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_updateApplication_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_updateApplication_name, cb);
try
{
result.prepare(_updateApplication_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ApplicationUpdateDescriptor.ice_write(ostr, iceP_descriptor);
ostr.writePendingValues();
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_updateApplication(Ice.AsyncResult iresult)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _updateApplication_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(AccessDeniedException ex_)
{
throw ex_;
}
catch(ApplicationNotExistException ex_)
{
throw ex_;
}
catch(DeploymentException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
result_.readEmptyParams();
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_updateApplication_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
try
{
_proxy.end_updateApplication(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response();
}
private static final String _syncApplicationWithoutRestart_name = "syncApplicationWithoutRestart";
public void syncApplicationWithoutRestart(ApplicationDescriptor descriptor)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_syncApplicationWithoutRestart(descriptor, null, false);
}
public void syncApplicationWithoutRestart(ApplicationDescriptor descriptor, java.util.Map context)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_syncApplicationWithoutRestart(descriptor, context, true);
}
private void _iceI_syncApplicationWithoutRestart(ApplicationDescriptor iceP_descriptor, java.util.Map context, boolean explicitCtx)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_checkTwowayOnly(_syncApplicationWithoutRestart_name);
end_syncApplicationWithoutRestart(_iceI_begin_syncApplicationWithoutRestart(iceP_descriptor, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, null, false, false, null);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor, java.util.Map context)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, context, true, false, null);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor, Ice.Callback cb)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor, Callback_Admin_syncApplicationWithoutRestart cb)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor, java.util.Map context, Callback_Admin_syncApplicationWithoutRestart cb)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_syncApplicationWithoutRestart(ApplicationDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_syncApplicationWithoutRestart(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_syncApplicationWithoutRestart(ApplicationDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_syncApplicationWithoutRestart(iceP_descriptor,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_syncApplicationWithoutRestart_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_syncApplicationWithoutRestart(ApplicationDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_syncApplicationWithoutRestart_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_syncApplicationWithoutRestart_name, cb);
try
{
result.prepare(_syncApplicationWithoutRestart_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ApplicationDescriptor.ice_write(ostr, iceP_descriptor);
ostr.writePendingValues();
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_syncApplicationWithoutRestart(Ice.AsyncResult iresult)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _syncApplicationWithoutRestart_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(AccessDeniedException ex_)
{
throw ex_;
}
catch(ApplicationNotExistException ex_)
{
throw ex_;
}
catch(DeploymentException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
result_.readEmptyParams();
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_syncApplicationWithoutRestart_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
try
{
_proxy.end_syncApplicationWithoutRestart(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response();
}
private static final String _updateApplicationWithoutRestart_name = "updateApplicationWithoutRestart";
public void updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_updateApplicationWithoutRestart(descriptor, null, false);
}
public void updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor, java.util.Map context)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_updateApplicationWithoutRestart(descriptor, context, true);
}
private void _iceI_updateApplicationWithoutRestart(ApplicationUpdateDescriptor iceP_descriptor, java.util.Map context, boolean explicitCtx)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_checkTwowayOnly(_updateApplicationWithoutRestart_name);
end_updateApplicationWithoutRestart(_iceI_begin_updateApplicationWithoutRestart(iceP_descriptor, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, null, false, false, null);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor, java.util.Map context)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, context, true, false, null);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor, Ice.Callback cb)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor, Callback_Admin_updateApplicationWithoutRestart cb)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, null, false, false, cb);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor, java.util.Map context, Callback_Admin_updateApplicationWithoutRestart cb)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, context, true, false, cb);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_updateApplicationWithoutRestart(descriptor, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_updateApplicationWithoutRestart(iceP_descriptor,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_updateApplicationWithoutRestart_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_updateApplicationWithoutRestart(ApplicationUpdateDescriptor iceP_descriptor,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_updateApplicationWithoutRestart_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_updateApplicationWithoutRestart_name, cb);
try
{
result.prepare(_updateApplicationWithoutRestart_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ApplicationUpdateDescriptor.ice_write(ostr, iceP_descriptor);
ostr.writePendingValues();
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_updateApplicationWithoutRestart(Ice.AsyncResult iresult)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _updateApplicationWithoutRestart_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(AccessDeniedException ex_)
{
throw ex_;
}
catch(ApplicationNotExistException ex_)
{
throw ex_;
}
catch(DeploymentException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
result_.readEmptyParams();
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_updateApplicationWithoutRestart_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
try
{
_proxy.end_updateApplicationWithoutRestart(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response();
}
private static final String _removeApplication_name = "removeApplication";
public void removeApplication(String name)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_removeApplication(name, null, false);
}
public void removeApplication(String name, java.util.Map context)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_removeApplication(name, context, true);
}
private void _iceI_removeApplication(String iceP_name, java.util.Map context, boolean explicitCtx)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_checkTwowayOnly(_removeApplication_name);
end_removeApplication(_iceI_begin_removeApplication(iceP_name, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_removeApplication(String name)
{
return _iceI_begin_removeApplication(name, null, false, false, null);
}
public Ice.AsyncResult begin_removeApplication(String name, java.util.Map context)
{
return _iceI_begin_removeApplication(name, context, true, false, null);
}
public Ice.AsyncResult begin_removeApplication(String name, Ice.Callback cb)
{
return _iceI_begin_removeApplication(name, null, false, false, cb);
}
public Ice.AsyncResult begin_removeApplication(String name, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_removeApplication(name, context, true, false, cb);
}
public Ice.AsyncResult begin_removeApplication(String name, Callback_Admin_removeApplication cb)
{
return _iceI_begin_removeApplication(name, null, false, false, cb);
}
public Ice.AsyncResult begin_removeApplication(String name, java.util.Map context, Callback_Admin_removeApplication cb)
{
return _iceI_begin_removeApplication(name, context, true, false, cb);
}
public Ice.AsyncResult begin_removeApplication(String name,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_removeApplication(name, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_removeApplication(String name,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_removeApplication(name, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_removeApplication(String name,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_removeApplication(name, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_removeApplication(String name,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_removeApplication(name, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_removeApplication(String iceP_name,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_removeApplication(iceP_name,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_removeApplication_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_removeApplication(String iceP_name,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_removeApplication_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_removeApplication_name, cb);
try
{
result.prepare(_removeApplication_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ostr.writeString(iceP_name);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_removeApplication(Ice.AsyncResult iresult)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _removeApplication_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(AccessDeniedException ex_)
{
throw ex_;
}
catch(ApplicationNotExistException ex_)
{
throw ex_;
}
catch(DeploymentException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
result_.readEmptyParams();
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_removeApplication_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
try
{
_proxy.end_removeApplication(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response();
}
private static final String _instantiateServer_name = "instantiateServer";
public void instantiateServer(String application, String node, ServerInstanceDescriptor desc)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_instantiateServer(application, node, desc, null, false);
}
public void instantiateServer(String application, String node, ServerInstanceDescriptor desc, java.util.Map context)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_iceI_instantiateServer(application, node, desc, context, true);
}
private void _iceI_instantiateServer(String iceP_application, String iceP_node, ServerInstanceDescriptor iceP_desc, java.util.Map context, boolean explicitCtx)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
_checkTwowayOnly(_instantiateServer_name);
end_instantiateServer(_iceI_begin_instantiateServer(iceP_application, iceP_node, iceP_desc, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_instantiateServer(String application, String node, ServerInstanceDescriptor desc)
{
return _iceI_begin_instantiateServer(application, node, desc, null, false, false, null);
}
public Ice.AsyncResult begin_instantiateServer(String application, String node, ServerInstanceDescriptor desc, java.util.Map context)
{
return _iceI_begin_instantiateServer(application, node, desc, context, true, false, null);
}
public Ice.AsyncResult begin_instantiateServer(String application, String node, ServerInstanceDescriptor desc, Ice.Callback cb)
{
return _iceI_begin_instantiateServer(application, node, desc, null, false, false, cb);
}
public Ice.AsyncResult begin_instantiateServer(String application, String node, ServerInstanceDescriptor desc, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_instantiateServer(application, node, desc, context, true, false, cb);
}
public Ice.AsyncResult begin_instantiateServer(String application, String node, ServerInstanceDescriptor desc, Callback_Admin_instantiateServer cb)
{
return _iceI_begin_instantiateServer(application, node, desc, null, false, false, cb);
}
public Ice.AsyncResult begin_instantiateServer(String application, String node, ServerInstanceDescriptor desc, java.util.Map context, Callback_Admin_instantiateServer cb)
{
return _iceI_begin_instantiateServer(application, node, desc, context, true, false, cb);
}
public Ice.AsyncResult begin_instantiateServer(String application,
String node,
ServerInstanceDescriptor desc,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_instantiateServer(application, node, desc, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_instantiateServer(String application,
String node,
ServerInstanceDescriptor desc,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_instantiateServer(application, node, desc, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_instantiateServer(String application,
String node,
ServerInstanceDescriptor desc,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_instantiateServer(application, node, desc, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_instantiateServer(String application,
String node,
ServerInstanceDescriptor desc,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_instantiateServer(application, node, desc, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_instantiateServer(String iceP_application,
String iceP_node,
ServerInstanceDescriptor iceP_desc,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_instantiateServer(iceP_application,
iceP_node,
iceP_desc,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_instantiateServer_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_instantiateServer(String iceP_application,
String iceP_node,
ServerInstanceDescriptor iceP_desc,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_instantiateServer_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_instantiateServer_name, cb);
try
{
result.prepare(_instantiateServer_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ostr.writeString(iceP_application);
ostr.writeString(iceP_node);
ServerInstanceDescriptor.ice_write(ostr, iceP_desc);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_instantiateServer(Ice.AsyncResult iresult)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _instantiateServer_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(AccessDeniedException ex_)
{
throw ex_;
}
catch(ApplicationNotExistException ex_)
{
throw ex_;
}
catch(DeploymentException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
result_.readEmptyParams();
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_instantiateServer_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
try
{
_proxy.end_instantiateServer(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response();
}
private static final String _patchApplication_name = "patchApplication";
public void patchApplication(String name, boolean shutdown)
throws ApplicationNotExistException,
PatchException
{
_iceI_patchApplication(name, shutdown, null, false);
}
public void patchApplication(String name, boolean shutdown, java.util.Map context)
throws ApplicationNotExistException,
PatchException
{
_iceI_patchApplication(name, shutdown, context, true);
}
private void _iceI_patchApplication(String iceP_name, boolean iceP_shutdown, java.util.Map context, boolean explicitCtx)
throws ApplicationNotExistException,
PatchException
{
_checkTwowayOnly(_patchApplication_name);
end_patchApplication(_iceI_begin_patchApplication(iceP_name, iceP_shutdown, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_patchApplication(String name, boolean shutdown)
{
return _iceI_begin_patchApplication(name, shutdown, null, false, false, null);
}
public Ice.AsyncResult begin_patchApplication(String name, boolean shutdown, java.util.Map context)
{
return _iceI_begin_patchApplication(name, shutdown, context, true, false, null);
}
public Ice.AsyncResult begin_patchApplication(String name, boolean shutdown, Ice.Callback cb)
{
return _iceI_begin_patchApplication(name, shutdown, null, false, false, cb);
}
public Ice.AsyncResult begin_patchApplication(String name, boolean shutdown, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_patchApplication(name, shutdown, context, true, false, cb);
}
public Ice.AsyncResult begin_patchApplication(String name, boolean shutdown, Callback_Admin_patchApplication cb)
{
return _iceI_begin_patchApplication(name, shutdown, null, false, false, cb);
}
public Ice.AsyncResult begin_patchApplication(String name, boolean shutdown, java.util.Map context, Callback_Admin_patchApplication cb)
{
return _iceI_begin_patchApplication(name, shutdown, context, true, false, cb);
}
public Ice.AsyncResult begin_patchApplication(String name,
boolean shutdown,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_patchApplication(name, shutdown, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_patchApplication(String name,
boolean shutdown,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_patchApplication(name, shutdown, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_patchApplication(String name,
boolean shutdown,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_patchApplication(name, shutdown, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_patchApplication(String name,
boolean shutdown,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_patchApplication(name, shutdown, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_patchApplication(String iceP_name,
boolean iceP_shutdown,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_patchApplication(iceP_name,
iceP_shutdown,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_patchApplication_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_patchApplication(String iceP_name,
boolean iceP_shutdown,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_patchApplication_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_patchApplication_name, cb);
try
{
result.prepare(_patchApplication_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ostr.writeString(iceP_name);
ostr.writeBool(iceP_shutdown);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_patchApplication(Ice.AsyncResult iresult)
throws ApplicationNotExistException,
PatchException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _patchApplication_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(ApplicationNotExistException ex_)
{
throw ex_;
}
catch(PatchException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
result_.readEmptyParams();
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_patchApplication_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
try
{
_proxy.end_patchApplication(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response();
}
private static final String _getApplicationInfo_name = "getApplicationInfo";
public ApplicationInfo getApplicationInfo(String name)
throws ApplicationNotExistException
{
return _iceI_getApplicationInfo(name, null, false);
}
public ApplicationInfo getApplicationInfo(String name, java.util.Map context)
throws ApplicationNotExistException
{
return _iceI_getApplicationInfo(name, context, true);
}
private ApplicationInfo _iceI_getApplicationInfo(String iceP_name, java.util.Map context, boolean explicitCtx)
throws ApplicationNotExistException
{
_checkTwowayOnly(_getApplicationInfo_name);
return end_getApplicationInfo(_iceI_begin_getApplicationInfo(iceP_name, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_getApplicationInfo(String name)
{
return _iceI_begin_getApplicationInfo(name, null, false, false, null);
}
public Ice.AsyncResult begin_getApplicationInfo(String name, java.util.Map context)
{
return _iceI_begin_getApplicationInfo(name, context, true, false, null);
}
public Ice.AsyncResult begin_getApplicationInfo(String name, Ice.Callback cb)
{
return _iceI_begin_getApplicationInfo(name, null, false, false, cb);
}
public Ice.AsyncResult begin_getApplicationInfo(String name, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_getApplicationInfo(name, context, true, false, cb);
}
public Ice.AsyncResult begin_getApplicationInfo(String name, Callback_Admin_getApplicationInfo cb)
{
return _iceI_begin_getApplicationInfo(name, null, false, false, cb);
}
public Ice.AsyncResult begin_getApplicationInfo(String name, java.util.Map context, Callback_Admin_getApplicationInfo cb)
{
return _iceI_begin_getApplicationInfo(name, context, true, false, cb);
}
public Ice.AsyncResult begin_getApplicationInfo(String name,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getApplicationInfo(name, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getApplicationInfo(String name,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getApplicationInfo(name, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_getApplicationInfo(String name,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getApplicationInfo(name, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getApplicationInfo(String name,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getApplicationInfo(name, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_getApplicationInfo(String iceP_name,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getApplicationInfo(iceP_name,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_getApplicationInfo_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_getApplicationInfo(String iceP_name,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_getApplicationInfo_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_getApplicationInfo_name, cb);
try
{
result.prepare(_getApplicationInfo_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ostr.writeString(iceP_name);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public ApplicationInfo end_getApplicationInfo(Ice.AsyncResult iresult)
throws ApplicationNotExistException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getApplicationInfo_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(ApplicationNotExistException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
Ice.InputStream istr_ = result_.startReadParams();
ApplicationInfo ret_ = null;
ret_ = ApplicationInfo.ice_read(istr_);
istr_.readPendingValues();
result_.endReadParams();
return ret_;
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_getApplicationInfo_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
ApplicationInfo ret = null;
try
{
ret = _proxy.end_getApplicationInfo(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response(ret);
}
private static final String _getDefaultApplicationDescriptor_name = "getDefaultApplicationDescriptor";
public ApplicationDescriptor getDefaultApplicationDescriptor()
throws DeploymentException
{
return _iceI_getDefaultApplicationDescriptor(null, false);
}
public ApplicationDescriptor getDefaultApplicationDescriptor(java.util.Map context)
throws DeploymentException
{
return _iceI_getDefaultApplicationDescriptor(context, true);
}
private ApplicationDescriptor _iceI_getDefaultApplicationDescriptor(java.util.Map context, boolean explicitCtx)
throws DeploymentException
{
_checkTwowayOnly(_getDefaultApplicationDescriptor_name);
return end_getDefaultApplicationDescriptor(_iceI_begin_getDefaultApplicationDescriptor(context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor()
{
return _iceI_begin_getDefaultApplicationDescriptor(null, false, false, null);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(java.util.Map context)
{
return _iceI_begin_getDefaultApplicationDescriptor(context, true, false, null);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(Ice.Callback cb)
{
return _iceI_begin_getDefaultApplicationDescriptor(null, false, false, cb);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_getDefaultApplicationDescriptor(context, true, false, cb);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(Callback_Admin_getDefaultApplicationDescriptor cb)
{
return _iceI_begin_getDefaultApplicationDescriptor(null, false, false, cb);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(java.util.Map context, Callback_Admin_getDefaultApplicationDescriptor cb)
{
return _iceI_begin_getDefaultApplicationDescriptor(context, true, false, cb);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getDefaultApplicationDescriptor(null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getDefaultApplicationDescriptor(null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getDefaultApplicationDescriptor(context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getDefaultApplicationDescriptor(java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getDefaultApplicationDescriptor(context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_getDefaultApplicationDescriptor(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getDefaultApplicationDescriptor(context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_getDefaultApplicationDescriptor_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_getDefaultApplicationDescriptor(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_getDefaultApplicationDescriptor_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_getDefaultApplicationDescriptor_name, cb);
try
{
result.prepare(_getDefaultApplicationDescriptor_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
result.writeEmptyParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public ApplicationDescriptor end_getDefaultApplicationDescriptor(Ice.AsyncResult iresult)
throws DeploymentException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getDefaultApplicationDescriptor_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(DeploymentException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
Ice.InputStream istr_ = result_.startReadParams();
ApplicationDescriptor ret_ = null;
ret_ = ApplicationDescriptor.ice_read(istr_);
istr_.readPendingValues();
result_.endReadParams();
return ret_;
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_getDefaultApplicationDescriptor_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
ApplicationDescriptor ret = null;
try
{
ret = _proxy.end_getDefaultApplicationDescriptor(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response(ret);
}
private static final String _getAllApplicationNames_name = "getAllApplicationNames";
public String[] getAllApplicationNames()
{
return _iceI_getAllApplicationNames(null, false);
}
public String[] getAllApplicationNames(java.util.Map context)
{
return _iceI_getAllApplicationNames(context, true);
}
private String[] _iceI_getAllApplicationNames(java.util.Map context, boolean explicitCtx)
{
_checkTwowayOnly(_getAllApplicationNames_name);
return end_getAllApplicationNames(_iceI_begin_getAllApplicationNames(context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_getAllApplicationNames()
{
return _iceI_begin_getAllApplicationNames(null, false, false, null);
}
public Ice.AsyncResult begin_getAllApplicationNames(java.util.Map context)
{
return _iceI_begin_getAllApplicationNames(context, true, false, null);
}
public Ice.AsyncResult begin_getAllApplicationNames(Ice.Callback cb)
{
return _iceI_begin_getAllApplicationNames(null, false, false, cb);
}
public Ice.AsyncResult begin_getAllApplicationNames(java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_getAllApplicationNames(context, true, false, cb);
}
public Ice.AsyncResult begin_getAllApplicationNames(Callback_Admin_getAllApplicationNames cb)
{
return _iceI_begin_getAllApplicationNames(null, false, false, cb);
}
public Ice.AsyncResult begin_getAllApplicationNames(java.util.Map context, Callback_Admin_getAllApplicationNames cb)
{
return _iceI_begin_getAllApplicationNames(context, true, false, cb);
}
public Ice.AsyncResult begin_getAllApplicationNames(IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getAllApplicationNames(null, false, false, responseCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getAllApplicationNames(IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getAllApplicationNames(null, false, false, responseCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_getAllApplicationNames(java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getAllApplicationNames(context, true, false, responseCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getAllApplicationNames(java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getAllApplicationNames(context, true, false, responseCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_getAllApplicationNames(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getAllApplicationNames(context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_getAllApplicationNames_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_getAllApplicationNames(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_getAllApplicationNames_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_getAllApplicationNames_name, cb);
try
{
result.prepare(_getAllApplicationNames_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
result.writeEmptyParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public String[] end_getAllApplicationNames(Ice.AsyncResult iresult)
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getAllApplicationNames_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
Ice.InputStream istr_ = result_.startReadParams();
String[] ret_;
ret_ = Ice.StringSeqHelper.read(istr_);
result_.endReadParams();
return ret_;
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_getAllApplicationNames_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
String[] ret = null;
try
{
ret = _proxy.end_getAllApplicationNames(result);
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response(ret);
}
private static final String _getServerInfo_name = "getServerInfo";
public ServerInfo getServerInfo(String id)
throws ServerNotExistException
{
return _iceI_getServerInfo(id, null, false);
}
public ServerInfo getServerInfo(String id, java.util.Map context)
throws ServerNotExistException
{
return _iceI_getServerInfo(id, context, true);
}
private ServerInfo _iceI_getServerInfo(String iceP_id, java.util.Map context, boolean explicitCtx)
throws ServerNotExistException
{
_checkTwowayOnly(_getServerInfo_name);
return end_getServerInfo(_iceI_begin_getServerInfo(iceP_id, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_getServerInfo(String id)
{
return _iceI_begin_getServerInfo(id, null, false, false, null);
}
public Ice.AsyncResult begin_getServerInfo(String id, java.util.Map context)
{
return _iceI_begin_getServerInfo(id, context, true, false, null);
}
public Ice.AsyncResult begin_getServerInfo(String id, Ice.Callback cb)
{
return _iceI_begin_getServerInfo(id, null, false, false, cb);
}
public Ice.AsyncResult begin_getServerInfo(String id, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_getServerInfo(id, context, true, false, cb);
}
public Ice.AsyncResult begin_getServerInfo(String id, Callback_Admin_getServerInfo cb)
{
return _iceI_begin_getServerInfo(id, null, false, false, cb);
}
public Ice.AsyncResult begin_getServerInfo(String id, java.util.Map context, Callback_Admin_getServerInfo cb)
{
return _iceI_begin_getServerInfo(id, context, true, false, cb);
}
public Ice.AsyncResult begin_getServerInfo(String id,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getServerInfo(id, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getServerInfo(String id,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getServerInfo(id, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_getServerInfo(String id,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getServerInfo(id, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getServerInfo(String id,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getServerInfo(id, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_getServerInfo(String iceP_id,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getServerInfo(iceP_id,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
AdminPrxHelper._iceI_getServerInfo_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_getServerInfo(String iceP_id,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_getServerInfo_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_getServerInfo_name, cb);
try
{
result.prepare(_getServerInfo_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ostr.writeString(iceP_id);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public ServerInfo end_getServerInfo(Ice.AsyncResult iresult)
throws ServerNotExistException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getServerInfo_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(ServerNotExistException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
Ice.InputStream istr_ = result_.startReadParams();
ServerInfo ret_ = null;
ret_ = ServerInfo.ice_read(istr_);
istr_.readPendingValues();
result_.endReadParams();
return ret_;
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_getServerInfo_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
{
IceGrid.AdminPrx _proxy = (IceGrid.AdminPrx)result.getProxy();
ServerInfo ret = null;
try
{
ret = _proxy.end_getServerInfo(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response(ret);
}
private static final String _getServerState_name = "getServerState";
public ServerState getServerState(String id)
throws DeploymentException,
NodeUnreachableException,
ServerNotExistException
{
return _iceI_getServerState(id, null, false);
}
public ServerState getServerState(String id, java.util.Map