📄 computeengine_skel.java
字号:
///////////////////////////////////////////////////////////
// DeJaved by mDeJava v1.0. Copyright 1999 MoleSoftware. //
// To download last version of this software: //
// http://molesoftware.hypermatr.net //
// e-mail:molesoftware@mail.ru //
///////////////////////////////////////////////////////////
import java.io.*;
import java.rmi.*;
import java.rmi.server.*;
public final class ComputeEngine_Skel
implements Skeleton
{
private static final Operation operations[] = {
new Operation("java.lang.Object executeTask(Task)")
};
private static final long interfaceHash = 0xa9d213d5242af144L;
public ComputeEngine_Skel()
{
}
public void dispatch(Remote remote, RemoteCall remotecall, int i, long l)
throws Exception
{
if(i < 0)
{
if(l == 0xd136fd88a03c91a7L)
i = 0;
else
throw new UnmarshalException("invalid method hash");
}
else
if(l != 0xa9d213d5242af144L)
throw new SkeletonMismatchException("interface hash mismatch");
ComputeEngine computeengine = (ComputeEngine)remote;
switch(i)
{
case 0: // '\0'
Task task;
try
{
ObjectInput objectinput = remotecall.getInputStream();
task = (Task)objectinput.readObject();
}
catch(IOException ioexception1)
{
throw new UnmarshalException("error unmarshalling arguments", ioexception1);
}
catch(ClassNotFoundException classnotfoundexception)
{
throw new UnmarshalException("error unmarshalling arguments", classnotfoundexception);
}
finally
{
remotecall.releaseInputStream();
}
Object obj = computeengine.executeTask(task);
try
{
ObjectOutput objectoutput = remotecall.getResultStream(true);
objectoutput.writeObject(obj);
}
catch(IOException ioexception)
{
throw new MarshalException("error marshalling return", ioexception);
}
break;
default:
throw new UnmarshalException("invalid method number");
}
}
public Operation[] getOperations()
{
return (Operation[])operations.clone();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -