org.openorb.trader.kernel
Class Register

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosTrading.RegisterPOA
          extended by org.openorb.trader.kernel.Register
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, RegisterOperations, SupportAttributesOperations, TraderComponentsOperations

public class Register
extends RegisterPOA

This class implements the Register interface for the OpenORB Trading Object Service.

Author:
Jerome Daniel

Constructor Summary
Register(Kernel kernel)
           
 
Method Summary
 Admin admin_if()
          Read accessor for admin_if attribute
 OfferInfo describe(java.lang.String id)
          Describes a service offer
 java.lang.String export(org.omg.CORBA.Object reference, java.lang.String type, Property[] properties)
          This operation is used to export an service offer
 Link link_if()
          Read accessor for link_if attribute
 Lookup lookup_if()
          Read accessor for lookup_if attribute
 void modify(java.lang.String id, java.lang.String[] del_list, Property[] modify_list)
          Modifies an offer
 Proxy proxy_if()
          Read accessor for proxy_if attribute
 Register register_if()
          Read accessor for register_if attribute
 Register resolve(java.lang.String[] name)
          Get a resolve interface for a linked trader
 boolean supports_dynamic_properties()
          Read accessor for supports_dynamic_properties attribute
 boolean supports_modifiable_properties()
          Read accessor for supports_modifiable_properties attribute
 boolean supports_proxy_offers()
          Read accessor for supports_proxy_offers attribute
 org.omg.CORBA.Object type_repos()
          Read accessor for type_repos attribute
 void withdraw_using_constraint(java.lang.String type, java.lang.String constr)
          This operation withdraws several offers thanks to a constraint
 void withdraw(java.lang.String id)
          This operation is used to withdraw a service offer.
 
Methods inherited from class org.omg.CosTrading.RegisterPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Register

public Register(Kernel kernel)
Method Detail

export

public java.lang.String export(org.omg.CORBA.Object reference,
                               java.lang.String type,
                               Property[] properties)
                        throws InvalidObjectRef,
                               IllegalServiceType,
                               UnknownServiceType,
                               InterfaceTypeMismatch,
                               IllegalPropertyName,
                               PropertyTypeMismatch,
                               ReadonlyDynamicProperty,
                               MissingMandatoryProperty,
                               DuplicatePropertyName
This operation is used to export an service offer

Throws:
InvalidObjectRef
IllegalServiceType
UnknownServiceType
InterfaceTypeMismatch
IllegalPropertyName
PropertyTypeMismatch
ReadonlyDynamicProperty
MissingMandatoryProperty
DuplicatePropertyName

withdraw

public void withdraw(java.lang.String id)
              throws IllegalOfferId,
                     UnknownOfferId,
                     ProxyOfferId
This operation is used to withdraw a service offer.

Throws:
IllegalOfferId
UnknownOfferId
ProxyOfferId

describe

public OfferInfo describe(java.lang.String id)
                   throws IllegalOfferId,
                          UnknownOfferId,
                          ProxyOfferId
Describes a service offer

Throws:
IllegalOfferId
UnknownOfferId
ProxyOfferId

modify

public void modify(java.lang.String id,
                   java.lang.String[] del_list,
                   Property[] modify_list)
            throws NotImplemented,
                   IllegalOfferId,
                   UnknownOfferId,
                   ProxyOfferId,
                   IllegalPropertyName,
                   UnknownPropertyName,
                   PropertyTypeMismatch,
                   ReadonlyDynamicProperty,
                   MandatoryProperty,
                   ReadonlyProperty,
                   DuplicatePropertyName
Modifies an offer

Throws:
NotImplemented
IllegalOfferId
UnknownOfferId
ProxyOfferId
IllegalPropertyName
UnknownPropertyName
PropertyTypeMismatch
ReadonlyDynamicProperty
MandatoryProperty
ReadonlyProperty
DuplicatePropertyName

withdraw_using_constraint

public void withdraw_using_constraint(java.lang.String type,
                                      java.lang.String constr)
                               throws IllegalServiceType,
                                      UnknownServiceType,
                                      IllegalConstraint,
                                      NoMatchingOffers
This operation withdraws several offers thanks to a constraint

Throws:
IllegalServiceType
UnknownServiceType
IllegalConstraint
NoMatchingOffers

resolve

public Register resolve(java.lang.String[] name)
                 throws IllegalTraderName,
                        UnknownTraderName,
                        RegisterNotSupported
Get a resolve interface for a linked trader

Throws:
IllegalTraderName
UnknownTraderName
RegisterNotSupported

lookup_if

public Lookup lookup_if()
Description copied from interface: TraderComponentsOperations
Read accessor for lookup_if attribute

Returns:
the attribute value

register_if

public Register register_if()
Description copied from interface: TraderComponentsOperations
Read accessor for register_if attribute

Returns:
the attribute value

link_if

public Link link_if()
Description copied from interface: TraderComponentsOperations
Read accessor for link_if attribute

Returns:
the attribute value

proxy_if

public Proxy proxy_if()
Description copied from interface: TraderComponentsOperations
Read accessor for proxy_if attribute

Returns:
the attribute value

admin_if

public Admin admin_if()
Description copied from interface: TraderComponentsOperations
Read accessor for admin_if attribute

Returns:
the attribute value

supports_modifiable_properties

public boolean supports_modifiable_properties()
Description copied from interface: SupportAttributesOperations
Read accessor for supports_modifiable_properties attribute

Returns:
the attribute value

supports_dynamic_properties

public boolean supports_dynamic_properties()
Description copied from interface: SupportAttributesOperations
Read accessor for supports_dynamic_properties attribute

Returns:
the attribute value

supports_proxy_offers

public boolean supports_proxy_offers()
Description copied from interface: SupportAttributesOperations
Read accessor for supports_proxy_offers attribute

Returns:
the attribute value

type_repos

public org.omg.CORBA.Object type_repos()
Description copied from interface: SupportAttributesOperations
Read accessor for type_repos attribute

Returns:
the attribute value