public void preDeregister() throws Exception { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("preDeregister", new Object[] { })); }
public ObjectName preRegister(MBeanServer mBeanServer, ObjectName objectName) throws Exception { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("preRegister", new Object[] { "mbeanServer", mBeanServer, "objectName", objectName })); _mbeanServer = mBeanServer; _myName = objectName; return objectName; }
public void flush() { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("flush", CollectionUtils.EMPTY_OBJECT_ARRAY)); } }
public int cycle() { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("cycle", CollectionUtils.EMPTY_OBJECT_ARRAY)); } return ++_currentCycle; }
protected void addNotificationInfo(MBeanNotificationInfo notInfo) { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("send", new Object[] { "addNotificationInfo", notInfo })); MBeanNotificationInfo replacement[] = new MBeanNotificationInfo[_infos.length+1]; System.arraycopy(_infos,0,replacement,0,_infos.length); replacement[replacement.length-1] = notInfo; _infos = replacement; }
public void registerExtension(Class extensionClass, Object obj) { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter .stringifyMethodEnter("registerExtension", new Object[] { "extensionClass", extensionClass, "obj", obj })); } _extensions.put(extensionClass, obj); }
public Continuation dequeueReaction() { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("dequeueReaction", CollectionUtils.EMPTY_OBJECT_ARRAY)); } Continuation continuation = null; if (!_reactions.isEmpty()) { Iterator it = _reactions.iterator(); continuation = (Continuation) it.next(); it.remove(); } return continuation; }
public Continuation dequeueReaction() { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("dequeueReaction", CollectionUtils.EMPTY_OBJECT_ARRAY)); } Continuation continuation = null; if (!_reactions.isEmpty()) { Iterator it = _reactions.iterator(); continuation = (Continuation) it.next(); it.remove(); } return continuation; }
public void removeNotificationListener(NotificationListener notificationListener, NotificationFilter notificationFilter, Object o) throws ListenerNotFoundException { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("removeNotificationListener", new Object[] { "notificationListener", notificationListener, "notificationFilter", notificationFilter, "handback", o })); _nbs.removeNotificationListener(notificationListener, notificationFilter, o); }
public void enqueueReaction(Continuation continuation) { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("enqueueReaction", new Object[] { "continuation", continuation })); verifyNew(continuation); _reactions.add(continuation); }
public void enqueueReaction(Continuation continuation) { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("enqueueReaction", new Object[] { "continuation", continuation })); verifyNew(continuation); _reactions.add(continuation); }
public void flush() { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("flush", CollectionUtils.EMPTY_OBJECT_ARRAY)); } _executionQueue.flush(); }
public void flush() { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("flush", CollectionUtils.EMPTY_OBJECT_ARRAY)); } _executionQueue.flush(); }
public void addNotificationListener(NotificationListener notificationListener, NotificationFilter notificationFilter, Object o) throws IllegalArgumentException { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("addNotificationListener", new Object[] { "notificationListener", notificationListener, "notificationFilter", notificationFilter, "handback", o })); _nbs.addNotificationListener(notificationListener, notificationFilter, o); }
public void removeNotificationListener(NotificationListener notificationListener) throws ListenerNotFoundException { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("removeNotificationListener", new Object[] { "notificationListener", notificationListener })); _nbs.removeNotificationListener(notificationListener); }
public void unregister(MBeanServer server) { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("unregister", new Object[] { "server", server })); try { server.unregisterMBean(getObjectName()); } catch (Exception ex) { __log.warn("Exception on unregister(): " + getObjectName()); } }
public String createExport(CommChannel channel) { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("createExport", new Object[] { "channel", channel })); ChannelFrame cframe = findChannelFrame(channel.getId()); cframe.refCount++; return channel.getId().toString(); }
public String createExport(CommChannel channel) { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("createExport", new Object[] { "channel", channel })); ChannelFrame cframe = findChannelFrame(channel.getId()); cframe.refCount++; return channel.getId().toString(); }
public CommChannel consumeExport(String exportId) { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("consumeExport", new Object[] { "exportId", exportId })); } Integer id = Integer.valueOf(exportId); ChannelFrame cframe = findChannelFrame(id); cframe.refCount--; CommChannel commChannel = new CommChannel(cframe.type); commChannel.setId(id); commChannel.setDescription("EXPORTED CHANNEL"); return commChannel; }
public void add(CommChannel channel) { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("add", new Object[] { "channel", channel })); verifyNew(channel); ChannelFrame cframe = new ChannelFrame(channel.getType(), ++_objIdCounter, channel.getType().getName(), channel .getDescription()); _channels.put(cframe.getId(), cframe); assignId(channel, cframe.getId()); }