Ice.ProcessPrxHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice-compat Show documentation
Show all versions of ice-compat Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.4
//
//
//
// Generated from file `Process.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
/**
* Provides type-specific helper functions.
**/
public final class ProcessPrxHelper extends ObjectPrxHelperBase implements ProcessPrx
{
private static final String _shutdown_name = "shutdown";
public void shutdown()
{
_iceI_shutdown(null, false);
}
public void shutdown(java.util.Map context)
{
_iceI_shutdown(context, true);
}
private void _iceI_shutdown(java.util.Map context, boolean explicitCtx)
{
end_shutdown(_iceI_begin_shutdown(context, explicitCtx, true, null));
}
public AsyncResult begin_shutdown()
{
return _iceI_begin_shutdown(null, false, false, null);
}
public AsyncResult begin_shutdown(java.util.Map context)
{
return _iceI_begin_shutdown(context, true, false, null);
}
public AsyncResult begin_shutdown(Callback cb)
{
return _iceI_begin_shutdown(null, false, false, cb);
}
public AsyncResult begin_shutdown(java.util.Map context, Callback cb)
{
return _iceI_begin_shutdown(context, true, false, cb);
}
public AsyncResult begin_shutdown(Callback_Process_shutdown cb)
{
return _iceI_begin_shutdown(null, false, false, cb);
}
public AsyncResult begin_shutdown(java.util.Map context, Callback_Process_shutdown cb)
{
return _iceI_begin_shutdown(context, true, false, cb);
}
public AsyncResult begin_shutdown(IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_shutdown(null, false, false, responseCb, exceptionCb, null);
}
public AsyncResult begin_shutdown(IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_shutdown(null, false, false, responseCb, exceptionCb, sentCb);
}
public AsyncResult begin_shutdown(java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_shutdown(context, true, false, responseCb, exceptionCb, null);
}
public AsyncResult begin_shutdown(java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_shutdown(context, true, false, responseCb, exceptionCb, sentCb);
}
private AsyncResult _iceI_begin_shutdown(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_shutdown(context,
explicitCtx,
synchronous,
new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
}
private AsyncResult _iceI_begin_shutdown(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
IceInternal.OutgoingAsync result = getOutgoingAsync(_shutdown_name, cb);
try
{
result.prepare(_shutdown_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
result.writeEmptyParams();
result.invoke();
}
catch(Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_shutdown(AsyncResult iresult)
{
_end(iresult, _shutdown_name);
}
private static final String _writeMessage_name = "writeMessage";
public void writeMessage(String message, int fd)
{
_iceI_writeMessage(message, fd, null, false);
}
public void writeMessage(String message, int fd, java.util.Map context)
{
_iceI_writeMessage(message, fd, context, true);
}
private void _iceI_writeMessage(String iceP_message, int iceP_fd, java.util.Map context, boolean explicitCtx)
{
end_writeMessage(_iceI_begin_writeMessage(iceP_message, iceP_fd, context, explicitCtx, true, null));
}
public AsyncResult begin_writeMessage(String message, int fd)
{
return _iceI_begin_writeMessage(message, fd, null, false, false, null);
}
public AsyncResult begin_writeMessage(String message, int fd, java.util.Map context)
{
return _iceI_begin_writeMessage(message, fd, context, true, false, null);
}
public AsyncResult begin_writeMessage(String message, int fd, Callback cb)
{
return _iceI_begin_writeMessage(message, fd, null, false, false, cb);
}
public AsyncResult begin_writeMessage(String message, int fd, java.util.Map context, Callback cb)
{
return _iceI_begin_writeMessage(message, fd, context, true, false, cb);
}
public AsyncResult begin_writeMessage(String message, int fd, Callback_Process_writeMessage cb)
{
return _iceI_begin_writeMessage(message, fd, null, false, false, cb);
}
public AsyncResult begin_writeMessage(String message, int fd, java.util.Map context, Callback_Process_writeMessage cb)
{
return _iceI_begin_writeMessage(message, fd, context, true, false, cb);
}
public AsyncResult begin_writeMessage(String message,
int fd,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_writeMessage(message, fd, null, false, false, responseCb, exceptionCb, null);
}
public AsyncResult begin_writeMessage(String message,
int fd,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_writeMessage(message, fd, null, false, false, responseCb, exceptionCb, sentCb);
}
public AsyncResult begin_writeMessage(String message,
int fd,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_writeMessage(message, fd, context, true, false, responseCb, exceptionCb, null);
}
public AsyncResult begin_writeMessage(String message,
int fd,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_writeMessage(message, fd, context, true, false, responseCb, exceptionCb, sentCb);
}
private AsyncResult _iceI_begin_writeMessage(String iceP_message,
int iceP_fd,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_writeMessage(iceP_message,
iceP_fd,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
}
private AsyncResult _iceI_begin_writeMessage(String iceP_message,
int iceP_fd,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
IceInternal.OutgoingAsync result = getOutgoingAsync(_writeMessage_name, cb);
try
{
result.prepare(_writeMessage_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ostr.writeString(iceP_message);
ostr.writeInt(iceP_fd);
result.endWriteParams();
result.invoke();
}
catch(Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_writeMessage(AsyncResult iresult)
{
_end(iresult, _writeMessage_name);
}
/**
* Contacts the remote server to verify that the object implements this type.
* Raises a local exception if a communication error occurs.
* @param obj The untyped proxy.
* @return A proxy for this type, or null if the object does not support this type.
**/
public static ProcessPrx checkedCast(ObjectPrx obj)
{
return checkedCastImpl(obj, ice_staticId(), ProcessPrx.class, ProcessPrxHelper.class);
}
/**
* Contacts the remote server to verify that the object implements this type.
* Raises a local exception if a communication error occurs.
* @param obj The untyped proxy.
* @param context The Context map to send with the invocation.
* @return A proxy for this type, or null if the object does not support this type.
**/
public static ProcessPrx checkedCast(ObjectPrx obj, java.util.Map context)
{
return checkedCastImpl(obj, context, ice_staticId(), ProcessPrx.class, ProcessPrxHelper.class);
}
/**
* Contacts the remote server to verify that a facet of the object implements this type.
* Raises a local exception if a communication error occurs.
* @param obj The untyped proxy.
* @param facet The name of the desired facet.
* @return A proxy for this type, or null if the object does not support this type.
**/
public static ProcessPrx checkedCast(ObjectPrx obj, String facet)
{
return checkedCastImpl(obj, facet, ice_staticId(), ProcessPrx.class, ProcessPrxHelper.class);
}
/**
* Contacts the remote server to verify that a facet of the object implements this type.
* Raises a local exception if a communication error occurs.
* @param obj The untyped proxy.
* @param facet The name of the desired facet.
* @param context The Context map to send with the invocation.
* @return A proxy for this type, or null if the object does not support this type.
**/
public static ProcessPrx checkedCast(ObjectPrx obj, String facet, java.util.Map context)
{
return checkedCastImpl(obj, facet, context, ice_staticId(), ProcessPrx.class, ProcessPrxHelper.class);
}
/**
* Downcasts the given proxy to this type without contacting the remote server.
* @param obj The untyped proxy.
* @return A proxy for this type.
**/
public static ProcessPrx uncheckedCast(ObjectPrx obj)
{
return uncheckedCastImpl(obj, ProcessPrx.class, ProcessPrxHelper.class);
}
/**
* Downcasts the given proxy to this type without contacting the remote server.
* @param obj The untyped proxy.
* @param facet The name of the desired facet.
* @return A proxy for this type.
**/
public static ProcessPrx uncheckedCast(ObjectPrx obj, String facet)
{
return uncheckedCastImpl(obj, facet, ProcessPrx.class, ProcessPrxHelper.class);
}
private static final String[] _ids =
{
"::Ice::Object",
"::Ice::Process"
};
/**
* Provides the Slice type ID of this type.
* @return The Slice type ID.
**/
public static String ice_staticId()
{
return _ids[1];
}
public static void write(OutputStream ostr, ProcessPrx v)
{
ostr.writeProxy(v);
}
public static ProcessPrx read(InputStream istr)
{
ObjectPrx proxy = istr.readProxy();
if(proxy != null)
{
ProcessPrxHelper result = new ProcessPrxHelper();
result._copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy