TimeStampSplicerManager2.java | TimeStampSplicerManager5.java | ||
Removing addSplicerListener method from managers interface. | |||
105 | public void addSplicerListener(SplicerListener listener) { splicer.addSplicerListener(listener); } | ||
Adding anonymous class to map splicer's events onto JMX notifications. | |||
155 | splicer.addSplicerListener(new SplicerAdapter() { private void emitAttributeChangedNotification(SplicerChangedEvent event) { final long now = System.currentTimeMillis(); final AttributeChangeNotification stateChange = new AttributeChangeNotification(this, getNextNotificationSequenceNumber(), now, null, "SplicerState", "java.lang.Integer", new Integer(event.getOldState()), new Integer(event.getNewState())); sendNotification(stateChange); } public void disposed(SplicerChangedEvent event) { emitAttributeChangedNotification(event); } public void disposing(SplicerChangedEvent event) { emitAttributeChangedNotification(event); } public void started(SplicerChangedEvent event) { emitAttributeChangedNotification(event); } public void starting(SplicerChangedEvent event) { emitAttributeChangedNotification(event); } public void stopped(SplicerChangedEvent event) { emitAttributeChangedNotification(event); } public void stopping(SplicerChangedEvent event) { emitAttributeChangedNotification(event); } } ); | ||
229 | try { final Context context = new InitialContext(); context.unbind(CHANNEL_LOCATOR_NAME); } catch (NamingException e) { e.printStackTrace(); } | ||
Remove ChannelLocator as parameter.
|
|||
159 | final TimeStampGeneratorManager generatorManager = new TimeStampGeneratorManager(channelLocator, count); | 173 | final TimeStampGeneratorManager generatorManager = new TimeStampGeneratorManager(count); |
176 | splicerManager = new TimeStampSplicerManager(channelLocator); | 189 | splicerManager = new TimeStampSplicerManager(); |