package scs.demos.mapreduce;
/**
* scs/demos/mapreduce/_TaskStub.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../../idl/mapReduce.idl
* Friday, December 12, 2008 6:43:16 PM BRST
*/
public class _TaskStub extends org.omg.CORBA.portable.ObjectImpl implements scs.demos.mapreduce.Task
{
public int getId ()
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("getId", true);
$in = _invoke ($out);
int $result = $in.read_long ();
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return getId ( );
} finally {
_releaseReply ($in);
}
} // getId
public void setStatus (scs.demos.mapreduce.TaskStatus status)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("setStatus", true);
scs.demos.mapreduce.TaskStatusHelper.write ($out, status);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
setStatus (status );
} finally {
_releaseReply ($in);
}
} // setStatus
public void setOutput (scs.demos.mapreduce.FileSplit[] output)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("setOutput", true);
scs.demos.mapreduce.FileSplitsHelper.write ($out, output);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
setOutput (output );
} finally {
_releaseReply ($in);
}
} // setOutput
public scs.demos.mapreduce.TaskStatus getStatus ()
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("getStatus", true);
$in = _invoke ($out);
scs.demos.mapreduce.TaskStatus $result = scs.demos.mapreduce.TaskStatusHelper.read ($in);
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return getStatus ( );
} finally {
_releaseReply ($in);
}
} // getStatus
public scs.demos.mapreduce.FileSplit[] getInput ()
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("getInput", true);
$in = _invoke ($out);
scs.demos.mapreduce.FileSplit $result[] = scs.demos.mapreduce.FileSplitsHelper.read ($in);
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return getInput ( );
} finally {
_releaseReply ($in);
}
} // getInput
public scs.demos.mapreduce.FileSplit[] getOutput ()
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("getOutput", true);
$in = _invoke ($out);
scs.demos.mapreduce.FileSplit $result[] = scs.demos.mapreduce.FileSplitsHelper.read ($in);
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return getOutput ( );
} finally {
_releaseReply ($in);
}
} // getOutput
public int getReduceIndex ()
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("getReduceIndex", true);
$in = _invoke ($out);
int $result = $in.read_long ();
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return getReduceIndex ( );
} finally {
_releaseReply ($in);
}
} // getReduceIndex
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:scs/demos/mapreduce/Task:1.0"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
{
String str = s.readUTF ();
String[] args = null;
java.util.Properties props = null;
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
_set_delegate (delegate);
}
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
{
String[] args = null;
java.util.Properties props = null;
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
s.writeUTF (str);
}
} // class _TaskStub