rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
u.p("really painting"); | public synchronized void startRender(Graphics g) { g.setColor(Color.black); if(this.isLayoutDone()) { if(panel.body_box != null) { u.p("really painting"); try { panel.layout.paint( panel.c, panel.body_box ); } catch (Throwable ... | |
u.p("still doing layout"); | public synchronized void startRender(Graphics g) { g.setColor(Color.black); if(this.isLayoutDone()) { if(panel.body_box != null) { u.p("really painting"); try { panel.layout.paint( panel.c, panel.body_box ); } catch (Throwable ... | |
demos.add(new LoadAction("Images","demos/image.xhtml")); | public void createLayout() { file.add(open_file); file.add(quit); add(file); view.add(view_source); add(view); demos.add(new LoadAction("Borders","demos/border.xhtml")); demos.add(new LoadAction("Paragraph","demos/paragraph.xhtml")); demos.add(... | |
if ( getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT ) { return _domCSSValue.getCssText(); } else { if ( cssSACPrimitiveValueType() == CSSPrimitiveValue.CSS_STRING ){ return ( (CSSPrimitiveValue)_domCSSValue ).getStringValue(); } else { return "NOT-A-STRING"; } | switch ( getPrimitiveType()) { case CSSPrimitiveValue.CSS_IDENT: case CSSPrimitiveValue.CSS_URI: return _domCSSValue.getCssText(); case CSSPrimitiveValue.CSS_STRING: return ( (CSSPrimitiveValue)_domCSSValue ).getStringValue(); default: return "NOT-A-STRING"; | public String getStringValue() { assert( getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE ); if ( getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT ) { return _domCSSValue.getCssText(); } else { if ( cssSACPrimitiveValueType() == CSSPrimitiveValue.CSS_STRING ){ ... |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public boolean readBoolean() throws JMSException { checkRead(); try { return m.readBoolean(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public byte readByte() throws JMSException { checkRead(); try { return m.readByte(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public int readBytes(byte[] value) throws JMSException { checkRead(); try { return m.read(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public char readChar() throws JMSException { checkRead(); try { return m.readChar(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public double readDouble() throws JMSException { checkRead(); try { return m.readDouble(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public float readFloat() throws JMSException { checkRead(); try { return m.readFloat(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public int readInt() throws JMSException { checkRead(); try { return m.readInt(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public long readLong() throws JMSException { checkRead(); try { return m.readLong(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public short readShort() throws JMSException { checkRead(); try { return m.readShort(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public String readUTF() throws JMSException { checkRead(); try { return m.readUTF(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public int readUnsignedByte() throws JMSException { checkRead(); try { return m.readUnsignedByte(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public int readUnsignedShort() throws JMSException { checkRead(); try { return m.readUnsignedShort(); } catch (EOFException e) { throw new MessageEOFException(""); } catch (IOException e) { throw new JBossJMSException("IOException", e); } ... |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void reset() throws JMSException { if (trace) log.trace("reset()"); try { if (ostream != null) { if (trace) { log.trace("Flushing ostream to array"); } p.flush(); this.setPayload(ostream.toByteArray()); this.clearPayloadAsByteArray(... |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeBoolean(boolean value) throws JMSException { try { p.writeBoolean(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeByte(byte value) throws JMSException { try { p.writeByte(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeBytes(byte[] value) throws JMSException { try { p.write(value, 0, value.length); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeChar(char value) throws JMSException { try { p.writeChar(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeDouble(double value) throws JMSException { try { p.writeDouble(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeFloat(float value) throws JMSException { try { p.writeFloat(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeInt(int value) throws JMSException { try { p.writeInt(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeLong(long value) throws JMSException { try { p.writeLong(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeObject(Object value) throws JMSException { try { if (value == null) { throw new NullPointerException("Attempt to write a new value"); } if (value instanceof String) { //p.writeChars((String) value); p.writeUTF((Stri... |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeShort(short value) throws JMSException { try { p.writeShort(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
throw new JBossJMSException("IOException", e); | throw new MessagingJMSException("IOException", e); | public void writeUTF(String value) throws JMSException { try { p.writeUTF(value); } catch (IOException e) { throw new JBossJMSException("IOException", e); } } |
getState(invocation).getRemotingConnection().close(); | state.getRemotingConnection().close(); ResourceManagerFactory.instance.returnResourceManager(state.getServerID()); MessageIdGeneratorFactory.instance.returnGenerator(state.getServerID()); | public Object handleClose(Invocation invocation) throws Throwable { Object ret = invocation.invokeNext(); //Finished with the connection - we need to shutdown callback server getState(invocation).getRemotingConnection().close(); return ret; } |
StringTokenizer st = new StringTokenizer(parseVariables ? ScriptVariableParser.translateVariables(to, transientVars, ps).toString() : to, ", "); | VariableResolver variableResolver = config.getVariableResolver(); StringTokenizer st = new StringTokenizer(parseVariables ? variableResolver.translateVariables(to, transientVars, ps).toString() : to, ", "); | public void execute(Map transientVars, Map args, PropertySet ps) { String to = (String) args.get("to"); String from = (String) args.get("from"); String subject = (String) args.get("subject"); String cc = (String) args.get("cc"); String m = (String) args.get("message"); Stri... |
cc = ScriptVariableParser.translateVariables(cc, transientVars, ps).toString(); | cc = variableResolver.translateVariables(cc, transientVars, ps).toString(); | public void execute(Map transientVars, Map args, PropertySet ps) { String to = (String) args.get("to"); String from = (String) args.get("from"); String subject = (String) args.get("subject"); String cc = (String) args.get("cc"); String m = (String) args.get("message"); Stri... |
message.setSubject(parseVariables ? ScriptVariableParser.translateVariables(subject, transientVars, ps).toString() : subject); | message.setSubject(parseVariables ? variableResolver.translateVariables(subject, transientVars, ps).toString() : subject); | public void execute(Map transientVars, Map args, PropertySet ps) { String to = (String) args.get("to"); String from = (String) args.get("from"); String subject = (String) args.get("subject"); String cc = (String) args.get("cc"); String m = (String) args.get("message"); Stri... |
message.setText(parseVariables ? ScriptVariableParser.translateVariables(m, transientVars, ps).toString() : m); | message.setText(parseVariables ? variableResolver.translateVariables(m, transientVars, ps).toString() : m); | public void execute(Map transientVars, Map args, PropertySet ps) { String to = (String) args.get("to"); String from = (String) args.get("from"); String subject = (String) args.get("subject"); String cc = (String) args.get("cc"); String m = (String) args.get("message"); Stri... |
String command = e.getActionCommand(); | String command = e.getActionCommand().toLowerCase(); | public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if("preadd".equals(command)) { preadd(); } else if("preremove".equals(command)) { preremove(); } else if("preedit".equals(command)) { premodify(); } else if("postadd".equals(command)) ... |
historyStep = (Step) historySteps.get(historySteps.size() - 1); | historyStep = (Step) historySteps.get(0); | public void testBasicCommonAction() throws Exception { URL url = getClass().getResource("/samples/common-actions.xml"); long id = workflow.initialize(url.toString(), 50, null); assertEquals("Unexpected workflow state", WorkflowEntry.ACTIVATED, workflow.getEntryState(id)); //verify that a... |
historyStep = (Step) historySteps.get(historySteps.size() - 1); | historyStep = (Step) historySteps.get(0); | public void testBasicGlobalAction() throws Exception { URL url = getClass().getResource("/samples/global-actions.xml"); long id = workflow.initialize(url.toString(), 50, null); int[] availableActions = workflow.getAvailableActions(id, null); Object[] list = new Object[availableActions.le... |
private static Server acquireRemote(int initialRetries, int index) | public static Server acquireRemote(int initialRetries, int index, boolean quiet) | private static Server acquireRemote(int initialRetries, int index) { String name = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.RMI_SERVER_PREFIX + index; Server s = null; int retries = initialRetries; while(s == null && retries > 0) { ... |
log.info("trying to connect to the remote RMI server " + index + (attempt == 1 ? "" : ", attempt " + attempt)); | String msg = "trying to connect to the remote RMI server " + index + (attempt == 1 ? "" : ", attempt " + attempt); if(quiet) { log.debug(msg); } else { log.info(msg); } | private static Server acquireRemote(int initialRetries, int index) { String name = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.RMI_SERVER_PREFIX + index; Server s = null; int retries = initialRetries; while(s == null && retries > 0) { ... |
log.info("connected to the remote server"); | log.debug("connected to remote server " + index); | private static Server acquireRemote(int initialRetries, int index) { String name = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.RMI_SERVER_PREFIX + index; Server s = null; int retries = initialRetries; while(s == null && retries > 0) { ... |
Thread.sleep(1500); | Thread.sleep(500); | private static Server acquireRemote(int initialRetries, int index) { String name = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.RMI_SERVER_PREFIX + index; Server s = null; int retries = initialRetries; while(s == null && retries > 0) { ... |
if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot addNotificationListener it has been killed"); return; } | public static void addNotificationListener(int serverIndex, ObjectName on, NotificationListener listener) throws Exception { if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot addNotificationListener it has been killed"); ... | |
servers[serverIndex].addNotificationListener(on, listener); | servers[serverIndex].getServer().addNotificationListener(on, listener); | public static void addNotificationListener(int serverIndex, ObjectName on, NotificationListener listener) throws Exception { if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot addNotificationListener it has been killed"); ... |
servers[0].addServerInvocationHandler(subsystem, handler); | servers[0].getServer().addServerInvocationHandler(subsystem, handler); | public static void addServerInvocationHandler(String subsystem, ServerInvocationHandler handler) throws Exception { insureStarted(); servers[0].addServerInvocationHandler(subsystem, handler); } |
servers[0].configureSecurityForDestination(destName, config); | servers[0].getServer().configureSecurityForDestination(destName, config); | public static void configureSecurityForDestination(String destName, String config) throws Exception { insureStarted(); servers[0].configureSecurityForDestination(destName, config); } |
public static synchronized void create() throws Exception | public static synchronized Server create() throws Exception | public static synchronized void create() throws Exception { create(0); } |
create(0); | return create(0); | public static synchronized void create() throws Exception { create(0); } |
servers[0].createQueue(name, jndiName); | servers[0].getServer().createQueue(name, jndiName); | public static void createQueue(String name, String jndiName) throws Exception { insureStarted(); servers[0].createQueue(name, jndiName); } |
servers[0].createTopic(name, jndiName); | servers[0].getServer().createTopic(name, jndiName); | public static void createTopic(String name, String jndiName) throws Exception { insureStarted(); servers[0].createTopic(name, jndiName); } |
return servers[0].deploy(mbeanConfiguration); | return servers[0].getServer().deploy(mbeanConfiguration); | public static ObjectName deploy(String mbeanConfiguration) throws Exception { insureStarted(); return servers[0].deploy(mbeanConfiguration); } |
if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot deployClusteredQueue it has been killed"); } | public static void deployClusteredQueue(String name, int serverIndex) throws Exception { if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot deployClusteredQueue it has been killed"); } insureStarted(serverIndex); servers[serverIndex].deployQueue(name, null... | |
servers[serverIndex].deployQueue(name, null, true); | servers[serverIndex].getServer().deployQueue(name, null, true); | public static void deployClusteredQueue(String name, int serverIndex) throws Exception { if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot deployClusteredQueue it has been killed"); } insureStarted(serverIndex); servers[serverIndex].deployQueue(name, null... |
if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot deployClusteredTopic it has been killed"); } | public static void deployClusteredTopic(String name, int serverIndex) throws Exception { if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot deployClusteredTopic it has been killed"); } insureStarted(serverIndex); servers[serverIndex].deployTopic(name, null... | |
servers[serverIndex].deployTopic(name, null, true); | servers[serverIndex].getServer().deployTopic(name, null, true); | public static void deployClusteredTopic(String name, int serverIndex) throws Exception { if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot deployClusteredTopic it has been killed"); } insureStarted(serverIndex); servers[serverIndex].deployTopic(name, null... |
servers[0].deployConnectionFactory(objectName, jndiBindings, prefetchSize, defaultTempQueueFullSize, defaultTempQueuePageSize, defaultTempQueueDownCacheSize); | servers[0].getServer().deployConnectionFactory(objectName, jndiBindings, prefetchSize, defaultTempQueueFullSize, defaultTempQueuePageSize, defaultTempQueueDownCacheSize); | public static void deployConnectionFactory(String objectName, String[] jndiBindings, int prefetchSize, int defaultTempQueueFullSize, int ... |
return servers[0].destroyDestination(true, name); | return servers[0].getServer().destroyDestination(true, name); | public static boolean destroyQueue(String name) throws Exception { return servers[0].destroyDestination(true, name); } |
return servers[0].destroyDestination(false, name); | return servers[0].getServer().destroyDestination(false, name); | public static boolean destroyTopic(String name) throws Exception { return servers[0].destroyDestination(false, name); } |
return servers[0].getConnectorSubsystems(); | return servers[0].getServer().getConnectorSubsystems(); | public static Set getConnectorSubsystems() throws Exception { insureStarted(); return servers[0].getConnectorSubsystems(); } |
return servers[0].getDefaultSecurityConfig(); | return servers[0].getServer().getDefaultSecurityConfig(); | public static String getDefaultSecurityConfig() throws Exception { insureStarted(); return servers[0].getDefaultSecurityConfig(); } |
return servers[0].getDestinationManager(); | return servers[0].getServer().getDestinationManager(); | public static DestinationManager getDestinationManager() throws Exception { insureStarted(); return servers[0].getDestinationManager(); } |
return servers[0].getMessageStore(); | return servers[0].getServer().getMessageStore(); | public static MessageStore getMessageStore() throws Exception { insureStarted(); return servers[0].getMessageStore(); } |
return servers[0].getPersistenceManager(); | return servers[0].getServer().getPersistenceManager(); | public static PersistenceManager getPersistenceManager() throws Exception { insureStarted(); return servers[0].getPersistenceManager(); } |
public static Server getServer() | public synchronized static Server getServer() | public static Server getServer() { return getServer(0); } |
return servers[0].getServerPeerObjectName(); | return servers[0].getServer().getServerPeerObjectName(); | public static ObjectName getServerPeerObjectName() throws Exception { insureStarted(); return servers[0].getServerPeerObjectName(); } |
return servers[0].getUserTransaction(); | return servers[0].getServer().getUserTransaction(); | public static UserTransaction getUserTransaction() throws Exception { insureStarted(); return servers[0].getUserTransaction(); } |
return servers[0].invoke(on, operationName, params, signature); | return servers[0].getServer().invoke(on, operationName, params, signature); | public static Object invoke(ObjectName on, String operationName, Object[] params, String[] signature) throws Exception { insureStarted(); return servers[0].invoke(on, operationName, params, signature); } |
return servers[0].isServerPeerStarted(); | return servers[0].getServer().isServerPeerStarted(); | public static boolean isServerPeerStarted() throws Exception { insureStarted(); return servers[0].isServerPeerStarted(); } |
public static synchronized boolean isStarted(int index) | public static synchronized boolean isStarted(int i) | public static synchronized boolean isStarted(int index) { Server s = servers[index]; if (s == null) { return false; } try { return s.isStarted(); } catch(Exception e) { return false; } } |
Server s = servers[index]; if (s == null) | if (servers[i] == null) | public static synchronized boolean isStarted(int index) { Server s = servers[index]; if (s == null) { return false; } try { return s.isStarted(); } catch(Exception e) { return false; } } |
return s.isStarted(); | return servers[i].getServer().isStarted(); | public static synchronized boolean isStarted(int index) { Server s = servers[index]; if (s == null) { return false; } try { return s.isStarted(); } catch(Exception e) { return false; } } |
public static synchronized void kill(int index) throws Exception | public static synchronized void kill(int i) throws Exception | public static synchronized void kill(int index) throws Exception { if (servers[index] == null) { log.warn("Server " + index + " has not been created, so it cannot be killed"); return; } servers[index].kill(); log.info("Server " + index + " killed"); servers[index] = nu... |
if (servers[index] == null) | if (servers[i] == null) | public static synchronized void kill(int index) throws Exception { if (servers[index] == null) { log.warn("Server " + index + " has not been created, so it cannot be killed"); return; } servers[index].kill(); log.info("Server " + index + " killed"); servers[index] = nu... |
log.warn("Server " + index + " has not been created, so it cannot be killed"); return; | log.warn("Server " + i + " has not been created, so it cannot be killed"); | public static synchronized void kill(int index) throws Exception { if (servers[index] == null) { log.warn("Server " + index + " has not been created, so it cannot be killed"); return; } servers[index].kill(); log.info("Server " + index + " killed"); servers[index] = nu... |
servers[index].kill(); log.info("Server " + index + " killed"); servers[index] = null; killed[index] = true; | else { servers[i].getServer().kill(); log.info("Server " + i + " killed"); servers[i] = null; } | public static synchronized void kill(int index) throws Exception { if (servers[index] == null) { log.warn("Server " + index + " has not been created, so it cannot be killed"); return; } servers[index].kill(); log.info("Server " + index + " killed"); servers[index] = nu... |
return servers[0].query(pattern); | return servers[0].getServer().query(pattern); | public static Set query(ObjectName pattern) throws Exception { insureStarted(); return servers[0].query(pattern); } |
if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot removeNotificationListener it has been killed"); return; } | public static void removeNotificationListener(int serverIndex, ObjectName on, NotificationListener listener) throws Exception { if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot removeNotificationListener it has been killed"); ... | |
servers[serverIndex].removeNotificationListener(on, listener); | servers[serverIndex].getServer().removeNotificationListener(on, listener); | public static void removeNotificationListener(int serverIndex, ObjectName on, NotificationListener listener) throws Exception { if (killed[serverIndex]) { log.warn("Server " + serverIndex + " cannot removeNotificationListener it has been killed"); ... |
servers[0].removeServerInvocationHandler(subsystem); | servers[0].getServer().removeServerInvocationHandler(subsystem); | public static void removeServerInvocationHandler(String subsystem) throws Exception { insureStarted(); servers[0].removeServerInvocationHandler(subsystem); } |
servers[0].setAttribute(on, name, valueAsString); | servers[0].getServer().setAttribute(on, name, valueAsString); | public static void setAttribute(ObjectName on, String name, String valueAsString) throws Exception { insureStarted(); servers[0].setAttribute(on, name, valueAsString); } |
servers[0].setDefaultSecurityConfig(config); | servers[0].getServer().setDefaultSecurityConfig(config); | public static void setDefaultSecurityConfig(String config) throws Exception { insureStarted(); servers[0].setDefaultSecurityConfig(config); } |
public static synchronized void spawn(int index) throws Exception | private static synchronized Server spawn(final int i) throws Exception | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
if (servers[index] != null) | if(isLocal()) | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
throw new Exception("The server " + index + " has been created already!"); | return null; | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
if (isRemote() && acquireRemote(3, index) != null) { throw new Exception("The remote server " + index + " seems to be already up!"); } | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... | |
sb.append("-Dmodule.output=./../output").append(' '); | String moduleOutput = System.getProperty("module.output"); if (moduleOutput == null) { moduleOutput = "./output"; } sb.append("-Dmodule.output=").append(moduleOutput).append(' '); | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
sb.append("-Dremote.test.suffix=-remote-").append(index).append(' '); | sb.append("-Dremote.test.suffix=-remote-").append(i).append(' '); | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
sb.append("-Dtest.server.index=").append(index).append(' '); | sb.append("-Dtest.server.index=").append(i).append(' '); | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
sb.append("-cp").append(' ').append(System.getProperty("java.class.path")).append(' '); | String database = System.getProperty("test.database"); if (database != null) { sb.append("-Dtest.database=").append(database).append(' '); } String serialization = System.getProperty("test.serialization"); if (serialization != null) { sb.append("-Dtest.serialization=").append(serialization).append(' '); } String clus... | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
String commandLine = sb.toString(); | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... | |
Runtime.getRuntime().exec(sb.toString()); | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... | |
killed[index] = false; | Process process = Runtime.getRuntime().exec(commandLine); | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
log.info("VM for Server " + index + " spawned"); | log.trace("process: " + process); final boolean verbose = false; final BufferedReader rs = new BufferedReader(new InputStreamReader(process.getInputStream())); final BufferedReader re = new BufferedReader(new InputStreamReader(process.getErrorStream())); new Thread(new Runnable() { public void run() { try { String... | public static synchronized void spawn(int index) throws Exception { if (servers[index] != null) { throw new Exception("The server " + index + " has been created already!"); } // in the remote case, make sure the VM with the given index isn't already up if (isRemote() && acquireRemo... |
start(config, 0); | start(0, config); | public static synchronized void start(String config) throws Exception { start(config, 0); } |
servers[0].stopServerPeer(); | servers[0].getServer().stopServerPeer(); | public static void stopServerPeer() throws Exception { insureStarted(); servers[0].stopServerPeer(); } |
servers[0].undeploy(on); | servers[0].getServer().undeploy(on); | public static void undeploy(ObjectName on) throws Exception { insureStarted(); servers[0].undeploy(on); } |
servers[0].undeployConnectionFactory(objectName); | servers[0].getServer().undeployConnectionFactory(objectName); | public static void undeployConnectionFactory(ObjectName objectName) throws Exception { servers[0].undeployConnectionFactory(objectName); } |
servers[0].undeployDestination(isQueue, name); | servers[0].getServer().undeployDestination(isQueue, name); | private static void undeployDestination(boolean isQueue, String name) throws Exception { insureStarted(); servers[0].undeployDestination(isQueue, name); } |
if (getStyle().isHidden()) { | if (! getStyle().isVisible()) { | public void paintInline(RenderingContext c) { if (getStyle().isHidden()) { return; } getContainingLayer().paintAsLayer(c, this); } |
putConsumerDelegate(consumerID, ep); connectionEndpoint.putConsumerDelegate(consumerID, ep); | putConsumerEndpoint(consumerID, ep); connectionEndpoint.getServerPeer().putConsumerEndpoint(consumerID, ep); | public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) { | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) { | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) { String workflowname = "unknown"; long workflow_id = -1; if (entry != null) { workflowname = entry.getWorkflowName(); workflow_id = entry.getId(); } boolean groupByInstanc... |
if (!ServerManagement.isClustered()) | if (!ServerManagement.isRemote()) | public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.