Jetif v1.8.0

jetif.ext.proxy
Class IDLProxyAgent

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byjetif.ext.proxy.idl._ProxyAgentImplBase
          extended byjetif.ext.proxy.IDLProxyAgent
All Implemented Interfaces:
IDLEntity, InvokeHandler, Object, jetif.ext.proxy.idl.ProxyAgent, jetif.ext.proxy.idl.ProxyAgentOperations, Serializable

public class IDLProxyAgent
extends jetif.ext.proxy.idl._ProxyAgentImplBase

This class IdlProxyAgent represents implementation of the proxy agent in server side. User should create an instance of this class and expose it as a CORBA servant.
Sample usage:

 	ORB orb = ORB.init(args, null);
 	// create servant and register it with the ORB
 	IDLProxyAgent proxy = new IDLProxyAgent();
 	proxy.expose(orb, null);
 

Author:
Vicky Wang
See Also:
Serialized Form

Constructor Summary
IDLProxyAgent()
          Default constructor.
 
Method Summary
 void close()
          Close the agent.
 void expose(ORB orb, String name)
          Expose this object as servant.
 void open(String data)
          Open the agent for testing
 String runCase(String input)
          Run a test case.
 
Methods inherited from class jetif.ext.proxy.idl._ProxyAgentImplBase
_ids, _invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

IDLProxyAgent

public IDLProxyAgent()
Default constructor.

Method Detail

expose

public void expose(ORB orb,
                   String name)
            throws UserException
Expose this object as servant.

Parameters:
orb - the ORB object.
name - the name of the servant in name service.
Throws:
UserException - if CORBA error occurs.

open

public void open(String data)
          throws jetif.ext.proxy.idl.FrameworkException
Open the agent for testing

Parameters:
data - the data be transfered to test agent.
Throws:
jetif.ext.proxy.idl.FrameworkException

runCase

public String runCase(String input)
               throws jetif.ext.proxy.idl.FrameworkException
Run a test case.

Throws:
jetif.ext.proxy.idl.FrameworkException

close

public void close()
Close the agent.


Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.