rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
office1.bindQueue("durableQueue", "condition1", queue1);
office1.bindQueue("durableQueue", "condition1", null, queue1);
public final void testBind() throws Throwable { PostOffice office1 = null; PostOffice office2 = null; PostOffice office3 = null; try { office1 = createPostOffice(); //Bind one durable Filter filter1 = new Selector("x ...
Binding bindFail = office1.bindQueue("durableQueue", "condition1", queue1);
Binding bindFail = office1.bindQueue("durableQueue", "condition1", null, queue1);
public final void testBind() throws Throwable { PostOffice office1 = null; PostOffice office2 = null; PostOffice office3 = null; try { office1 = createPostOffice(); //Bind one durable Filter filter1 = new Selector("x ...
Queue queue2 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue2 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testBind() throws Throwable { PostOffice office1 = null; PostOffice office2 = null; PostOffice office3 = null; try { office1 = createPostOffice(); //Bind one durable Filter filter1 = new Selector("x ...
office1.bindQueue("nonDurableQueue", "condition2", queue2);
office1.bindQueue("nonDurableQueue", "condition2", null, queue2);
public final void testBind() throws Throwable { PostOffice office1 = null; PostOffice office2 = null; PostOffice office3 = null; try { office1 = createPostOffice(); //Bind one durable Filter filter1 = new Selector("x ...
Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
office.bindQueue("queue1", "condition1", queue1);
office.bindQueue("queue1", "condition1", null, queue1);
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
Queue queue2 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue2 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
office.bindQueue("queue2", "condition1", queue2);
office.bindQueue("queue2", "condition1", null, queue2);
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
Queue queue3 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue3 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
office.bindQueue("queue3", "condition1", queue3);
office.bindQueue("queue3", "condition1", null, queue3);
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
Queue queue4 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue4 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
office.bindQueue("queue4", "condition1", queue4);
office.bindQueue("queue4", "condition1", null, queue4);
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
Queue queue5 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue5 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
office.bindQueue("queue5", "condition2", queue5);
office.bindQueue("queue5", "condition2", null, queue5);
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
Queue queue6 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue6 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
office.bindQueue("queue6", "condition2", queue6);
office.bindQueue("queue6", "condition2", null, queue6);
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
Queue queue7 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue7 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
office.bindQueue("queue7", "condition2", queue7);
office.bindQueue("queue7", "condition2", null, queue7);
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
Queue queue8 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue8 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
office.bindQueue("queue8", "condition2", queue8);
office.bindQueue("queue8", "condition2", null, queue8);
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding binding1 = ...
Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
postOffice.bindQueue("queue1", "topic1", queue1);
postOffice.bindQueue("queue1", "topic1", null, queue1);
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
Queue queue2 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue2 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
postOffice.bindQueue("queue2", "topic1", queue2);
postOffice.bindQueue("queue2", "topic1", null, queue2);
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
Queue queue3 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue3 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
postOffice.bindQueue("queue3", "topic1", queue3);
postOffice.bindQueue("queue3", "topic1", null, queue3);
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
Queue queue4 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue4 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
postOffice.bindQueue("queue4", "topic2", queue4);
postOffice.bindQueue("queue4", "topic2", null, queue4);
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
Queue queue5 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue5 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
postOffice.bindQueue("queue5", "topic2", queue5);
postOffice.bindQueue("queue5", "topic2", null, queue5);
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
Queue queue6 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue6 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
postOffice.bindQueue("queue6", "topic2", queue6);
postOffice.bindQueue("queue6", "topic2", null, queue6);
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bin...
Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testRouteNoBinding() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bi...
postOffice.bindQueue("queue1", "condition1", queue1);
postOffice.bindQueue("queue1", "condition1", null, queue1);
public final void testRouteNoBinding() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); Queue queue1 = new Queue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); Binding bi...
if (! e.isConsumed() && processKeyBinding(KeyStroke.getKeyStrokeForEvent(e),
if (e.isConsumed()) return; if (processKeyBinding(KeyStroke.getKeyStrokeForEvent(e),
protected void processKeyEvent(KeyEvent e) { // let the AWT event processing send KeyEvents to registered listeners super.processKeyEvent(e); processComponentKeyEvent(e); // FIXME: this needs to be elaborated significantly, to do all the // focus / ancestor / window searching for the various binding m...
else if (processKeyBinding(KeyStroke.getKeyStrokeForEvent(e), e, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, e.getID() == KeyEvent.KEY_PRESSED)) e.consume(); else { Container current = this; while ((current = current.getParent()) instanceof JComponent) { if (((JComponent)current).processKeyBinding (KeyStroke.getKeyStrokeForE...
protected void processKeyEvent(KeyEvent e) { // let the AWT event processing send KeyEvents to registered listeners super.processKeyEvent(e); processComponentKeyEvent(e); // FIXME: this needs to be elaborated significantly, to do all the // focus / ancestor / window searching for the various binding m...
Node parent = node.getParentNode();
Node parent = box.node.getParentNode();
public static void setupVerticalAlign( Context c, Node node, InlineBox box ) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if ( node...
if ( node.getNodeType() == node.TEXT_NODE ) {
if ( box.node.getNodeType() == box.node.TEXT_NODE ) {
public static void setupVerticalAlign( Context c, Node node, InlineBox box ) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if ( node...
elem = (Element)node.getParentNode();
elem = (Element)box.node.getParentNode();
public static void setupVerticalAlign( Context c, Node node, InlineBox box ) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if ( node...
elem = (Element)node;
elem = (Element)box.node;
public static void setupVerticalAlign( Context c, Node node, InlineBox box ) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if ( node...
catch (StringIndexOutOfBoundsException ex) { int invalid = 0; if (seg.offset < 0 || seg.offset >= seg.array.length) invalid = seg.offset; else invalid = seg.offset + seg.count; throw new BadLocationException("Illegal location: array.length = " + seg.array.length + ", offset = " + seg.offset + ", count = " + seg.count, ...
public String getString(int where, int len) throws BadLocationException { Segment seg = new Segment(); getChars(where, len, seg); return new String(seg.array, seg.offset, seg.count); }
root.panel.view.stop();
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
root.panel.view.stop();
public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("stop called"); root.panel.view.stop(); }
delegate.getServerLocatorURI()));
delegate.getRemotingConnection()));
public Object handleCreateConnectionDelegate(Invocation invocation) throws Throwable { ClientConnectionDelegate delegate = (ClientConnectionDelegate)invocation.invokeNext(); delegate.init(); delegate.setState(new ConnectionState(delegate, delega...
int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart)
int numSessions, boolean transacted, int transactionSize, int numMessages)
public BaseThroughputJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart) { super(slaveURL, jndiProperties, destinationName, con...
this.timeToStart = timeToStart;
servitorThreads = new Thread[numSessions]; servitors = new Servitor[numSessions];
public BaseThroughputJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart) { super(slaveURL, jndiProperties, destinationName, con...
protected void runTest() throws Exception
protected JobResult runTest() throws PerfException
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servitor.init(); servitors[i] = servitor; }
boolean failed = false;
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
long now = System.currentTimeMillis(); if (now >= timeToStart) { log.error("Already passed timeToStart"); failed = true; return; } long toSleep = timeToStart - now; log.info("Sleeping for " + toSleep + " ms"); Thread.sleep(toSleep); log.info("Done sleeping"); startTime = System.currentTimeMillis();
long startTime = System.currentTimeMillis();
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
servitorThreads[i] = new Thread(servitors[i]);
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
servitorThreads[i].join();
try { servitorThreads[i].join(); } catch (InterruptedException e) { throw new PerfException("Thread interrupted"); }
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
endTime = System.currentTimeMillis();
long endTime = System.currentTimeMillis();
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
log.info("Servitor failed");
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
log.info("Got a throwable: " + servitor.getThrowable());
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
log.info("Throwables array is: " + throwables);
if (failed) { throw new PerfException("Test failed"); }
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
return new JobResult(startTime, endTime);
protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi...
return new Subscription(id, topic, ms, pm, topic.getFullSize(), topic.getPageSize(), topic.getDownCacheSize(), selector == null ? null : new Selector(selector), noLocal);
return new Subscription(id, topic, ms, pm, topic.getFullSize(), topic.getPageSize(), topic.getDownCacheSize(), sel, noLocal);
public Subscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { long id = this.getNextId(); Topic topic = (Topic)getCoreDestinationInternal(false, topicName); i...
if (subs == null) return null;
if (subs == null) { return null; } if (log.isTraceEnabled()) { log.trace("Removing durable sub: " + subscriptionName); }
public DurableSubscriptionHolder removeDurableSubscription(String clientID, String subscriptionName) { Map subs = (Map)subscriptions.get(clientID); if (subs == null) return null; DurableSubscriptionHolder removed = (DurableSubs...
trace = log.isTraceEnabled();
public JMSServerInvocationHandler() { callbackHandlers = new HashMap(); }
{ if (log.isTraceEnabled()) { log.trace("adding callback handler " + callbackHandler); }
{ if (trace) { log.trace("adding callback handler " + callbackHandler); }
public void addListener(InvokerCallbackHandler callbackHandler) { if (log.isTraceEnabled()) { log.trace("adding callback handler " + callbackHandler); } if (callbackHandler instanceof ServerInvokerCallbackHandler) { ServerInvokerCallbackHandler h = (ServerInvokerCallbackHan...
if (log.isTraceEnabled()) { log.trace("Invoking:" + invocation); }
if (trace) { log.trace("Invoking:" + invocation); }
public Object invoke(InvocationRequest invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("Invoking:" + invocation); } MethodInvocation i = (MethodInvocation)invocation.getParameter(); String s = (String)i.getMetaData(MetaDataConstants.JMS, MetaDataConstants.REMOTING_SE...
if (log.isTraceEnabled()) { log.trace("found calllback handler for session " + Util.guidToString(s)); }
if (trace) { log.trace("found calllback handler for session " + Util.guidToString(s)); }
public Object invoke(InvocationRequest invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("Invoking:" + invocation); } MethodInvocation i = (MethodInvocation)invocation.getParameter(); String s = (String)i.getMetaData(MetaDataConstants.JMS, MetaDataConstants.REMOTING_SE...
return Dispatcher.singleton.invoke(i);
InvocationResponse resp = JMSDispatcher.instance.invoke(i); return resp.getResponse();
public Object invoke(InvocationRequest invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("Invoking:" + invocation); } MethodInvocation i = (MethodInvocation)invocation.getParameter(); String s = (String)i.getMetaData(MetaDataConstants.JMS, MetaDataConstants.REMOTING_SE...
if (log.isTraceEnabled()) { log.trace("removing callback handler: " + callbackHandler); }
if (trace) { log.trace("removing callback handler: " + callbackHandler); }
public void removeListener(InvokerCallbackHandler callbackHandler) { if (log.isTraceEnabled()) { log.trace("removing callback handler: " + callbackHandler); } synchronized(callbackHandlers) { for(Iterator i = callbackHandlers.keySet().iterator(); i.hasNext();) { Object key...
if (log.isTraceEnabled()) {log.trace("set ServerInvoker to " + this.invoker); }
if (trace) {log.trace("set ServerInvoker to " + this.invoker); }
public void setInvoker(ServerInvoker invoker) { this.invoker = invoker; if (log.isTraceEnabled()) {log.trace("set ServerInvoker to " + this.invoker); } }
if (log.isTraceEnabled()) { log.trace("set MBeanServer to " + this.server); }
if (trace) { log.trace("set MBeanServer to " + this.server); }
public void setMBeanServer(MBeanServer server) { this.server = server; if (log.isTraceEnabled()) { log.trace("set MBeanServer to " + this.server); } }
private BCSSChild()
BCSSChild(Object targetChild, Object peer)
private BCSSChild() { }
super(targetChild, peer);
private BCSSChild() { }
}
public void addBeanContextServicesListener (BeanContextServicesListener listener) { if (! bcsListeners.contains(listener)) bcsListeners.add(listener); }
public boolean addService (Class serviceClass, BeanContextServiceProvider bcsp) throws NotImplementedException
public boolean addService (Class serviceClass, BeanContextServiceProvider bcsp)
public boolean addService (Class serviceClass, BeanContextServiceProvider bcsp) throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
return addService(serviceClass, bcsp, true);
public boolean addService (Class serviceClass, BeanContextServiceProvider bcsp) throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
return new BCSSChild(targetChild, peer);
protected BeanContextSupport.BCSChild createBCSChild (Object targetChild, Object peer) throws NotImplementedException { throw new Error ("Not implemented"); }
throws NotImplementedException
protected final void fireServiceAdded (BeanContextServiceAvailableEvent bcssae) throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
synchronized (bcsListeners) { int size = bcsListeners.size(); for (int i = 0; i < size; ++i) { BeanContextServicesListener bcsl = (BeanContextServicesListener) bcsListeners.get(i); bcsl.serviceAvailable(bcssae); } }
protected final void fireServiceAdded (BeanContextServiceAvailableEvent bcssae) throws NotImplementedException { throw new Error ("Not implemented"); }
throws NotImplementedException
protected final void fireServiceRevoked(BeanContextServiceRevokedEvent event) throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
synchronized (bcsListeners) { int size = bcsListeners.size(); for (int i = 0; i < size; ++i) { BeanContextServicesListener bcsl = (BeanContextServicesListener) bcsListeners.get(i); bcsl.serviceRevoked(event); } }
protected final void fireServiceRevoked(BeanContextServiceRevokedEvent event) throws NotImplementedException { throw new Error ("Not implemented"); }
throws NotImplementedException
public Iterator getCurrentServiceClasses () throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
synchronized (services) { return services.keySet().iterator(); }
public Iterator getCurrentServiceClasses () throws NotImplementedException { throw new Error ("Not implemented"); }
throws NotImplementedException
public Iterator getCurrentServiceSelectors (Class serviceClass) throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
synchronized (services) { BeanContextServiceProvider bcsp = (BeanContextServiceProvider) services.get(serviceClass); return bcsp.getCurrentServiceSelectors(this, serviceClass); }
public Iterator getCurrentServiceSelectors (Class serviceClass) throws NotImplementedException { throw new Error ("Not implemented"); }
throws NotImplementedException
public boolean hasService (Class serviceClass) throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
synchronized (services) { return services.containsKey(serviceClass); }
public boolean hasService (Class serviceClass) throws NotImplementedException { throw new Error ("Not implemented"); }
}
public void removeBeanContextServicesListener (BeanContextServicesListener listener) { int index = bcsListeners.indexOf(listener); if (index > -1) bcsListeners.remove(index); }
throws NotImplementedException
public void serviceAvailable (BeanContextServiceAvailableEvent bcssae) throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
synchronized (services) { Class klass = bcssae.getServiceClass(); if (services.containsKey(klass)) return; Iterator it = bcsChildren(); while (it.hasNext()) { Object obj = it.next(); if (obj instanceof BeanContextServices) ((BeanContextServices) obj).serviceAvailable(bcssae); } }
public void serviceAvailable (BeanContextServiceAvailableEvent bcssae) throws NotImplementedException { throw new Error ("Not implemented"); }
throws NotImplementedException
public void serviceRevoked (BeanContextServiceRevokedEvent bcssre) throws NotImplementedException { throw new Error ("Not implemented"); }
throw new Error ("Not implemented");
synchronized (services) { Class klass = bcssre.getServiceClass(); if (services.containsKey(klass)) return; Iterator it = bcsChildren(); while (it.hasNext()) { Object obj = it.next(); if (obj instanceof BeanContextServices) ((BeanContextServices) obj).serviceRevoked(bcssre); } }
public void serviceRevoked (BeanContextServiceRevokedEvent bcssre) throws NotImplementedException { throw new Error ("Not implemented"); }
List getReferenceInfos(long channelID, int number) throws Exception;
List getReferenceInfos(long channelID, long minOrdering, int number) throws Exception;
List getReferenceInfos(long channelID, int number) throws Exception;
public JBossSession(ConnectionDelegate connectionDelegate, SessionDelegate sessionDelegate,
public JBossSession(SessionDelegate sessionDelegate,
public JBossSession(ConnectionDelegate connectionDelegate, SessionDelegate sessionDelegate, boolean isXA, int sessionType, boolean transacted, int acknowledgeMode) throws JMSException { this.sessionDe...
this.sessionDelegate = sessionDelegate; this.connectionDelegate = connectionDelegate;
this.sessionDelegate = sessionDelegate;
public JBossSession(ConnectionDelegate connectionDelegate, SessionDelegate sessionDelegate, boolean isXA, int sessionType, boolean transacted, int acknowledgeMode) throws JMSException { this.sessionDe...
JBossTemporaryQueue queue = new JBossTemporaryQueue(connectionDelegate); connectionDelegate.addTemporaryDestination(queue);
JBossTemporaryQueue queue = new JBossTemporaryQueue(sessionDelegate); sessionDelegate.addTemporaryDestination(queue);
public TemporaryQueue createTemporaryQueue() throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_TOPIC_SESSION) { throw new IllegalStateException("Cannot create a temp. queue using a TopicSession"); } JBossTemporaryQueue queue = new JBossTemporaryQueue(connect...
JBossTemporaryTopic topic = new JBossTemporaryTopic(connectionDelegate); connectionDelegate.addTemporaryDestination(topic);
JBossTemporaryTopic topic = new JBossTemporaryTopic(sessionDelegate); sessionDelegate.addTemporaryDestination(topic);
public TemporaryTopic createTemporaryTopic() throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_QUEUE_SESSION) { throw new IllegalStateException("Cannot create a temporary topic on a QueueSession"); } JBossTemporaryTopic topic = new JBossTemporaryTopic(connec...
connectionDelegate.unsubscribe(name);
sessionDelegate.unsubscribe(name);
public void unsubscribe(String name) throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_QUEUE_SESSION) { throw new IllegalStateException("Cannot unsubscribe using a QueueSession"); } connectionDelegate.unsubscribe(name); }
{
public static CertStore getInstance(String type, CertStoreParameters params) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, params, p[i]); ...
catch (NoSuchAlgorithmException e)
catch (NoSuchAlgorithmException x)
public static CertStore getInstance(String type, CertStoreParameters params) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, params, p[i]); ...
}
lastException = x;
public static CertStore getInstance(String type, CertStoreParameters params) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, params, p[i]); ...
if (lastException != null) throw lastException;
public static CertStore getInstance(String type, CertStoreParameters params) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, params, p[i]); ...
return "JDesktopPane";
String superParamStr = super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(",isOptimizedDrawingPossible="); sb.append(isOptimizedDrawingEnabled()); sb.append(",desktopManager="); if (desktopManager != null) sb.append(desktopManager); return superParamStr + sb.toString();
protected String paramString() { return "JDesktopPane"; }
} if (size > bigBlockSize) { throw new IllegalArgumentException("block size must be <= bigBlockSize");
public synchronized IdBlock getIdBlock(int size) throws Exception { if (size <= 0) { throw new IllegalArgumentException("block size must be > 0"); } if (size > high - nextBlock + 1) { getNextBigBlock(); } long low = nextBlock; nextBlock += s...
return new BasicWorkflow(getRemoteUser()).getSecurityPermissions(id);
return new BasicWorkflow(getRemoteUser()).getSecurityPermissions(id, null);
public List getSecurityPermissions(long id) { return new BasicWorkflow(getRemoteUser()).getSecurityPermissions(id); }