com.addc.server.monitoring.MonitorHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of addc-svr-monitor Show documentation
Show all versions of addc-svr-monitor Show documentation
Supplies the classes required for monitoring a server with the Amentet Monitoring Service
package com.addc.server.monitoring;
/**
* Generated from IDL interface "Monitor".
*
* @author JacORB IDL compiler V 3.9
* @version generated at Nov 9, 2019 1:39:38 PM
*/
public abstract class MonitorHelper
{
private volatile static org.omg.CORBA.TypeCode _type;
public static org.omg.CORBA.TypeCode type ()
{
if (_type == null)
{
synchronized(MonitorHelper.class)
{
if (_type == null)
{
_type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:monitoring/Monitor:1.0", "Monitor");
}
}
}
return _type;
}
public static void insert (final org.omg.CORBA.Any any, final com.addc.server.monitoring.Monitor s)
{
any.insert_Object(s);
}
public static com.addc.server.monitoring.Monitor extract(final org.omg.CORBA.Any any)
{
return narrow(any.extract_Object()) ;
}
public static String id()
{
return "IDL:monitoring/Monitor:1.0";
}
public static Monitor read(final org.omg.CORBA.portable.InputStream in)
{
return narrow(in.read_Object(com.addc.server.monitoring._MonitorStub.class));
}
public static void write(final org.omg.CORBA.portable.OutputStream _out, final com.addc.server.monitoring.Monitor s)
{
_out.write_Object(s);
}
public static com.addc.server.monitoring.Monitor narrow(final org.omg.CORBA.Object obj)
{
if (obj == null)
{
return null;
}
else if (obj instanceof com.addc.server.monitoring.Monitor)
{
return (com.addc.server.monitoring.Monitor)obj;
}
else if (obj._is_a("IDL:monitoring/Monitor:1.0"))
{
com.addc.server.monitoring._MonitorStub stub;
stub = new com.addc.server.monitoring._MonitorStub();
stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
return stub;
}
else
{
throw new org.omg.CORBA.BAD_PARAM("Narrow failed");
}
}
public static com.addc.server.monitoring.Monitor unchecked_narrow(final org.omg.CORBA.Object obj)
{
if (obj == null)
{
return null;
}
else if (obj instanceof com.addc.server.monitoring.Monitor)
{
return (com.addc.server.monitoring.Monitor)obj;
}
else
{
com.addc.server.monitoring._MonitorStub stub;
stub = new com.addc.server.monitoring._MonitorStub();
stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
return stub;
}
}
}