|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--org.omg.CosNotifyChannelAdmin.SupplierAdminPOA
|
+--org.openorb.notify.impl.SupplierAdminImpl
| Constructor Summary | |
SupplierAdminImpl(EventChannelImpl channel,
org.omg.CORBA.ORB orb,
org.omg.PortableServer.POA poa,
InterFilterGroupOperator operator,
int adminId,
int channelId,
Property[] qosProperties,
Logger logger)
Default constructor. |
|
SupplierAdminImpl(EventChannelImpl channel,
SupplierAdmin pssSupplierAdmin,
org.omg.PortableServer.POA poa,
Logger logger)
Constructor -- used for recovery only |
|
| Method Summary | |
int |
add_filter(Filter new_filter)
The add_filter operation accepts as input the reference to an object supporting the Filter interface. |
boolean |
canConnectSupplier()
Method invoked to check if the MaxSuppliers admin property applies |
boolean |
canDispatchNewEvent()
Method invoked to check if the MaxQueueLength admin property applies |
void |
destroy()
The destroy operation can be invoked to destroy the target SupplierAdmin instance, freeing all resources consumed by the instance. |
int[] |
get_all_filters()
The get_all_filters operation accepts no input parameters, and returns the list of unique identifiers which correspond to all of the filters currently associated with the target object. |
Filter |
get_filter(int filterId)
The get_filter operation accepts as input a numeric identifier that is intended to correspond to one of the filter objects currently associated with the target object. |
ProxyConsumer |
get_proxy_consumer(int proxyId)
The get_proxy_consumer operation accepts as an input parameter the numeric unique identifier associated with one of the proxy consumer objects which has been created by the target SupplierAdmin instance. |
Property[] |
get_qos()
The get_qos operation takes no input parameters, and returns a sequence of name-value pairs which encapsulates the current quality of service settings for the target object (which could be an Event Channel, Admin, or Proxy object). |
java.lang.String |
getId()
Get the ID ( ChannelID + ConsumerAdminID ) of the admin |
java.lang.Object |
getNotifyProperty(java.lang.String key)
Method invoked to get the value of a property defined in the notification module |
byte[] |
getPid()
Returns the pid of the persistent/transient object |
org.omg.PortableServer.POA |
getPOA()
Get the POA |
boolean |
isEventQueueLogged()
TODO |
boolean |
isFilterEvaluationLogged()
TODO |
boolean |
isProxyMaxPerformance()
The methods returns true if the consumer proxy threads should be configured as MaxPerformance |
boolean |
isQueueMaxPerformance()
The methods returns true if the event queue should be configured as MaxPerformance |
EventChannel |
MyChannel()
The MyChannel attribute is a readonly attribute which maintains the object reference of the Notification Service event channel that created a given SupplierAdmin instance. |
int |
MyID()
The MyID attribute is a readonly attribute which maintains the unique identifier of the target SupplierAdmin instance which is assigned to it upon creation by the Notification Service event channel. |
InterFilterGroupOperator |
MyOperator()
The MyOperator attribute is a readonly attribute which maintains the information regarding whether AND or OR semantics will be used during the evaluation of a given event against a set of filter objects, when combining the filter objects associated with the target SupplierAdmin and those defined locally on a given proxy consumer. |
ProxyConsumer |
obtain_notification_pull_consumer(ClientType ctype,
org.omg.CORBA.IntHolder proxy_id)
The obtain_notification_pull_consumer operation can create instances of the various types of pull-style proxy consumer objects defined within the CosNotifyChannelAdmin module. |
ProxyConsumer |
obtain_notification_push_consumer(ClientType ctype,
org.omg.CORBA.IntHolder proxy_id)
The obtain_notification_push_consumer operation can create instances of the various types of push-style proxy consumer objects defined within the CosNotifyChannelAdmin module. |
ProxyPullConsumer |
obtain_pull_consumer()
Operation obtain_pull_consumer |
ProxyPushConsumer |
obtain_push_consumer()
Operation obtain_push_consumer |
void |
offer_change(EventType[] added,
EventType[] removed)
The offer_change operation takes as input two sequences of event type names: the first specifying those event types which the client of the operation (an event supplier) is informing the target consumer object that it is adding to the list of event types it plans to supply, and the second specifying those event types which the client no longer plans to supply. |
int[] |
pull_consumers()
The pull_consumers attribute is a readonly attribute which contains the list of unique identifiers which have been assigned by a SupplierAdmin instance to each pull-style proxy consumer object it has created. |
int[] |
push_consumers()
The push_consumers attribute is a readonly attribute which contains the list of unique identifiers which have been assigned by a SupplierAdmin instance to each push-style proxy consumer object it has created. |
void |
receiveEvent(java.lang.Object event)
New event available |
void |
remove_all_filters()
The remove_all_filters operation accepts no input parameters, and removes all filter objects from the list of those currently associated with the target object. |
void |
remove_filter(int filterId)
The remove_filter operation accepts as input a numeric value that is intended to be the unique identifier of a filter object that is currently associated with the target object. |
void |
reportPullSupplierDisconnection(byte[] proxyPid)
A pull proxy consumer has been destroyed |
void |
reportPushSupplierDisconnection(byte[] proxyPid)
A push proxy consumer has been destroyed |
void |
reportSupplierConnection()
A proxy consumer has been connected |
void |
set_qos(Property[] qos)
The set_qos operation takes as an input parameter a sequence of name-value pairs which encapsulates quality of service property settings that a client is requesting that the target object (which could be an Event Channel, Admin, or Proxy object) support as its default quality of service. |
void |
validate_qos(Property[] required_qos,
NamedPropertyRangeSeqHolder available_qos)
The validate_qos operation accepts as input a sequence of QoS property name-value pairs which specify a set of QoS settings that a client would like to know if the target object is capable of supporting. |
| Methods inherited from class org.omg.CosNotifyChannelAdmin.SupplierAdminPOA |
_all_interfaces, _invoke, _this, _this |
| Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _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 |
public SupplierAdminImpl(EventChannelImpl channel,
org.omg.CORBA.ORB orb,
org.omg.PortableServer.POA poa,
InterFilterGroupOperator operator,
int adminId,
int channelId,
Property[] qosProperties,
Logger logger)
public SupplierAdminImpl(EventChannelImpl channel,
SupplierAdmin pssSupplierAdmin,
org.omg.PortableServer.POA poa,
Logger logger)
| Method Detail |
public int MyID()
public EventChannel MyChannel()
public InterFilterGroupOperator MyOperator()
public int[] pull_consumers()
public int[] push_consumers()
public ProxyConsumer get_proxy_consumer(int proxyId)
throws ProxyNotFound
public ProxyConsumer obtain_notification_pull_consumer(ClientType ctype,
org.omg.CORBA.IntHolder proxy_id)
throws AdminLimitExceeded
public ProxyConsumer obtain_notification_push_consumer(ClientType ctype,
org.omg.CORBA.IntHolder proxy_id)
throws AdminLimitExceeded
public void destroy()
public Property[] get_qos()
public void set_qos(Property[] qos)
throws UnsupportedQoS
qos - QosProperties to assign to objectUnsupportedQoS -
public void validate_qos(Property[] required_qos,
NamedPropertyRangeSeqHolder available_qos)
throws UnsupportedQoS
required_qos - available_qos - UnsupportedQoS -
public void offer_change(EventType[] added,
EventType[] removed)
throws InvalidEventType
public int add_filter(Filter new_filter)
new_filter - filter to add
public void remove_filter(int filterId)
throws FilterNotFound
filter - Id of the filterFilterNotFound - Id doesn't
match to any filter
public Filter get_filter(int filterId)
throws FilterNotFound
filter - Id of the filter to getFilterNotFound - Id doesn't
match to any filterpublic int[] get_all_filters()
public void remove_all_filters()
public ProxyPushConsumer obtain_push_consumer()
public ProxyPullConsumer obtain_pull_consumer()
public void receiveEvent(java.lang.Object event)
receiveEvent in interface EventReceiverpublic java.lang.String getId()
getId in interface SupplierAdminManagementpublic org.omg.PortableServer.POA getPOA()
getPOA in interface SupplierAdminManagementpublic void reportSupplierConnection()
reportSupplierConnection in interface SupplierAdminManagementpublic boolean canConnectSupplier()
canConnectSupplier in interface SupplierAdminManagementpublic void reportPullSupplierDisconnection(byte[] proxyPid)
reportPullSupplierDisconnection in interface SupplierAdminManagementpublic void reportPushSupplierDisconnection(byte[] proxyPid)
reportPushSupplierDisconnection in interface SupplierAdminManagementpublic boolean canDispatchNewEvent()
canDispatchNewEvent in interface SupplierAdminManagementpublic boolean isEventQueueLogged()
public boolean isFilterEvaluationLogged()
public boolean isQueueMaxPerformance()
isQueueMaxPerformance in interface SupplierAdminManagementpublic boolean isProxyMaxPerformance()
isProxyMaxPerformance in interface SupplierAdminManagementpublic java.lang.Object getNotifyProperty(java.lang.String key)
getNotifyProperty in interface SupplierAdminManagementpublic byte[] getPid()
getPid in interface PersistenceManagement
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||