001    package tecgraf.openbus.DRMAA;
002    /**
003     * Generated from IDL enum "JobState".
004     *
005     * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
006     * @version generated at Nov 3, 2010 2:32:40 PM
007     */
008    
009    public final class JobStateHelper
010    {
011            private static org.omg.CORBA.TypeCode _type = null;
012            public static org.omg.CORBA.TypeCode type ()
013            {
014                    if (_type == null)
015                    {
016                            _type = org.omg.CORBA.ORB.init().create_enum_tc(tecgraf.openbus.DRMAA.JobStateHelper.id(),"JobState",new String[]{"UNDETERMINED","QUEUED_ACTIVE","SYSTEM_ON_HOLD","USER_ON_HOLD","USER_SYSTEM_ON_HOLD","RUNNING","SYSTEM_SUSPENDED","USER_SUSPENDED","USER_SYSTEM_SUSPENDED","DONE","FAILED"});
017                    }
018                    return _type;
019            }
020    
021            public static void insert (final org.omg.CORBA.Any any, final tecgraf.openbus.DRMAA.JobState s)
022            {
023                    any.type(type());
024                    write( any.create_output_stream(),s);
025            }
026    
027            public static tecgraf.openbus.DRMAA.JobState extract (final org.omg.CORBA.Any any)
028            {
029                    return read(any.create_input_stream());
030            }
031    
032            public static String id()
033            {
034                    return "IDL:tecgraf/openbus/DRMAA/JobState:1.0";
035            }
036            public static JobState read (final org.omg.CORBA.portable.InputStream in)
037            {
038                    return JobState.from_int(in.read_long());
039            }
040    
041            public static void write (final org.omg.CORBA.portable.OutputStream out, final JobState s)
042            {
043                    out.write_long(s.value());
044            }
045    }