home *** CD-ROM | disk | FTP | other *** search
- #ifdef JAVA
-
- module org { module omg {
- #pragma prefix "omg.org"
- module CORBA {
- typedef sequence<octet> OctetSequence;
- };
- };};
-
- #else /* C++ */
- # include <iiop.idl>
- #endif
-
- #ifdef JAVA
- module com {
- module visigenic {
- module vbroker {
- #endif
-
- #pragma prefix "visigenic.com"
-
- #ifdef JAVA
- //otherwise these are defined in iiop.idl
- module GIOP {
- struct Version { octet major, minor; };
- };
-
- module IIOP {
- struct ProfileBody {
- GIOP::Version iiop_version;
- string host;
- unsigned short port;
- ::org::omg::CORBA::OctetSequence object_key;
- };
- };
- #endif
-
- module ObjLocation {
-
- struct Desc {
- Object ref;
- IIOP::ProfileBody iiop_locator;
- string repository_id;
- string instance_name;
- boolean activable;
- string agent_hostname;
- };
-
- struct TriggerDesc {
- string repository_id;
- string instance_name;
- string host_name;
- };
-
-
- typedef sequence<Object> ObjSeq;
- typedef sequence<Desc> DescSeq;
- typedef sequence<string> RepositoryIdSeq;
- typedef sequence<string> HostnameSeq;
-
- // AGENT_ERROR is thrown in case of unsuccessful communications
- // with the OSAgent (other than the case where no agent is
- // available)
- enum FailReason { NO_AGENT_AVAILABLE
- , INVALID_REPOSITORY_ID
- , INVALID_OBJECT_NAME
- , NO_SUCH_TRIGGER
- , AGENT_ERROR};
-
-
-
- exception Fail {
- FailReason reason;
- };
-
- interface TriggerHandler {
- void impl_is_ready(in Desc desc);
- void impl_is_down(in Desc desc);
- };
-
- interface Agent {
-
- // Returns a sequence of hostnames on which OSAgents reside
- HostnameSeq all_agent_locations() raises (Fail);
-
- // Returns a sequence of repository ids which are registered
- // with any OSAgent
- RepositoryIdSeq all_repository_ids() raises (Fail);
-
- // Returns a sequence of Objects which satisfy the given
- // repository_id
- ObjSeq all_instances (in string repository_id)
- raises (Fail);
-
- // Returns a sequence of Objects which satisfy the given
- // repository_id and instance name
- ObjSeq all_replica (in string repository_id, in string instance_name)
- raises (Fail);
-
- // Returns full description information for all objects which
- // implement the given repository_id
- DescSeq all_instances_descs (in string repository_id)
- raises (Fail);
-
- // Returns full description information for all objects which
- // implement the given repository id and have the given
- // instance name
- DescSeq all_replica_descs (in string repository_id,
- in string instance_name)
- raises (Fail);
-
- void reg_trigger(in TriggerDesc desc, in TriggerHandler handler)
- raises (Fail);
-
- void unreg_trigger(in TriggerDesc desc, in TriggerHandler handler)
- raises (Fail);
-
- };
-
-
- };
-
- #ifdef JAVA
- }; /* module vbroker */
- }; /* module visigenic */
- }; /* module com */
- #endif
-