rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return "LookAndFeel"; | return getDescription() + " " + getClass().getName(); | public String toString() { return "LookAndFeel"; } |
DatabaseHelper.runScript(getClass().getResource("/scripts/jdbc/dropschema.sql"), "jdbc/DefaultDS"); | protected void tearDown() throws Exception { session.flush(); session.close(); factory.close(); } | |
this.configTablesForGUID(pm); | pm.setSqlProperties(this.getConfigTablesForGUID()); | protected void doTransactionCommit(boolean xa, boolean idIsGuid, boolean storeXid) throws Exception { if (ServerManagement.isRemote()) return; JDBCPersistenceManager pm = new JDBCPersistenceManager(); if (idIsGuid) { this.configTablesForGUID(pm); } pm.setTxIdGuid(idIsGui... |
this.configTablesForGUID(pm); | pm.setSqlProperties(this.getConfigTablesForGUID()); | protected void doTransactionRollback(boolean xa, boolean idIsGuid, boolean storeXid) throws Exception { if (ServerManagement.isRemote()) return; JDBCPersistenceManager pm = new JDBCPersistenceManager(); if (idIsGuid) { this.configTablesForGUID(pm); } pm.setTxIdGuid(idIsG... |
SimpleConnectionEndpoint() | SimpleConnectionEndpoint(ConnectionManager cm, String jvmId, String sessionID) | SimpleConnectionEndpoint() { closed = false; } |
this.cm = cm; this.jvmId = jvmId; this.sessionID = sessionID; | SimpleConnectionEndpoint() { closed = false; } | |
{ | { cm.unregisterConnection(jvmId, sessionID); | public void close() throws JMSException { closed = true; } |
query = new WorkflowExpressionQuery(new FieldExpression(FieldExpression.START_DATE, FieldExpression.HISTORY_STEPS, FieldExpression.LT, new Date())); | query = new WorkflowExpressionQuery(new FieldExpression(FieldExpression.START_DATE, FieldExpression.HISTORY_STEPS, FieldExpression.LT, new Date(System.currentTimeMillis() + 1000))); | public void testWorkflowExpressionQuery() throws Exception { List workflows; WorkflowExpressionQuery query; String workflowName = getWorkflowName(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 100)); //---------------... |
assertEquals("Expected to find 1 workflow step in the history", 1, workflows.size()); | assertEquals("Expected to find 1 workflow step in the history for entry #" + workflowId, 1, workflows.size()); | public void testWorkflowExpressionQuery() throws Exception { List workflows; WorkflowExpressionQuery query; String workflowName = getWorkflowName(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 100)); //---------------... |
NodeList uResults = split.getElementsByTagName("unconditional-result"); | List uResults = XMLUtil.getChildElements(split, "unconditional-result"); | private void init(Element split) { try { setId(Integer.parseInt(split.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid split id value " + split.getAttribute("id")); } NodeList uResults = split.getElementsByTagName("unconditi... |
for (int i = 0; i < uResults.getLength(); i++) { Element result = (Element) uResults.item(i); results.add(new ResultDescriptor(result)); | for (int i = 0; i < uResults.size(); i++) { Element result = (Element) uResults.get(i); ResultDescriptor resultDescriptor = new ResultDescriptor(result); resultDescriptor.setParent(this); results.add(resultDescriptor); | private void init(Element split) { try { setId(Integer.parseInt(split.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid split id value " + split.getAttribute("id")); } NodeList uResults = split.getElementsByTagName("unconditi... |
connector.connect(type, "conditionType"); | connector.connect(type, "conditions[0].type"); | protected void initComponents() { String colLayout = "2dlu, max(32dlu;pref), 2dlu, pref:grow, 4dlu"; String rowLayout = "4dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref"; FormLayout layout = new FormLayout("2dlu, 50dlu:grow, 2dlu", "2dlu, pref, 2dlu"); PanelBuilder builder = new PanelBuilder(this, lay... |
drainDestination(cf, queue); | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); //if (!ServerManagement.isRemote()) tm = Tx... | |
rect.height -= 1; rect.width -= 1; | protected void paintDebugOutline(RenderingContext c, Color color) { Color oldColor = c.getGraphics().getColor(); c.getGraphics().setColor(color); Rectangle rect = getBounds(getAbsX(), getAbsY(), c, 0, 0); c.getGraphics().drawRect(rect.x, rect.y, rect.width, rect.height); c... | |
public void objectChanged(NamingEvent evt); | void objectChanged(NamingEvent evt); | public void objectChanged(NamingEvent evt); |
public MessageDelegate(JBossMessage message) | public MessageDelegate(JBossMessage message, int deliveryCount) | public MessageDelegate(JBossMessage message) { this.message = message; this.state = STATE_NEW; } |
this.deliveryCount = deliveryCount; | public MessageDelegate(JBossMessage message) { this.message = message; this.state = STATE_NEW; } | |
if ("JMSXDeliveryCount".equals(name)) { return deliveryCount; } | public int getIntProperty(String name) throws JMSException { return message.getIntProperty(name); } | |
return message.getJMSRedelivered(); | return jmsRedelivered; | public boolean getJMSRedelivered() throws JMSException { return message.getJMSRedelivered(); } |
headerChange(); message.setJMSRedelivered(redelivered); | jmsRedelivered = redelivered; | public void setJMSRedelivered(boolean redelivered) throws JMSException { headerChange(); message.setJMSRedelivered(redelivered); } |
this.jmsRedelivered = deliveryCount > 0; | public void setReceived() { state = STATE_RECEIVED; propertiesReadOnly = true; bodyReadOnly = true; } | |
uri = baseUri + "?-fs-media-?" + _context.media; | uri = _context.media + "?-fs-media-?" + baseUri; | private List getStylesheets() { java.io.Reader reader; List infos = new LinkedList(); long st = System.currentTimeMillis(); String uri = _nsh.getNamespace(); StylesheetInfo info = new StylesheetInfo(); info.setUri(_nsh.getNamespace()); info.setOrigin(StylesheetInfo.U... |
info.setUri(uri); | info.setUri(baseUri); | private List getStylesheets() { java.io.Reader reader; List infos = new LinkedList(); long st = System.currentTimeMillis(); String uri = _nsh.getNamespace(); StylesheetInfo info = new StylesheetInfo(); info.setUri(_nsh.getNamespace()); info.setOrigin(StylesheetInfo.U... |
if (!_stylesheetFactory.containsStylesheet(uri)) { | Stylesheet sheet = null; if (_stylesheetFactory.containsStylesheet(uri)) { sheet = _stylesheetFactory.getCachedStylesheet(uri); } else { | private List getStylesheets() { java.io.Reader reader; List infos = new LinkedList(); long st = System.currentTimeMillis(); String uri = _nsh.getNamespace(); StylesheetInfo info = new StylesheetInfo(); info.setUri(_nsh.getNamespace()); info.setOrigin(StylesheetInfo.U... |
Stylesheet sheet = _stylesheetFactory.parse(reader, info); | sheet = _stylesheetFactory.parse(reader, info); | private List getStylesheets() { java.io.Reader reader; List infos = new LinkedList(); long st = System.currentTimeMillis(); String uri = _nsh.getNamespace(); StylesheetInfo info = new StylesheetInfo(); info.setUri(_nsh.getNamespace()); info.setOrigin(StylesheetInfo.U... |
info.setStylesheet(sheet); | private List getStylesheets() { java.io.Reader reader; List infos = new LinkedList(); long st = System.currentTimeMillis(); String uri = _nsh.getNamespace(); StylesheetInfo info = new StylesheetInfo(); info.setUri(_nsh.getNamespace()); info.setOrigin(StylesheetInfo.U... | |
public StringBuffer format (long number, StringBuffer dest, | public StringBuffer format (double number, StringBuffer dest, | public StringBuffer format (long number, StringBuffer dest, FieldPosition fieldPos) { // If using exponential notation, we just format as a double. if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != ... |
if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != null) dest.append(substituteCurrency(negativePrefix, number)); else { dest.append(symbols.getMinusSign()); dest.append(substituteCurrency(positivePrefix, number)); } number = - ... | formatInternal (number, new StringFormatBuffer(dest), fieldPos); | public StringBuffer format (long number, StringBuffer dest, FieldPosition fieldPos) { // If using exponential notation, we just format as a double. if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != ... |
if (zeroCount > 0) | private int scanFormat (String pattern, int index, String patChars, DecimalFormatSymbols syms, boolean is_positive) { int max = pattern.length(); int countSinceGroup = 0; int zeroCount = 0; boolean saw_group = false; // // Scan integer part. // while (index < max) { char c =... | |
public DecimalFormatSymbols (Locale loc) | public DecimalFormatSymbols () | public DecimalFormatSymbols (Locale loc) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } setCurrency(Currency.getInstance(loc)); decimalSe... |
ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } setCurrency(Currency.getInstance(loc)); decimalSeparator = safeGetChar (res, "decimalSeparator", '.'); digit = safeGetChar (res, "d... | this (Locale.getDefault()); | public DecimalFormatSymbols (Locale loc) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } setCurrency(Currency.getInstance(loc)); decimalSe... |
this.currency = currency; | public void setCurrency (Currency currency) { this.currency = currency; intlCurrencySymbol = currency.getCurrencyCode(); currencySymbol = currency.getSymbol(); } | |
this.currency = currency; | public void setCurrency (Currency currency) { this.currency = currency; intlCurrencySymbol = currency.getCurrencyCode(); currencySymbol = currency.getSymbol(); } | |
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { | protected Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { | private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ... |
private Step getCurrentStep(WorkflowDescriptor wfDesc, int actionId, List currentSteps, Map transientVars, PropertySet ps) throws WorkflowException { | protected Step getCurrentStep(WorkflowDescriptor wfDesc, int actionId, List currentSteps, Map transientVars, PropertySet ps) throws WorkflowException { | private Step getCurrentStep(WorkflowDescriptor wfDesc, int actionId, List currentSteps, Map transientVars, PropertySet ps) throws WorkflowException { if (currentSteps.size() == 1) { return (Step) currentSteps.get(0); } for (Iterator iterator = currentSteps.iterator(); iterator.hasNex... |
private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { | protected boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { | private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { if (action == null) { return false; } WorkflowDescriptor wf = getWorkflowDescriptorForAction(action); Map cache = (Map) stateCache.get(); ... |
NodeList attributs = root.getElementsByTagName("meta"); | NodeList children = root.getChildNodes(); | protected void init(Element root) { NodeList attributs = root.getElementsByTagName("meta"); for (int i = 0; i < attributs.getLength(); i++) { Element meta = (Element) attributs.item(i); String value = XMLUtil.getText(meta); this.metaAttributes.put(meta.getAttribute("na... |
for (int i = 0; i < attributs.getLength(); i++) { Element meta = (Element) attributs.item(i); String value = XMLUtil.getText(meta); this.metaAttributes.put(meta.getAttribute("name"), value); | for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child; String value = XMLUtil.getText(meta); this.metaAttributes.put(meta.getAttribute("name"), value); } | protected void init(Element root) { NodeList attributs = root.getElementsByTagName("meta"); for (int i = 0; i < attributs.getLength(); i++) { Element meta = (Element) attributs.item(i); String value = XMLUtil.getText(meta); this.metaAttributes.put(meta.getAttribute("na... |
hasActions = true; | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | |
if ((commonActions.size() == 0) && (actions.size() == 0) && hasActions) { throw new InvalidWorkflowDescriptorException("Step '" + name + "' actions element must contain at least one action or common-action"); } | public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { Object o = iter.next(); try { Integer act... | |
if (actions.size() > 0) { | if (actions.size() > 0 || commonActions.size()>0) { | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.print("<step id=\"" + getId() + "\""); if ((name != null) && (name.length() > 0)) { out.print(" name=\"" + name + "\""); } out.println(">"); if (permissions.size() > 0) { ... |
if (_rootModuleConf != null) { | if (_rootModuleConf != null && !_rootModuleConf.equals(rootModuleConf)) { | public void setRootModuleConf(String rootModuleConf) { if (_rootModuleConf != null) { _confsToFetch.clear(); // we change of root module conf => we discard all confs to fetch } if (rootModuleConf != null && rootModuleConf.equals(_rootModuleConf)) { _selected.put(new Module... |
logger = Logger.getLogger( "plumbing.init" ); Handler handler = new ConsoleHandler(); handler.setLevel( Level.INFO ); logger.addHandler( handler ); | String val = System.getProperty("show-config"); logLevel = Level.INFO; if ( val != null ) { if ( "ALL".equals(val)) logLevel = Level.ALL; if ( "CONFIG".equals(val)) logLevel = Level.CONFIG; if ( "FINE".equals(val)) logLevel = Level.FINE; if ( "FINER".equals(val)) logLevel = Level.FINER; if ( "FINEST".equals(val)) logLe... | private Configuration() { // We need to create our logger with a separate ConsoleHandler // because the regular one is initialized using the Configuration // class--unfortunately, this means we can't control the output // without recompiling. logger = Logger.getLogger( "plumbing.i... |
logger.info( "Configuration loaded from " + SF_FILE_NAME ); | info( "Configuration loaded from " + SF_FILE_NAME ); | private void loadDefaultProperties() { try { InputStream readStream = GeneralUtil.openStreamFromClasspath( SF_FILE_NAME ); if ( readStream == null ) { throw new XRRuntimeException( "No configuration files found in classpath using URL: " + SF_FILE_NAME ); } else... |
String override = System.getProperty( "xr-props" ); if ( override != null ) { logger.fine( "Configuration override file specified as " + override + ", looking for it." ); InputStream readStream = GeneralUtil.openStreamFromClasspath( override ); if ( readStream == null ) { logger.warning( "Could not find override proper... | String overrideName = System.getProperty( "user.home" ) + File.separator + ".flyingsaucer/local.xhtmlrenderer.conf"; File f = new File(overrideName); if ( f.exists() ) { fine("Found local config override file " + f.getAbsolutePath()); Properties temp = new Properties(); try { InputStream readStream = new BufferedInput... | private void loadOverrideProperties() { String override = System.getProperty( "xr-props" ); if ( override != null ) { logger.fine( "Configuration override file specified as " + override + ", looking for it." ); InputStream readStream = GeneralUtil.openStreamFromClasspath( overrid... |
} else { Properties temp = new Properties(); try { temp.load( readStream ); } catch ( IOException iex ) { logger.log( Level.WARNING, "Error while loading override properties file; skipping.", iex ); return; | } Enumeration elem = this.properties.keys(); int cnt = 0; while ( elem.hasMoreElements() ) { String key = (String)elem.nextElement(); String val = temp.getProperty( key ); if ( val != null ) { this.properties.setProperty( key, val ); finer( " " + key + " -> " + val ); cnt++; | private void loadOverrideProperties() { String override = System.getProperty( "xr-props" ); if ( override != null ) { logger.fine( "Configuration override file specified as " + override + ", looking for it." ); InputStream readStream = GeneralUtil.openStreamFromClasspath( overrid... |
Enumeration elem = this.properties.keys(); int cnt = 0; while ( elem.hasMoreElements() ) { String key = (String)elem.nextElement(); String val = temp.getProperty( key ); if ( val != null ) { this.properties.setProperty( key, val ); logger.finer( " " + key + " -> " + val ); cnt++; } } logger.finer( "Configuration: " + ... | private void loadOverrideProperties() { String override = System.getProperty( "xr-props" ); if ( override != null ) { logger.fine( "Configuration override file specified as " + override + ", looking for it." ); InputStream readStream = GeneralUtil.openStreamFromClasspath( overrid... | |
finer( "Configuration: " + cnt + " properties overridden from override properties file." ); | private void loadOverrideProperties() { String override = System.getProperty( "xr-props" ); if ( override != null ) { logger.fine( "Configuration override file specified as " + override + ", looking for it." ); InputStream readStream = GeneralUtil.openStreamFromClasspath( overrid... | |
logger.fine( "Overriding loaded configuration from System properties." ); | fine( "Overriding loaded configuration from System properties." ); | private void loadSystemProperties() { Enumeration elem = properties.keys(); logger.fine( "Overriding loaded configuration from System properties." ); int cnt = 0; while ( elem.hasMoreElements() ) { String key = (String)elem.nextElement(); String val = System.getProp... |
logger.finer( " Overrode value for " + key ); | finer( " Overrode value for " + key ); | private void loadSystemProperties() { Enumeration elem = properties.keys(); logger.fine( "Overriding loaded configuration from System properties." ); int cnt = 0; while ( elem.hasMoreElements() ) { String key = (String)elem.nextElement(); String val = System.getProp... |
logger.finer( "Configuration: " + cnt + " properties overridden from System properties." ); | fine( "Configuration: " + cnt + " properties overridden from System properties." ); | private void loadSystemProperties() { Enumeration elem = properties.keys(); logger.fine( "Overriding loaded configuration from System properties." ); int cnt = 0; while ( elem.hasMoreElements() ) { String key = (String)elem.nextElement(); String val = System.getProp... |
logger.finer( "Configuration contains " + properties.size() + " keys." ); logger.finer( "List of configuration properties, after override:" ); | finer( "Configuration contains " + properties.size() + " keys." ); finer( "List of configuration properties, after override:" ); | private void logAfterLoad() { Enumeration elem = properties.keys(); logger.finer( "Configuration contains " + properties.size() + " keys." ); logger.finer( "List of configuration properties, after override:" ); while ( elem.hasMoreElements() ) { String key = (String)elem.nextE... |
logger.finer( " " + key + " = " + val ); | finer( " " + key + " = " + val ); | private void logAfterLoad() { Enumeration elem = properties.keys(); logger.finer( "Configuration contains " + properties.size() + " keys." ); logger.finer( "List of configuration properties, after override:" ); while ( elem.hasMoreElements() ) { String key = (String)elem.nextE... |
logger.finer( "Properties list complete." ); | finer( "Properties list complete." ); | private void logAfterLoad() { Enumeration elem = properties.keys(); logger.finer( "Configuration contains " + properties.size() + " keys." ); logger.finer( "List of configuration properties, after override:" ); while ( elem.hasMoreElements() ) { String key = (String)elem.nextE... |
conf.logger.warning( "CONFIGURATION: no value found for key " + key ); | conf.warning( "CONFIGURATION: no value found for key " + key ); | public static String valueFor( String key ) { Configuration conf = instance(); String val = conf.properties.getProperty( key ); if ( val == null ) { conf.logger.warning( "CONFIGURATION: no value found for key " + key ); } return val; } |
return new InflaterInputStream(inp, new Inflater(true)); | final Inflater inf = new Inflater(true); final int sz = (int) entry.getSize(); return new InflaterInputStream(inp, inf) { public int available() throws IOException { if (sz == -1) return super.available(); if (super.available() != 0) return sz - inf.getTotalOut(); return 0; } }; | public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; PartialInputStream inp = new PartialInputStream(raf, 1024); inp.s... |
public final void readFully (byte[] buffer, int offset, int count) throws IOException | public final void readFully (byte[] buffer) throws IOException | public final void readFully (byte[] buffer, int offset, int count) throws IOException { in.readFully (buffer, offset, count); } |
in.readFully (buffer, offset, count); | in.readFully(buffer); | public final void readFully (byte[] buffer, int offset, int count) throws IOException { in.readFully (buffer, offset, count); } |
this (new File(fileName), mode); | int fdmode; if (mode.equals("r")) fdmode = FileChannelImpl.READ; else if (mode.equals("rw")) fdmode = FileChannelImpl.READ | FileChannelImpl.WRITE; else if (mode.equals("rws")) { fdmode = (FileChannelImpl.READ | FileChannelImpl.WRITE | FileChannelImpl.SYNC); } else if (mode.equals("rwd")) { fdmode = (FileChannelImpl.RE... | public RandomAccessFile (String fileName, String mode) throws FileNotFoundException { this (new File(fileName), mode); } |
Node child = (Node) children.item(i); | Node child = children.item(i); | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... |
WorkflowDescriptor workflowDescriptor = (WorkflowDescriptor) (getParent()); | WorkflowDescriptor workflowDescriptor = (WorkflowDescriptor)getParent(); | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ... |
if ((commonActions.size() == 0) && (actions.size() == 0) && hasActions) { | if (commonActions.size() == 0 && actions.size() == 0 && hasActions) { | public void validate() throws InvalidWorkflowDescriptorException { if ((commonActions.size() == 0) && (actions.size() == 0) && hasActions) { throw new InvalidWorkflowDescriptorException("Step '" + name + "' actions element must contain at least one action or common-action"); } if (ge... |
if ((name != null) && (name.length() > 0)) { | if (name != null && name.length() > 0) { | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.print("<step id=\"" + getId() + "\""); if ((name != null) && (name.length() > 0)) { out.print(" name=\"" + name + "\""); } out.println(">"); Iterator iter = metaAttributes... |
if ((actions.size() > 0) || (commonActions.size() > 0)) { | if (actions.size() > 0 || commonActions.size() > 0) { | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.print("<step id=\"" + getId() + "\""); if ((name != null) && (name.length() > 0)) { out.print(" name=\"" + name + "\""); } out.println(">"); Iterator iter = metaAttributes... |
pm.resetLoadedStatus(channel.getChannelID()); | public void load() throws Exception { if (trace) { log.trace(this + " loading channel state"); } synchronized (refLock) { refsInStorage = pm.getNumberOfUnloadedReferences(channel.getChannelID()); loadFromOrderingValue = pm.getMinOrdering(channel.getChannelID()); ... | |
Box box = BoxFinder.findElementBox(panel.getRootBox(),evt.getX(),evt.getY(),null); | Box box = BoxFinder.findElementBox2(panel.getRootBox(),evt.getX(),evt.getY(),null); | public Box findBox(MouseEvent evt) { //Box box = panel.findElementBox(evt.getX(), evt.getY()); Box box = BoxFinder.findElementBox(panel.getRootBox(),evt.getX(),evt.getY(),null); if (box == null) return null; if (box instanceof LineBox) return null; return box; } |
public Object getContent(Context c) { | public List getContent(Context c) { | public Object getContent(Context c) { return ContentUtil.getInlineContentList(_elem, c); } |
this.lvTable = lvTable; | this.lvTable = (lvTable != null) ? lvTable : VmLocalVariableTable.EMPTY; | public VmByteCode(VmMethod method, ByteBuffer bytecode, int noLocals, int maxStack, VmInterpretedExceptionHandler[] eTable, VmLineNumberMap lnTable, VmLocalVariableTable lvTable) { this.method = method; this.cp = method.getDeclaringClass().getCP(); if (Vm.isWritingImage()) { final byte[] buildBytec... |
ServerManagement.start("all", 0); ServerManagement.start("all", 1); ServerManagement.start("all", 2); | ServerManagement.start(0, "all"); ServerManagement.start(1, "all"); ServerManagement.start(2, "all"); | public void testCleanLeave() throws Exception { try { // Start with a 3 node cluster ServerManagement.start("all", 0); ServerManagement.start("all", 1); ServerManagement.start("all", 2); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals... |
ServerManagement.start("all", 0); | ServerManagement.start(0, "all"); | public void testCleanLeave() throws Exception { try { // Start with a 3 node cluster ServerManagement.start("all", 0); ServerManagement.start("all", 1); ServerManagement.start("all", 2); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals... |
ServerManagement.start("all", 2); | ServerManagement.start(1, "all"); | public void testCleanLeave() throws Exception { try { // Start with a 3 node cluster ServerManagement.start("all", 0); ServerManagement.start("all", 1); ServerManagement.start("all", 2); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals... |
ServerManagement.start("all", 0); ServerManagement.start("all", 1); | ServerManagement.start(0, "all"); ServerManagement.start(1, "all"); | public void testDirtyLeaveOneNode() throws Exception { ClusterEventNotificationListener clusterEvent = new ClusterEventNotificationListener(); ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice"); try { // Start with a 2 node cluster ServerManag... |
ServerManagement.start("all", 0); ServerManagement.start("all", 1); ServerManagement.start("all", 2); | ServerManagement.start(0, "all"); ServerManagement.start(1, "all"); ServerManagement.start(2, "all"); | public void testDirtyLeaveTwoNodes() throws Exception { ClusterEventNotificationListener clusterEvent = new ClusterEventNotificationListener(); ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice"); try { // Start with a 3 node cluster ServerMana... |
ServerManagement.start("all", 0); | ServerManagement.start(0, "all"); | public void testJoinNotification() throws Exception { ClusterEventNotificationListener listener = new ClusterEventNotificationListener(); ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice"); try { ServerManagement.start("all", 0); log.info("Ser... |
ServerManagement.start("all", 1); | ServerManagement.start(1, "all"); | public void testJoinNotification() throws Exception { ClusterEventNotificationListener listener = new ClusterEventNotificationListener(); ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice"); try { ServerManagement.start("all", 0); log.info("Ser... |
ServerManagement.start("all", 0); | ServerManagement.start(0, "all"); | public void testOneNodeCluster() throws Exception { try { ServerManagement.start("all", 0); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals(1, view.size()); assertTrue(view.contains(new Integer(0))); } finally { ServerManagemen... |
ServerManagement.start("all", 0); | ServerManagement.start(0, "all"); | public void testSpawnServer() throws Exception { ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice"); ClusterEventNotificationListener clusterEvent = new ClusterEventNotificationListener(); try { // Start with a 1 node cluster ServerManagement.... |
ServerManagement.spawn(10); ServerManagement.start("all", 10); | ServerManagement.start(10, "all"); | public void testSpawnServer() throws Exception { ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice"); ClusterEventNotificationListener clusterEvent = new ClusterEventNotificationListener(); try { // Start with a 1 node cluster ServerManagement.... |
ServerManagement.start("all", 0); | ServerManagement.start(0, "all"); | public void testThreeNodesCluster() throws Exception { try { ServerManagement.start("all", 0); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals(1, view.size()); assertTrue(view.contains(new Integer(0))); ServerManagement.start("all", 1); ... |
ServerManagement.start("all", 1); | ServerManagement.start(1, "all"); | public void testThreeNodesCluster() throws Exception { try { ServerManagement.start("all", 0); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals(1, view.size()); assertTrue(view.contains(new Integer(0))); ServerManagement.start("all", 1); ... |
ServerManagement.start("all", 3); | ServerManagement.start(3, "all"); | public void testThreeNodesCluster() throws Exception { try { ServerManagement.start("all", 0); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals(1, view.size()); assertTrue(view.contains(new Integer(0))); ServerManagement.start("all", 1); ... |
ServerManagement.start("all", 0); | ServerManagement.start(0, "all"); | public void testTwoNodesCluster() throws Exception { try { ServerManagement.start("all", 0); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals(1, view.size()); assertTrue(view.contains(new Integer(0))); ServerManagement.start("all", 1); ... |
ServerManagement.start("all", 1); | ServerManagement.start(1, "all"); | public void testTwoNodesCluster() throws Exception { try { ServerManagement.start("all", 0); Set view = ServerManagement.getServer(0).getNodeIDView(); assertEquals(1, view.size()); assertTrue(view.contains(new Integer(0))); ServerManagement.start("all", 1); ... |
Mapper childMapper = (Mapper) children.get(key); | Mapper childMapper = (Mapper) children.get(key.toString()); | Mapper mapChild(Object e) { //Mapper childMapper = new Mapper(); java.util.List childAxes = new ArrayList(); java.util.HashMap pseudoSelectors = new java.util.HashMap(); java.util.List mappedSelectors = new java.util.LinkedList(); StringBuffer key = new Str... |
children.put(key, childMapper); | children.put(key.toString(), childMapper); | Mapper mapChild(Object e) { //Mapper childMapper = new Mapper(); java.util.List childAxes = new ArrayList(); java.util.HashMap pseudoSelectors = new java.util.HashMap(); java.util.List mappedSelectors = new java.util.LinkedList(); StringBuffer key = new Str... |
synchronized(Toolkit.class){ instance = null; } | public void close() { unregister(); //this could kill threads, etc. But let's save 'em for if this instance // comes up again. // System.err.println( "In close(), calling clear" ); // pause(); // clear(); // System.err.println( "Stopping S... | |
ConsoleManager conMgr = (ConsoleManager) InitialNaming .lookup(ConsoleManager.NAME); | final ShellManager sm = InitialNaming.lookup(ShellManager.NAME); final ConsoleManager conMgr = sm.getCurrentShell().getConsole().getManager(); | private static Toolkit createInstance() { try { ConsoleManager conMgr = (ConsoleManager) InitialNaming .lookup(ConsoleManager.NAME); final TextConsole console = (TextConsole) conMgr .createConsole("charva", ConsoleManager.CreateOptions.TEXT); ... |
instance.unregister(); | getDefaultToolkit().unregister(); | private static Toolkit createInstance() { try { ConsoleManager conMgr = (ConsoleManager) InitialNaming .lookup(ConsoleManager.NAME); final TextConsole console = (TextConsole) conMgr .createConsole("charva", ConsoleManager.CreateOptions.TEXT); ... |
Toolkit tk = new Toolkit(console, conMgr); return tk; | return new Toolkit(console, conMgr); | private static Toolkit createInstance() { try { ConsoleManager conMgr = (ConsoleManager) InitialNaming .lookup(ConsoleManager.NAME); final TextConsole console = (TextConsole) conMgr .createConsole("charva", ConsoleManager.CreateOptions.TEXT); ... |
instance.unregister(); | getDefaultToolkit().unregister(); | public void keyPressed(KeyboardEvent event) { if (event.isControlDown() && event.getKeyChar() == 'z') { System.err .println("got ctrl-z, unregistering Toolkit."); //maybe this will help to debug the finite-si... |
public static Toolkit getDefaultToolkit() { | public static synchronized Toolkit getDefaultToolkit() { | public static Toolkit getDefaultToolkit() { if (instance == null) { instance = createInstance(); } return instance; } |
Box box = panel.findBox(evt.getX(), evt.getY()); | Box box = BoxFinder.findElementBox2(panel.getRootBox(),evt.getX(),evt.getY(),null); | public void mouseMoved(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); setCursor(box); } |
queues[0] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[0] = office1.bindClusteredQueue("sub1", "topic1", queues[0]); | queues[0] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[0] = office1.bindClusteredQueue("sub1", "topic1", null, queues[0]); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[1] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[1] = office1.bindClusteredQueue("sub2", "topic1", queues[1]); | queues[1] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[1] = office1.bindClusteredQueue("sub2", "topic1", null, queues[1]); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[2] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[2] = office2.bindClusteredQueue("sub3", "topic1", queues[2]); | queues[2] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[2] = office2.bindClusteredQueue("sub3", "topic1", null, queues[2]); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[3] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[3] = office2.bindClusteredQueue("sub4", "topic1", queues[3]); | queues[3] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[3] = office2.bindClusteredQueue("sub4", "topic1", null, queues[3]); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[4] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[4] = office2.bindClusteredQueue("sub5", "topic1", queues[4]); | queues[4] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[4] = office2.bindClusteredQueue("sub5", "topic1", null, queues[4]); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[5] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[5] = office1.bindClusteredQueue("sub6", "topic1", queues[5]); | queues[5] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[5] = office1.bindClusteredQueue("sub6", "topic1", null, queues[5]); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[6] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[6] = office1.bindClusteredQueue("sub7", "topic1", queues[6]); | queues[6] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[6] = office1.bindClusteredQueue("sub7", "topic1", null, queues[6]); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[7] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[7] = office1.bindClusteredQueue("sub8", "topic1", queues[7]); | queues[7] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[7] = office1.bindClusteredQueue("sub8", "topic1", null, queues[7]); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.