mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
1059 lines
46 KiB
Java
1059 lines
46 KiB
Java
package FoamXServer.CaseBrowser;
|
|
|
|
|
|
/**
|
|
* FoamXServer/CaseBrowser/_ICaseBrowserStub.java .
|
|
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
|
* from FoamX.idl
|
|
* 02 April 2007 09:53:40 o'clock BST
|
|
*/
|
|
|
|
|
|
// ---------------------------------------------------------------------
|
|
public class _ICaseBrowserStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseBrowser.ICaseBrowser
|
|
{
|
|
|
|
|
|
// Foam system properties (user data editable).
|
|
public FoamXServer.CaseServer.IFoamProperties foamProperties ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_foamProperties", true);
|
|
$in = _invoke ($out);
|
|
FoamXServer.CaseServer.IFoamProperties $result = FoamXServer.CaseServer.IFoamPropertiesHelper.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 foamProperties ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // foamProperties
|
|
|
|
|
|
// Managed cases list.
|
|
public FoamXServer.CaseDescriptor[] cases ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_cases", true);
|
|
$in = _invoke ($out);
|
|
FoamXServer.CaseDescriptor $result[] = FoamXServer.CaseDescriptorListHelper.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 cases ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // cases
|
|
|
|
|
|
// Running jobs list.
|
|
public FoamXServer.JobDescriptor[] runningJobs ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_runningJobs", true);
|
|
$in = _invoke ($out);
|
|
FoamXServer.JobDescriptor $result[] = FoamXServer.JobDescriptorListHelper.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 runningJobs ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // runningJobs
|
|
|
|
|
|
// Finished jobs list.
|
|
public FoamXServer.JobDescriptor[] finishedJobs ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_finishedJobs", true);
|
|
$in = _invoke ($out);
|
|
FoamXServer.JobDescriptor $result[] = FoamXServer.JobDescriptorListHelper.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 finishedJobs ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // finishedJobs
|
|
|
|
|
|
// Get environment variable
|
|
public void getEnv (String envName, org.omg.CORBA.StringHolder hostName) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("getEnv", true);
|
|
$out.write_string (envName);
|
|
$in = _invoke ($out);
|
|
hostName.value = $in.read_string ();
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
getEnv (envName, hostName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // getEnv
|
|
|
|
|
|
// Get the machines hostName
|
|
public void getHostName (org.omg.CORBA.StringHolder hostName) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("getHostName", true);
|
|
$in = _invoke ($out);
|
|
hostName.value = $in.read_string ();
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
getHostName (hostName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // getHostName
|
|
|
|
|
|
// Get userName
|
|
public void getUserName (org.omg.CORBA.StringHolder userName) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("getUserName", true);
|
|
$in = _invoke ($out);
|
|
userName.value = $in.read_string ();
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
getUserName (userName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // getUserName
|
|
|
|
|
|
// Get modification date
|
|
public int fileModificationDate (String fileName) throws FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("fileModificationDate", true);
|
|
$out.write_string (fileName);
|
|
$in = _invoke ($out);
|
|
int $result = $in.read_long ();
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return fileModificationDate (fileName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // fileModificationDate
|
|
|
|
|
|
// Read file and store contents in string
|
|
public void readFile (String fileName, org.omg.CORBA.StringHolder contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("readFile", true);
|
|
$out.write_string (fileName);
|
|
$in = _invoke ($out);
|
|
contents.value = $in.read_string ();
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
readFile (fileName, contents );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // readFile
|
|
|
|
|
|
// Write contents of string as a file
|
|
public void writeFile (String fileName, String contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("writeFile", true);
|
|
$out.write_string (fileName);
|
|
$out.write_string (contents);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
writeFile (fileName, contents );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // writeFile
|
|
|
|
|
|
// Utility execution.
|
|
public int invokeUtility (String hostName, String utilityName, String[] arguments, String logName, boolean backGround) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("invokeUtility", true);
|
|
$out.write_string (hostName);
|
|
$out.write_string (utilityName);
|
|
FoamXServer.StringListHelper.write ($out, arguments);
|
|
$out.write_string (logName);
|
|
$out.write_boolean (backGround);
|
|
$in = _invoke ($out);
|
|
int $result = $in.read_long ();
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return invokeUtility (hostName, utilityName, arguments, logName, backGround );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // invokeUtility
|
|
|
|
public void refreshCaseList () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("refreshCaseList", true);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
refreshCaseList ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // refreshCaseList
|
|
|
|
public void addToCaseList (String rootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("addToCaseList", true);
|
|
$out.write_string (rootDir);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
addToCaseList (rootDir );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // addToCaseList
|
|
|
|
|
|
// Case manipulation.
|
|
public void openCase (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("openCase", true);
|
|
FoamXServer.CaseDescriptorHelper.write ($out, caseDesc);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
openCase (caseDesc );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // openCase
|
|
|
|
public void newCase (String rootDir, String caseName, String app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("newCase", true);
|
|
$out.write_string (rootDir);
|
|
$out.write_string (caseName);
|
|
$out.write_string (app);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
newCase (rootDir, caseName, app );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // newCase
|
|
|
|
public void importCase (String rootDir, String caseName, String app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("importCase", true);
|
|
$out.write_string (rootDir);
|
|
$out.write_string (caseName);
|
|
$out.write_string (app);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
importCase (rootDir, caseName, app );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // importCase
|
|
|
|
public void deleteCase (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("deleteCase", true);
|
|
FoamXServer.CaseDescriptorHelper.write ($out, caseDesc);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
deleteCase (caseDesc );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // deleteCase
|
|
|
|
public void cloneCase (FoamXServer.CaseDescriptor caseDesc, String newCaseRootDir, String newCaseName, String newAppClassName, String timeSel) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("cloneCase", true);
|
|
FoamXServer.CaseDescriptorHelper.write ($out, caseDesc);
|
|
$out.write_string (newCaseRootDir);
|
|
$out.write_string (newCaseName);
|
|
$out.write_string (newAppClassName);
|
|
$out.write_string (timeSel);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
cloneCase (caseDesc, newCaseRootDir, newCaseName, newAppClassName, timeSel );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // cloneCase
|
|
|
|
|
|
// Try to resolve NameServer entry for caseServer
|
|
public boolean getCaseServerReference (String rootDir, String caseName, FoamXServer.CaseServer.ICaseServerHolder caseObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("getCaseServerReference", true);
|
|
$out.write_string (rootDir);
|
|
$out.write_string (caseName);
|
|
$in = _invoke ($out);
|
|
boolean $result = $in.read_boolean ();
|
|
caseObj.value = FoamXServer.CaseServer.ICaseServerHelper.read ($in);
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
|
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return getCaseServerReference (rootDir, caseName, caseObj );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // getCaseServerReference
|
|
|
|
|
|
// start casePostServer
|
|
public void openCasePost (FoamXServer.CaseDescriptor caseDesc, int nProcs) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("openCasePost", true);
|
|
FoamXServer.CaseDescriptorHelper.write ($out, caseDesc);
|
|
$out.write_long (nProcs);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
openCasePost (caseDesc, nProcs );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // openCasePost
|
|
|
|
|
|
// Try to resolve NameServer entry for casePostServer
|
|
public boolean getCasePostServerReference (String rootDir, String caseName, int nProcs, FoamXServer.CasePostServer.ICasePostServerHolder caseObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("getCasePostServerReference", true);
|
|
$out.write_string (rootDir);
|
|
$out.write_string (caseName);
|
|
$out.write_long (nProcs);
|
|
$in = _invoke ($out);
|
|
boolean $result = $in.read_boolean ();
|
|
caseObj.value = FoamXServer.CasePostServer.ICasePostServerHelper.read ($in);
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
|
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return getCasePostServerReference (rootDir, caseName, nProcs, caseObj );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // getCasePostServerReference
|
|
|
|
public boolean caseLocked (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("caseLocked", true);
|
|
FoamXServer.CaseDescriptorHelper.write ($out, caseDesc);
|
|
$in = _invoke ($out);
|
|
boolean $result = $in.read_boolean ();
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return caseLocked (caseDesc );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // caseLocked
|
|
|
|
public void unlockCase (String rootDir, String caseName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("unlockCase", true);
|
|
$out.write_string (rootDir);
|
|
$out.write_string (caseName);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
unlockCase (rootDir, caseName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // unlockCase
|
|
|
|
public void unlockCaseDescriptor (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("unlockCaseDescriptor", true);
|
|
FoamXServer.CaseDescriptorHelper.write ($out, caseDesc);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
unlockCaseDescriptor (caseDesc );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // unlockCaseDescriptor
|
|
|
|
public void addCase (String rootDir, String rawRootDir, String caseName, String app) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("addCase", true);
|
|
$out.write_string (rootDir);
|
|
$out.write_string (rawRootDir);
|
|
$out.write_string (caseName);
|
|
$out.write_string (app);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
addCase (rootDir, rawRootDir, caseName, app );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // addCase
|
|
|
|
public void caseOpen (String rootDir, String caseName) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("caseOpen", true);
|
|
$out.write_string (rootDir);
|
|
$out.write_string (caseName);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
caseOpen (rootDir, caseName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // caseOpen
|
|
|
|
public boolean isCaseInError (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("isCaseInError", true);
|
|
FoamXServer.CaseDescriptorHelper.write ($out, caseDesc);
|
|
$in = _invoke ($out);
|
|
boolean $result = $in.read_boolean ();
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return isCaseInError (caseDesc );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // isCaseInError
|
|
|
|
public void caseIsInError (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("caseIsInError", true);
|
|
FoamXServer.CaseDescriptorHelper.write ($out, caseDesc);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
caseIsInError (caseDesc );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // caseIsInError
|
|
|
|
|
|
// Process control
|
|
public void refreshJobsLists () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("refreshJobsLists", true);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
refreshJobsLists ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // refreshJobsLists
|
|
|
|
public void checkRunningJobs () throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("checkRunningJobs", true);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
|
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
checkRunningJobs ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // checkRunningJobs
|
|
|
|
public void purgeRunningJobs () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("purgeRunningJobs", true);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
purgeRunningJobs ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // purgeRunningJobs
|
|
|
|
public void purgeFinishedJob (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("purgeFinishedJob", true);
|
|
FoamXServer.JobIDHelper.write ($out, jobID);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
purgeFinishedJob (jobID );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // purgeFinishedJob
|
|
|
|
public void purgeFinishedJobs (int nDays) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("purgeFinishedJobs", true);
|
|
$out.write_long (nDays);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
purgeFinishedJobs (nDays );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // purgeFinishedJobs
|
|
|
|
|
|
// Kill process.
|
|
public void kill (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("kill", true);
|
|
FoamXServer.JobIDHelper.write ($out, jobID);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
|
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
kill (jobID );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // kill
|
|
|
|
|
|
// Suspend process
|
|
public void suspend (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("suspend", true);
|
|
FoamXServer.JobIDHelper.write ($out, jobID);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
|
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
suspend (jobID );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // suspend
|
|
|
|
|
|
// Continue process
|
|
public void cont (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("cont", true);
|
|
FoamXServer.JobIDHelper.write ($out, jobID);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
|
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
cont (jobID );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // cont
|
|
|
|
|
|
// now=false: next natural dump
|
|
public void end (FoamXServer.JobID jobID, String rootDir, String caseName, boolean now) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("end", true);
|
|
FoamXServer.JobIDHelper.write ($out, jobID);
|
|
$out.write_string (rootDir);
|
|
$out.write_string (caseName);
|
|
$out.write_boolean (now);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
|
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
end (jobID, rootDir, caseName, now );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // end
|
|
|
|
|
|
// Reset the job status
|
|
public void setStatus (FoamXServer.JobID jobID, FoamXServer.JobStatus jobStatus) throws FoamXServer.FoamXError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("setStatus", true);
|
|
FoamXServer.JobIDHelper.write ($out, jobID);
|
|
FoamXServer.JobStatusHelper.write ($out, jobStatus);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
setStatus (jobID, jobStatus );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // setStatus
|
|
|
|
|
|
// Validation.
|
|
public void validate () throws FoamXServer.FoamXError, FoamXServer.ValidationError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("validate", true);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
|
throw FoamXServer.ValidationErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
validate ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // validate
|
|
|
|
|
|
// Persistence.
|
|
public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("save", true);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
|
throw FoamXServer.ValidationErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
save ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // save
|
|
|
|
|
|
// Lifetime management.
|
|
public void close ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("close", false);
|
|
$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) {
|
|
close ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // close
|
|
|
|
// Type-specific CORBA::Object operations
|
|
private static String[] __ids = {
|
|
"IDL:FoamXServer/CaseBrowser/ICaseBrowser: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 _ICaseBrowserStub
|