public class NotifyServiceData extends AbstractNotifyServiceElement implements java.lang.Comparable<NotifyServiceData>
All equality and comparison methods are based on the simplified name.
name| Constructor and Description |
|---|
NotifyServiceData(java.lang.String name,
java.lang.String factoryName,
EventChannelFactory ecf,
NotificationServiceMonitorControl mc,
java.util.logging.Logger logger)
TODO: Get MC object in the ctor instead of passing it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(java.lang.String channelName,
ChannelData cdata) |
int |
compareTo(NotifyServiceData o) |
boolean |
equals(java.lang.Object o) |
ChannelData |
getChannelByCorbaRef(EventChannel corbaRef)
This method can be used to merge incomplete NC information sets coming from the naming service,
the regular notify service API, and the MC TAO extension API.
|
ChannelData |
getChannelById(int ncId) |
ChannelData |
getChannelByName(java.lang.String channelName) |
java.util.ArrayList<ChannelData> |
getChannels() |
int |
getDeltaConsumers() |
int |
getDeltaSuppliers() |
EventChannelFactory |
getEventChannelFactory() |
java.lang.String |
getFactoryName() |
NotificationServiceMonitorControl |
getMc() |
java.util.List<ChannelData> |
getNewChannels() |
int |
getNumberConsumers() |
int |
getNumberSuppliers() |
int |
hashCode() |
boolean |
isReachable() |
boolean |
isStandardNotifyService()
TODO: Possibly use this information to graphically distinguish between the notify service instances
always started by ACS, and any additional service instances.
|
void |
removeChannel(java.lang.String channelName) |
void |
setReachable(boolean isReachable) |
void |
updateEventChannelFactory(EventChannelFactory efact)
The notify service ref must be updated once after the notify service becomes available, after initial unreachability.
|
void |
updateMC(NotificationServiceMonitorControl monitorControl)
The MC object ref must be updated when a notify service was restarted.
|
getName, getNumConsumersAndDelta, getNumSuppliersAndDelta, toStringpublic NotifyServiceData(java.lang.String name,
java.lang.String factoryName,
EventChannelFactory ecf,
NotificationServiceMonitorControl mc,
java.util.logging.Logger logger)
name - The simplified display namefactoryName - The full name (ID)ecf - Corba reference to the notify servicemc - Corba reference to the monitor-control object (TAO extension)public EventChannelFactory getEventChannelFactory()
null if the eventGUI has never found
this service to be reachable and thus has not obtained a correctly narrowed reference yet.public NotificationServiceMonitorControl getMc()
public void updateEventChannelFactory(EventChannelFactory efact)
public void updateMC(NotificationServiceMonitorControl monitorControl)
public boolean isStandardNotifyService()
public boolean isReachable()
public void setReachable(boolean isReachable)
public java.util.ArrayList<ChannelData> getChannels()
public ChannelData getChannelByName(java.lang.String channelName)
public ChannelData getChannelById(int ncId)
public ChannelData getChannelByCorbaRef(EventChannel corbaRef)
The matching may fail even if the corba references point to the same NC object,
see Object._is_equivalent(org.omg.CORBA.Object).
public java.util.List<ChannelData> getNewChannels()
public void addChannel(java.lang.String channelName,
ChannelData cdata)
public void removeChannel(java.lang.String channelName)
public int getNumberConsumers()
getNumberConsumers in class AbstractNotifyServiceElementpublic int getNumberSuppliers()
getNumberSuppliers in class AbstractNotifyServiceElementpublic int getDeltaConsumers()
getDeltaConsumers in class AbstractNotifyServiceElementpublic int getDeltaSuppliers()
getDeltaSuppliers in class AbstractNotifyServiceElementpublic java.lang.String getFactoryName()
public int compareTo(NotifyServiceData o)
compareTo in interface java.lang.Comparable<NotifyServiceData>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object