IceGrid.FileParserPrxHelper 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 `FileParser.ice'
//
// Warning: do not edit this file.
//
//
//
package IceGrid;
/**
* Provides type-specific helper functions.
**/
public final class FileParserPrxHelper extends Ice.ObjectPrxHelperBase implements FileParserPrx
{
private static final String _parse_name = "parse";
public ApplicationDescriptor parse(String xmlFile, AdminPrx adminProxy)
throws ParseException
{
return _iceI_parse(xmlFile, adminProxy, null, false);
}
public ApplicationDescriptor parse(String xmlFile, AdminPrx adminProxy, java.util.Map context)
throws ParseException
{
return _iceI_parse(xmlFile, adminProxy, context, true);
}
private ApplicationDescriptor _iceI_parse(String iceP_xmlFile, AdminPrx iceP_adminProxy, java.util.Map context, boolean explicitCtx)
throws ParseException
{
_checkTwowayOnly(_parse_name);
return end_parse(_iceI_begin_parse(iceP_xmlFile, iceP_adminProxy, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_parse(String xmlFile, AdminPrx adminProxy)
{
return _iceI_begin_parse(xmlFile, adminProxy, null, false, false, null);
}
public Ice.AsyncResult begin_parse(String xmlFile, AdminPrx adminProxy, java.util.Map context)
{
return _iceI_begin_parse(xmlFile, adminProxy, context, true, false, null);
}
public Ice.AsyncResult begin_parse(String xmlFile, AdminPrx adminProxy, Ice.Callback cb)
{
return _iceI_begin_parse(xmlFile, adminProxy, null, false, false, cb);
}
public Ice.AsyncResult begin_parse(String xmlFile, AdminPrx adminProxy, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_parse(xmlFile, adminProxy, context, true, false, cb);
}
public Ice.AsyncResult begin_parse(String xmlFile, AdminPrx adminProxy, Callback_FileParser_parse cb)
{
return _iceI_begin_parse(xmlFile, adminProxy, null, false, false, cb);
}
public Ice.AsyncResult begin_parse(String xmlFile, AdminPrx adminProxy, java.util.Map context, Callback_FileParser_parse cb)
{
return _iceI_begin_parse(xmlFile, adminProxy, context, true, false, cb);
}
public Ice.AsyncResult begin_parse(String xmlFile,
AdminPrx adminProxy,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_parse(xmlFile, adminProxy, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_parse(String xmlFile,
AdminPrx adminProxy,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_parse(xmlFile, adminProxy, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_parse(String xmlFile,
AdminPrx adminProxy,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_parse(xmlFile, adminProxy, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_parse(String xmlFile,
AdminPrx adminProxy,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_parse(xmlFile, adminProxy, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_parse(String iceP_xmlFile,
AdminPrx iceP_adminProxy,
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_parse(iceP_xmlFile,
iceP_adminProxy,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
FileParserPrxHelper._iceI_parse_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_parse(String iceP_xmlFile,
AdminPrx iceP_adminProxy,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_parse_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_parse_name, cb);
try
{
result.prepare(_parse_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ostr.writeString(iceP_xmlFile);
AdminPrxHelper.write(ostr, iceP_adminProxy);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public ApplicationDescriptor end_parse(Ice.AsyncResult iresult)
throws ParseException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _parse_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(ParseException 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_parse_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
{
IceGrid.FileParserPrx _proxy = (IceGrid.FileParserPrx)result.getProxy();
ApplicationDescriptor ret = null;
try
{
ret = _proxy.end_parse(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);
}
/**
* 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 FileParserPrx checkedCast(Ice.ObjectPrx obj)
{
return checkedCastImpl(obj, ice_staticId(), FileParserPrx.class, FileParserPrxHelper.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 FileParserPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
{
return checkedCastImpl(obj, context, ice_staticId(), FileParserPrx.class, FileParserPrxHelper.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 FileParserPrx checkedCast(Ice.ObjectPrx obj, String facet)
{
return checkedCastImpl(obj, facet, ice_staticId(), FileParserPrx.class, FileParserPrxHelper.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 FileParserPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
{
return checkedCastImpl(obj, facet, context, ice_staticId(), FileParserPrx.class, FileParserPrxHelper.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 FileParserPrx uncheckedCast(Ice.ObjectPrx obj)
{
return uncheckedCastImpl(obj, FileParserPrx.class, FileParserPrxHelper.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 FileParserPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
{
return uncheckedCastImpl(obj, facet, FileParserPrx.class, FileParserPrxHelper.class);
}
private static final String[] _ids =
{
"::Ice::Object",
"::IceGrid::FileParser"
};
/**
* 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(Ice.OutputStream ostr, FileParserPrx v)
{
ostr.writeProxy(v);
}
public static FileParserPrx read(Ice.InputStream istr)
{
Ice.ObjectPrx proxy = istr.readProxy();
if(proxy != null)
{
FileParserPrxHelper result = new FileParserPrxHelper();
result._copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}