public abstract class AbstractProxy extends Object implements FilterAdminOperations, QoSAdminOperations, FilterStage, IServantLifecyle, Configurable, JMXManageable, AbstractProxyMBean
JMXManageable.JMXCallback| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config_ |
protected Set |
eventTypes_ |
protected org.slf4j.Logger |
logger_ |
protected OfferManager |
offerManager_ |
protected QoSPropertySet |
qosSettings_ |
protected SubscriptionManager |
subscriptionManager_ |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProxy(IAdmin admin,
ORB orb,
POA poa,
Configuration conf,
TaskProcessor taskProcessor,
OfferManager offerManager,
SubscriptionManager subscriptionManager) |
| Modifier and Type | Method and Description |
|---|---|
Object |
activate() |
int |
add_filter(Filter filter) |
protected void |
checkDestroyStatus() |
protected void |
checkIsConnected() |
protected void |
checkIsNotConnected() |
protected void |
checkStillConnected() |
protected abstract void |
clientDisconnected() |
void |
configure(Configuration conf) |
protected void |
connectClient(Object client) |
protected void |
connectionResumed()
this is an extension point.
|
protected void |
connectionSuspended()
this is an extension point.
|
void |
deactivate() |
void |
destroy() |
protected abstract void |
disconnectClient()
invoke the proxy specific disconnect method.
|
void |
dispose() |
int[] |
get_all_filters() |
Filter |
get_filter(int n) |
Property[] |
get_qos() |
String |
getClientIOR() |
boolean |
getConnected() |
int |
getErrorCounter() |
List |
getFilters()
get Filters associated to this FilterStage.
|
Integer |
getID() |
String |
getInterFilterGroupOperator() |
String[] |
getJMXNotificationTypes() |
String |
getJMXObjectName() |
MappingFilter |
getLifetimeFilter()
access the LifetimeFilter attached to this FilterStage
|
String |
getMBeanName() |
protected String |
getMBeanType() |
protected ORB |
getORB() |
POA |
getPOA() |
MappingFilter |
getPriorityFilter()
access the PriorityFilter attached to this FilterStage
|
String |
getStatus() |
protected TaskProcessor |
getTaskProcessor() |
protected void |
handleDisconnected(Disconnected e) |
boolean |
hasInterFilterGroupOperatorOR()
check if this FilterStage has OR Semantic enabled.
|
boolean |
hasLifetimeFilter()
check if this FilterStage has a LifetimeFilter attached
|
boolean |
hasPriorityFilter()
check if this FilterStage has a PriorityFilter attached
|
int |
incErrorCounter() |
boolean |
isDestroyed()
check if this FilterStage has been disposed.
|
boolean |
isIDPublic() |
boolean |
isSuspended() |
MappingFilter |
lifetime_filter() |
void |
lifetime_filter(MappingFilter filter) |
abstract ProxyType |
MyType() |
MappingFilter |
priority_filter() |
void |
priority_filter(MappingFilter filter) |
void |
registerDisposable(Disposable d)
the hooks registered by this method will be run when dispose is called.
|
void |
remove_all_filters() |
void |
remove_filter(int n) |
protected abstract void |
removeListener() |
void |
resetErrorCounter() |
void |
resume_connection() |
protected void |
sendNotification(String type,
String message) |
protected void |
sendNotification(String type,
String message,
Object payload) |
void |
set_qos(Property[] qosProps) |
void |
setJMXCallback(JMXManageable.JMXCallback callback) |
void |
suspend_connection() |
void |
validate_event_qos(Property[] qosProps,
NamedPropertyRangeSeqHolder propSeqHolder) |
void |
validate_qos(Property[] props,
NamedPropertyRangeSeqHolder propertyRange) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessageConsumer, hasMessageConsumergetSubsequentFilterStagesnewServantprotected final org.slf4j.Logger logger_
protected final QoSPropertySet qosSettings_
protected final OfferManager offerManager_
protected final SubscriptionManager subscriptionManager_
protected final Set eventTypes_
protected Configuration config_
protected AbstractProxy(IAdmin admin, ORB orb, POA poa, Configuration conf, TaskProcessor taskProcessor, OfferManager offerManager, SubscriptionManager subscriptionManager)
public void configure(Configuration conf)
configure in interface Configurablepublic void registerDisposable(Disposable d)
NotifyingDisposableregisterDisposable in interface NotifyingDisposablepublic boolean isIDPublic()
public final POA getPOA()
getPOA in interface IServantLifecyleprotected ORB getORB()
public final Object activate()
protected TaskProcessor getTaskProcessor()
public final int add_filter(Filter filter)
add_filter in interface FilterAdminOperationspublic final void remove_filter(int n)
throws FilterNotFound
remove_filter in interface FilterAdminOperationsFilterNotFoundpublic final Filter get_filter(int n) throws FilterNotFound
get_filter in interface FilterAdminOperationsFilterNotFoundpublic final int[] get_all_filters()
get_all_filters in interface FilterAdminOperationspublic final void remove_all_filters()
remove_all_filters in interface FilterAdminOperationspublic void validate_event_qos(Property[] qosProps, NamedPropertyRangeSeqHolder propSeqHolder)
public final void validate_qos(Property[] props, NamedPropertyRangeSeqHolder propertyRange) throws UnsupportedQoS
validate_qos in interface QoSAdminOperationsUnsupportedQoSpublic final void set_qos(Property[] qosProps) throws UnsupportedQoS
set_qos in interface QoSAdminOperationsUnsupportedQoSpublic final Property[] get_qos()
get_qos in interface QoSAdminOperationspublic final void priority_filter(MappingFilter filter)
public final MappingFilter priority_filter()
public final MappingFilter lifetime_filter()
public final void lifetime_filter(MappingFilter filter)
public final Integer getID()
public final List getFilters()
FilterStagegetFilters in interface FilterStagepublic final void deactivate()
public final boolean isDestroyed()
FilterStageisDestroyed in interface FilterStageprotected void checkDestroyStatus()
throws OBJECT_NOT_EXIST
OBJECT_NOT_EXISTpublic final void destroy()
destroy in interface AbstractProxyMBeanpublic void dispose()
dispose in interface org.picocontainer.Disposableprotected abstract void clientDisconnected()
public abstract ProxyType MyType()
public final boolean hasInterFilterGroupOperatorOR()
FilterStagehasInterFilterGroupOperatorOR in interface FilterStagepublic final boolean getConnected()
getConnected in interface AbstractProxyMBeanpublic final boolean hasLifetimeFilter()
FilterStagehasLifetimeFilter in interface FilterStagepublic final boolean hasPriorityFilter()
FilterStagehasPriorityFilter in interface FilterStagepublic final MappingFilter getLifetimeFilter()
FilterStagegetLifetimeFilter in interface FilterStagepublic final MappingFilter getPriorityFilter()
FilterStagegetPriorityFilter in interface FilterStagepublic void resetErrorCounter()
resetErrorCounter in interface AbstractProxyMBeanpublic final int getErrorCounter()
getErrorCounter in interface AbstractProxyMBeanpublic final int incErrorCounter()
public boolean isSuspended()
public final void suspend_connection()
throws NotConnected,
ConnectionAlreadyInactive
protected void connectionSuspended()
public final void resume_connection()
throws NotConnected,
ConnectionAlreadyActive
NotConnectedConnectionAlreadyActiveprotected void connectionResumed()
protected void checkIsConnected()
throws NotConnected
NotConnectedprotected void checkIsNotConnected()
throws AlreadyConnected
AlreadyConnectedprotected void checkStillConnected()
throws Disconnected
Disconnectedprotected void connectClient(Object client)
protected abstract void disconnectClient()
protected void handleDisconnected(Disconnected e)
protected abstract void removeListener()
public final String getJMXObjectName()
getJMXObjectName in interface JMXManageablepublic final String getMBeanName()
protected String getMBeanType()
public String[] getJMXNotificationTypes()
getJMXNotificationTypes in interface JMXManageablepublic void setJMXCallback(JMXManageable.JMXCallback callback)
setJMXCallback in interface JMXManageablepublic String getStatus()
getStatus in interface AbstractProxyMBeanpublic String getClientIOR()
getClientIOR in interface AbstractProxyMBeanpublic String getInterFilterGroupOperator()
getInterFilterGroupOperator in interface AbstractProxyMBeanCopyright © 2015 JacORB. All rights reserved.