rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if ((rowMapper == null) || (leadPath == null)) return - 1; else return rowMapper.getRowsForPaths(new TreePath[] { leadPath })[0];
return leadRow;
public int getLeadSelectionRow() { if ((rowMapper == null) || (leadPath == null)) return - 1; else return rowMapper.getRowsForPaths(new TreePath[] { leadPath })[0]; }
protected void insureRowContinuity() throws NotImplementedException
protected void insureRowContinuity()
protected void insureRowContinuity() throws NotImplementedException { // TODO }
if (selection == null || selection.length < 2) return; else if (selectionMode == CONTIGUOUS_TREE_SELECTION) { if (rowMapper == null) selectOne(); else { int[] rows = rowMapper.getRowsForPaths(selection); Arrays.sort(rows); int i; for (i = 1; i < rows.length; i++) { if (rows[i - 1] != rows[i] - 1) break; } if (i < ro...
protected void insureRowContinuity() throws NotImplementedException { // TODO }
public boolean isRowSelected(int row) throws NotImplementedException
public boolean isRowSelected(int row)
public boolean isRowSelected(int row) throws NotImplementedException { return false; // TODO }
return false;
if (isSelectionEmpty()) return false; RowMapper mapper = getRowMapper(); if (mapper instanceof AbstractLayoutCache) { AbstractLayoutCache ama = (AbstractLayoutCache) mapper; TreePath path = ama.getPathForRow(row); return isPathSelected(path); } else { int[] rows = mapper.getRowsForPaths(selection); for (int i = 0;...
public boolean isRowSelected(int row) throws NotImplementedException { return false; // TODO }
protected void notifyPathChange(Vector value0, TreePath value1) throws NotImplementedException
protected void notifyPathChange(Vector vPathes, TreePath oldLeadSelection)
protected void notifyPathChange(Vector value0, TreePath value1) throws NotImplementedException { // STUB }
TreePath[] pathes = new TreePath[vPathes.size()]; for (int i = 0; i < pathes.length; i++) pathes[i] = (TreePath) vPathes.get(i); boolean[] news = new boolean[pathes.length]; for (int i = 0; i < news.length; i++) news[i] = isPathSelected(pathes[i]); TreeSelectionEvent event = new TreeSelectionEvent(this, pathes, news,...
protected void notifyPathChange(Vector value0, TreePath value1) throws NotImplementedException { // STUB }
fireValueChanged(new TreeSelectionEvent(this, path, false, leadPath, path));
TreePath oldLead = leadPath; if (path!=null && leadPath!=null && path.equals(leadPath)) leadPath = null; fireValueChanged(new TreeSelectionEvent(this, path, false, oldLead, leadPath)); insureRowContinuity();
public void removeSelectionPath(TreePath path) { int index = - 1; if (isPathSelected(path)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(path)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, temp, 0...
leadPath, paths[0]));
oldLead, leadPath));
public void removeSelectionPaths(TreePath[] paths) { if (paths != null) { int index = - 1; TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { i...
insureRowContinuity();
public void removeSelectionPaths(TreePath[] paths) { if (paths != null) { int index = - 1; TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { i...
public void resetRowSelection() throws NotImplementedException
public void resetRowSelection()
public void resetRowSelection() throws NotImplementedException { // TODO }
insureRowContinuity();
public void setSelectionMode(int mode) { selectionMode = mode; }
TreePath oldLead = leadPath; leadIndex = 0; leadRow = getRow(path); leadPath = path; TreeSelectionEvent event; if (ose != null && ose.length > 0) { TreePath[] changed = new TreePath[ose.length + 1]; boolean[] news = new boolean[changed.length]; news[0] = true; changed[0] = path; System.arraycopy(ose, 0, changed, 1,...
public void setSelectionPath(TreePath path) { selection = new TreePath[] { path }; }
throws NotImplementedException
public void setSelectionPaths(TreePath[] paths) throws NotImplementedException { // Must be called, as defined in JDK API 1.4. insureUniqueness(); // TODO }
clearSelection(); addSelectionPaths(paths);
public void setSelectionPaths(TreePath[] paths) throws NotImplementedException { // Must be called, as defined in JDK API 1.4. insureUniqueness(); // TODO }
public String toString() throws NotImplementedException
public String toString()
public String toString() throws NotImplementedException { return null; // TODO }
return null;
if (isSelectionEmpty()) return "[selection empty]"; else { StringBuffer b = new StringBuffer("selected rows: ["); for (int i = 0; i < selection.length; i++) { b.append(getRow(selection[i])); b.append(' '); } b.append(", lead "+getLeadSelectionRow()); return b.toString(); }
public String toString() throws NotImplementedException { return null; // TODO }
protected void updateLeadIndex() throws NotImplementedException
protected void updateLeadIndex()
protected void updateLeadIndex() throws NotImplementedException { // STUB }
if (isSelectionEmpty()) { leadRow = leadIndex = - 1; } else { leadRow = getRow(leadPath); for (int i = 0; i < selection.length; i++) { if (selection[i].equals(leadPath)) { leadIndex = i; break; } } leadIndex = leadRow; }
protected void updateLeadIndex() throws NotImplementedException { // STUB }
public static void sort(Object[] a)
public static void sort(byte[] a)
public static void sort(Object[] a) { sort(a, 0, a.length, null); }
sort(a, 0, a.length, null);
qsort(a, 0, a.length);
public static void sort(Object[] a) { sort(a, 0, a.length, null); }
public Name add(String comp) throws InvalidNameException;
Name add(String comp) throws InvalidNameException;
public Name add(String comp) throws InvalidNameException;
public Name addAll(Name suffix) throws InvalidNameException;
Name addAll(Name suffix) throws InvalidNameException;
public Name addAll(Name suffix) throws InvalidNameException;
public int compareTo(Object obj);
int compareTo(Object obj);
public int compareTo(Object obj);
public boolean endsWith(Name name);
boolean endsWith(Name name);
public boolean endsWith(Name name);
public Enumeration getAll();
Enumeration getAll();
public Enumeration getAll();
public Name getPrefix(int i);
Name getPrefix(int i);
public Name getPrefix(int i);
public Name getSuffix(int i);
Name getSuffix(int i);
public Name getSuffix(int i);
public boolean isEmpty();
boolean isEmpty();
public boolean isEmpty();
public Object remove(int posn) throws InvalidNameException;
Object remove(int posn) throws InvalidNameException;
public Object remove(int posn) throws InvalidNameException;
public boolean startsWith(Name name);
boolean startsWith(Name name);
public boolean startsWith(Name name);
Message m = (Message)iter.next();
iter.next();
public void run() { try { QueueBrowser browser = sess.createBrowser((Queue)dest, selector); int count = 0; Iterator iter = Collections.list(browser.getEnumeration()).iterator(); while (count < numMessa...
if (name.regionMatches(false, 0, "JMSX", 0, 4))
if (name.regionMatches(false, 0, "JMSX", 0, 4) && !name.equals("JMSXGroupID") && !name.equals("JMSXGroupSeq"))
void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St...
throw new JMSException("Illegal property name: " + name); }
throw new JMSException("Only JMSXGroupId and JMSXGroupSeq are supported"); }
void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St...
this.messageReadWrite = true;
public void clearBody() throws JMSException { this.messageReadWrite = true; }
propertiesWritable = true;
public void clearProperties() throws JMSException { properties.clear(); }
messageReadWrite = in.readBoolean();
propertiesWritable = in.readBoolean();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); type = readString(in); messageReadWrite = in.readBoolean(); properties = readM...
if (!messageReadWrite)
if (!propertiesWritable)
public void setBooleanProperty(String name, boolean value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Boolean b = Primitives.valueOf(value); checkProperty(name, b); properties.put(name, b); }
if (!messageReadWrite)
if (!propertiesWritable)
public void setByteProperty(String name, byte value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Byte b = new Byte(value); checkProperty(name, b); properties.put(name, b); }
if (!messageReadWrite)
if (!propertiesWritable)
public void setDoubleProperty(String name, double value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Double d = new Double(value); checkProperty(name, d); properties.put(name, d); }
if (!messageReadWrite)
if (!propertiesWritable)
public void setFloatProperty(String name, float value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Float f = new Float(value); checkProperty(name, f); properties.put(name, f); }
if (!messageReadWrite)
if (!propertiesWritable)
public void setIntProperty(String name, int value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Integer i = new Integer(value); checkProperty(name, i); properties.put(name, i); }
if (!messageReadWrite)
if (!propertiesWritable)
public void setLongProperty(String name, long value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Long l = new Long(value); checkProperty(name, l); properties.put(name, l); }
if (!messageReadWrite)
if (!propertiesWritable)
public void setObjectProperty(String name, Object value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("Properties are read-only"); } checkProperty(name, value); if (value instanceof Boolean) { properties.put(name, value); }...
if (!messageReadWrite)
if (!propertiesWritable)
public void setShortProperty(String name, short value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s); }
if (!messageReadWrite)
if (!propertiesWritable)
public void setStringProperty(String name, String value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); this.properties.put(name, value); }
out.writeBoolean(messageReadWrite);
out.writeBoolean(propertiesWritable);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, type); out.writeBoolean(messageReadWrite); //do we really need to write this?? writeMap(out, properties); ...
NodeList registers = r.getElementsByTagName("register");
List registers = XMLUtil.getChildElements(r, "register");
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
for (int i = 0; i < registers.getLength(); i++) { Element register = (Element) registers.item(i);
for (int i = 0; i < registers.size(); i++) { Element register = (Element) registers.get(i);
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
NodeList initialActions = intialActionsElement.getElementsByTagName("action");
List initialActions = XMLUtil.getChildElements(intialActionsElement, "action");
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
for (int i = 0; i < initialActions.getLength(); i++) { Element initialAction = (Element) initialActions.item(i);
for (int i = 0; i < initialActions.size(); i++) { Element initialAction = (Element) initialActions.get(i);
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
NodeList globalActions = globalActionsElement.getElementsByTagName("action");
List globalActions = XMLUtil.getChildElements(globalActionsElement, "action");
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
for (int i = 0; i < globalActions.getLength(); i++) { Element globalAction = (Element) globalActions.item(i);
for (int i = 0; i < globalActions.size(); i++) { Element globalAction = (Element) globalActions.get(i);
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
NodeList commonActions = commonActionsElement.getElementsByTagName("action");
List commonActions = XMLUtil.getChildElements(commonActionsElement, "action");
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
for (int i = 0; i < commonActions.getLength(); i++) { Element commonAction = (Element) commonActions.item(i);
for (int i = 0; i < commonActions.size(); i++) { Element commonAction = (Element) commonActions.get(i);
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
NodeList timerFunctions = timerFunctionsElement.getElementsByTagName("trigger-function");
List timerFunctions = XMLUtil.getChildElements(timerFunctionsElement, "trigger-function");
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
for (int i = 0; i < timerFunctions.getLength(); i++) { Element timerFunction = (Element) timerFunctions.item(i);
for (int i = 0; i < timerFunctions.size(); i++) { Element timerFunction = (Element) timerFunctions.get(i);
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
FunctionDescriptor function = new FunctionDescriptor((Element) timerFunction.getElementsByTagName("function").item(0));
FunctionDescriptor function = new FunctionDescriptor(XMLUtil.getChildElement(timerFunction, "function"));
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
NodeList steps = stepsElement.getElementsByTagName("step");
List steps = XMLUtil.getChildElements(stepsElement, "step");
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
for (int i = 0; i < steps.getLength(); i++) { Element step = (Element) steps.item(i);
for (int i = 0; i < steps.size(); i++) { Element step = (Element) steps.get(i);
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
NodeList split = splitsElement.getElementsByTagName("split");
List split = XMLUtil.getChildElements(splitsElement, "split");
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
for (int i = 0; i < split.getLength(); i++) { Element s = (Element) split.item(i);
for (int i = 0; i < split.size(); i++) { Element s = (Element) split.get(i);
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
NodeList join = joinsElement.getElementsByTagName("join");
List join = XMLUtil.getChildElements(joinsElement, "join");
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
for (int i = 0; i < join.getLength(); i++) { Element s = (Element) join.item(i);
for (int i = 0; i < join.size(); i++) { Element s = (Element) join.get(i);
protected void init(Element root) { NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String valu...
final List exceptions = new ArrayList(); db.setErrorHandler(new ErrorHandler() { public void error(SAXParseException exception) { addMessage(exception); } public void fatalError(SAXParseException exception) { addMessage(exception); } public void warning(SAXParseException exception) { } private void addMessage(SAXPar...
WorkflowLoader.AllExceptionsErrorHandler errorHandler = new WorkflowLoader.AllExceptionsErrorHandler(); db.setErrorHandler(errorHandler);
private void validateDTD() throws InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); StringWriter sw = new StringWriter(); PrintWriter writer = new PrintWriter(sw); wr...
if (exceptions.size() > 0) { throw new InvalidWorkflowDescriptorException(exceptions.toString());
if (errorHandler.getExceptions().size() > 0) { throw new InvalidWorkflowDescriptorException(errorHandler.getExceptions().toString());
private void validateDTD() throws InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); StringWriter sw = new StringWriter(); PrintWriter writer = new PrintWriter(sw); wr...
protected void postDeliver(Message m) throws JMSException
protected static void postDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer)
protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID...
if (!this.isConnectionConsumer)
try
protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID...
sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID);
if (!isConnectionConsumer) { sess.postDeliver(m.getJMSMessageID(), receiverID); }
protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID...
catch (JMSException e) { final String msg = "Failed to get message id"; log.error(msg, e); throw new IllegalStateException(e); }
protected void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID...
protected void preDeliver(Message m) throws JMSException
protected static void preDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer)
protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID);...
if (!this.isConnectionConsumer)
try
protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID);...
sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID);
if (!isConnectionConsumer) { sess.preDeliver(m.getJMSMessageID(), receiverID); }
protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID);...
catch (JMSException e) { final String msg = "Failed to get message id"; log.error(msg, e); throw new IllegalStateException(e); }
protected void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID);...
throws JMSException, InterruptedException
throws JMSException
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c...
if (!receiverStopping)
if (!stopping)
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c...
if (log.isTraceEnabled()) { log.trace("It's closed"); }
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c...
throw e; }
throw new JMSException("Interrupted"); }
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c...
preDeliver(m); postDeliver(m);
preDeliver(sessionDelegate, receiverID, m, isConnectionConsumer); postDeliver(sessionDelegate, receiverID, m, isConnectionConsumer);
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { //Since the jms consumer is single threaded, //it shouldn't be possible for a receive to be called when another receive is in operation //or while a c...
if (!listenerStopping)
if (!stopping)
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } if (!listenerStopping) { ...
preDeliver(m); listener.onMessage(m); if (log.isTraceEnabled()) { log.trace("message successfully handled by listener"); } postDeliver(m);
callOnMessage(consumerDelegate, sessionDelegate, listener, receiverID, isConnectionConsumer, m); if (log.isTraceEnabled()) { log.trace("message successfully handled by listener"); }
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } if (!listenerStopping) { ...
listenerStopping = true;
stopping = true;
protected void stopListener() { listenerStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too listenerThread.interrupt(); try { listenerT...
listenerThread.join(); listenerStopping = false;
listenerThread.join(3000); if (listenerThread.isAlive()) { listenerThread.interrupt(); listenerThread.join(); } stopping = false;
protected void stopListener() { listenerStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too listenerThread.interrupt(); try { listenerT...
receiverStopping = true;
stopping = true;
protected void stopReceiver() { receiverStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too receiverThread.interrupt(); receiverStopping = fal...
receiverStopping = false;
stopping = false;
protected void stopReceiver() { receiverStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too receiverThread.interrupt(); receiverStopping = fal...
if (callbackServer == null) { callbackServer = new Connector(); callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI()); callbackServer.start();
Connector callbackServer = new Connector();
public static Connector getCallbackServer() throws Exception { if (callbackServer == null) { callbackServer = new Connector(); callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI()); callbackServer.start(); // TODO this is unnecessary ...
callbackServer.addInvocationHandler("JMS", new ServerInvocationHandlerImpl()); }
InvokerLocator locator = new InvokerLocator("socket: callbackServer.setInvokerLocator(locator.getLocatorURI()); callbackServer.start(); callbackServer.addInvocationHandler("JMS", new ServerInvocationHandlerImpl());
public static Connector getCallbackServer() throws Exception { if (callbackServer == null) { callbackServer = new Connector(); callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI()); callbackServer.start(); // TODO this is unnecessary ...
drainDestination(cf, queue);
this.drainDestination(cf, queue);
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployTopic("Topic"); ServerManagement.deployTopic("To...
queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null);
queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor());
public void recoverChannel() throws Exception { queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); }
queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null);
queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor());
public void setUp() throws Exception { super.setUp(); queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); }
return (Xid[])xids.toArray();
return (Xid[])xids.toArray(new Xid[xids.size()]);
public Xid[] getPreparedTransactions() { List xids = this.serverPeer.getTxRepository().getPreparedTransactions(); return (Xid[])xids.toArray(); }
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextCompon...
(JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings");
(JTextComponent.KeyBinding[]) UIManager.get(prefix + ".keyBindings");
protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextCompon...
defaults.put(prefix + ".keyBindings", bindings);
UIManager.put(prefix + ".keyBindings", bindings);
protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextCompon...
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ActionMap am = (ActionMap) defaults.get(prefix + ".actionMap");
ActionMap am = (ActionMap) UIManager.get(prefix + ".actionMap");
ActionMap getActionMap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ActionMap am = (ActionMap) defaults.get(prefix + ".actionMap"); if (am == null) { am = createActionMap(); defaults.put(prefix + ".actionMap", am); } ret...
defaults.put(prefix + ".actionMap", am);
UIManager.put(prefix + ".actionMap", am);
ActionMap getActionMap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ActionMap am = (ActionMap) defaults.get(prefix + ".actionMap"); if (am == null) { am = createActionMap(); defaults.put(prefix + ".actionMap", am); } ret...
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get...
return (InputMap) defaults.get(prefix + ".windowInputMap");
return (InputMap) UIManager.get(prefix + ".windowInputMap");
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get...
return (InputMap) defaults.get(prefix + ".ancestorInputMap");
return (InputMap) UIManager.get(prefix + ".ancestorInputMap");
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get...
return (InputMap) defaults.get(prefix + ".focusInputMap");
return (InputMap) UIManager.get(prefix + ".focusInputMap");
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) defaults.get...