T - AcsEventSubscriber or AcsEventPublisher. Allows sharing code between the two subclasses.public abstract class CorbaNotifyBaseImpl<T> extends ComponentImplBase
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cancel
Flag set by interrupt method
|
protected java.util.concurrent.atomic.AtomicInteger |
logMultiplesOfEventCount
value <= 0: No event logging (default)
1: log every event
value > 1: log every Nth event
|
protected java.util.Map<java.lang.String,T> |
subsOrPubs
The component stores here all NCs it is connected to, together with the publisher or subscriber object it uses.
|
m_containerServices, m_instanceName, m_logger| Constructor and Description |
|---|
CorbaNotifyBaseImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createNcParticipant(java.lang.String ncName)
Encapsulates difference between AcsEventSubscriber and AcsEventPublisher.
|
protected abstract void |
disconnectNcParticipant(T subOrPub)
Encapsulates difference between AcsEventSubscriber and AcsEventPublisher.
|
void |
interrupt() |
void |
ncConnect(java.lang.String[] ncNames)
Subscriber or publisher connection.
|
void |
ncDisconnect() |
void |
setEventLogging(int multiplesOfEventCount) |
aboutToAbort, cleanUp, componentState, execute, initialize, nameprotected final java.util.Map<java.lang.String,T> subsOrPubs
protected volatile boolean cancel
protected final java.util.concurrent.atomic.AtomicInteger logMultiplesOfEventCount
setEventLogging(int)protected abstract T createNcParticipant(java.lang.String ncName) throws AcsJContainerServicesEx
AcsJContainerServicesExprotected abstract void disconnectNcParticipant(T subOrPub) throws AcsJIllegalStateEventEx, AcsJCouldntPerformActionEx
AcsJIllegalStateEventExAcsJCouldntPerformActionExpublic void ncConnect(java.lang.String[] ncNames)
throws CouldntPerformActionEx
CouldntPerformActionExpublic void ncDisconnect()
throws CouldntPerformActionEx
CouldntPerformActionExpublic void interrupt()
public void setEventLogging(int multiplesOfEventCount)