rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
protected synchronized Client getClient() throws Exception
protected Client getClient()
protected synchronized Client getClient() throws Exception { if (client == null) { //we force this client to use a different invoker by adding a dummy parameter on the invoker locator //we do this otherwise the pinger will get started with this client //since remoting only provide...
if (client == null) { InvokerLocator locator = new InvokerLocator(serverLocatorURI + "&dummy=xyz"); Map config = new HashMap(); client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM, config); client.connect(); } return client;
return null;
protected synchronized Client getClient() throws Exception { if (client == null) { //we force this client to use a different invoker by adding a dummy parameter on the invoker locator //we do this otherwise the pinger will get started with this client //since remoting only provide...
public Object invoke(Invocation invocation) throws Throwable
public synchronized Object invoke(Invocation invocation) throws Throwable
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } String methodName = ((MethodInvocation)invocation).getMethod().getName(); Object ret = null; ...
JMSRemotingConnection connection = new JMSRemotingConnection(serverLocatorURI);
JMSRemotingConnection connection = getRemotingConnection(); nextConnection = null;
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } String methodName = ((MethodInvocation)invocation).getMethod().getName(); Object ret = null; ...
getClient().invoke(new MessagingMarshallable(v, invocation), null);
cl.invoke(new MessagingMarshallable(v, invocation), null);
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } String methodName = ((MethodInvocation)invocation).getMethod().getName(); Object ret = null; ...
throws NotImplementedException
public void stateChanged(ChangeEvent event) { // TODO: What should be done here, if anything? }
super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA");
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates");
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Sign...
put("CertificateFactory.X.509", gnu.java.security.provider.X509CertificateFactory.class.getName()); put("Alg.Alias.CertificateFactory.X509", "X.509");
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Sign...
Delivery del = new SimpleDelivery(this, ref); acknowledgeInternal(del, tx, true, true);
del.acknowledge(tx);
private void pullMessages() throws Throwable { RemoteQueueStub theQueue; int thePullSize; synchronized (pullLock) { if (pullQueue == null) { return; } theQueue = pullQueue; thePullSize = pullSize; } Transa...
if(getComponentOrientation().isLeftToRight()) ftf.setHorizontalAlignment(JTextField.RIGHT); else ftf.setHorizontalAlignment(JTextField.LEFT);
public DefaultEditor(JSpinner spinner) { super(); setLayout(this); this.spinner = spinner; ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); ftf.addPropertyChangeListener(this); spinner.addChangeListener(this); }
if ( block.attachment != null && block.attachment.equals( "fixed" ) ) {
if ( block.attachment == IdentValue.FIXED ) {
public static void paint( Context c, Box block ) { // don't draw if the backgrounds are turned off if ( !Configuration.isTrue( "xr.renderer.draw.backgrounds", true ) ) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.get...
int iw = block.background_image.getWidth( null ); int ih = block.background_image.getHeight( null ); xoff += (int)( (double)( back_width - iw ) * (double)( (double)block.background_position_horizontal / (double)100 ) ); yoff -= (int)( (double)( back_height - ih ) * (double)( (double)block.background_position_vertica...
xoff += block.background_position_horizontal; yoff -= block.background_position_vertical;
public static void paint( Context c, Box block ) { // don't draw if the backgrounds are turned off if ( !Configuration.isTrue( "xr.renderer.draw.backgrounds", true ) ) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.get...
protected int getPCOffset(Address sf) { return PC_OFFSET;
protected final int getPCOffset(Address sf) { return 0xFFFFFFFF;
protected int getPCOffset(Address sf) { return PC_OFFSET; }
if (log.isTraceEnabled()) { log.trace("Addding ack for xid:" + xid); }
if (trace) { log.trace("Addding ack for xid:" + xid); }
public void addAck(Object xid, AckInfo ackInfo) throws JMSException { if (log.isTraceEnabled()) { log.trace("Addding ack for xid:" + xid); } TxState tx = getTx(xid); if (tx == null) { throw new JMSException("There is no transaction with id:" + xid); } tx.getAcks().add(ackInfo)...
if (log.isTraceEnabled()) { log.trace("Addding message for xid:" + xid); }
if (trace) { log.trace("Addding message for xid:" + xid); }
public void addMessage(Object xid, Message m) { if (log.isTraceEnabled()) { log.trace("Addding message for xid:" + xid); } TxState tx = getTx(xid); tx.getMessages().add(m); }
if (log.isTraceEnabled()) { log.trace("Commiting xid=" + xid + ", onePhase=" + onePhase); }
if (trace) { log.trace("Commiting xid=" + xid + ", onePhase=" + onePhase); }
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Commiting xid=" + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); if (onePhase) { //Invalid xid if (tx == null)...
if (log.isTraceEnabled()) { log.trace("Commiting local xid=" + xid); }
if (trace) { log.trace("Commiting local xid=" + xid); }
public void commitLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException { if (log.isTraceEnabled()) { log.trace("Commiting local xid=" + xid); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { final String msg = "Cannot find transaction wi...
if (log.isTraceEnabled()) { log.trace("Converting tx anonXid=" + anonXid + ", xid=" + xid); }
if (trace) { log.trace("Converting tx anonXid=" + anonXid + ", xid=" + xid); }
public Xid convertTx(LocalTxXid anonXid, Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Converting tx anonXid=" + anonXid + ", xid=" + xid); } TxState state = getTx(anonXid); if (state == null) { log.error("Cannot find transaction with xid:" + anonXid); ...
if (log.isTraceEnabled()) { log.trace("Ending xid=" + xid + ", success=" + success); }
if (trace) { log.trace("Ending xid=" + xid + ", success=" + success); }
public void endTx(Xid xid, boolean success) throws XAException { if (log.isTraceEnabled()) { log.trace("Ending xid=" + xid + ", success=" + success); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new...
if (log.isTraceEnabled()) { log.trace("Getting tx for tx id:" + xid); }
if (trace) { log.trace("Getting tx for tx id:" + xid); }
public TxState getTx(Object xid) { if (log.isTraceEnabled()) { log.trace("Getting tx for tx id:" + xid); } TxState tx = (TxState) transactions.get(xid); return tx; }
if (log.isTraceEnabled()) { log.trace("Joining tx xid=" + xid); }
if (trace) { log.trace("Joining tx xid=" + xid); }
public Xid joinTx(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Joining tx xid=" + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); ...
if (log.isTraceEnabled()) { log.trace("Preparing xid=" + xid); }
if (trace) { log.trace("Preparing xid=" + xid); }
public int prepare(Xid xid, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Preparing xid=" + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAExce...
if (log.isTraceEnabled()) { log.trace("Calling recover " + flags); }
if (trace) { log.trace("Calling recover " + flags); }
public Xid[] recover(int flags, ConnectionDelegate conn) throws XAException { if (log.isTraceEnabled()) { log.trace("Calling recover " + flags); } if (flags == XAResource.TMSTARTRSCAN) { return conn.getPreparedTransactions(); } else { return new Xid[0]; } ...
if (log.isTraceEnabled()) { log.trace("Resuming tx xid=" + xid); }
if (trace) { log.trace("Resuming tx xid=" + xid); }
public Xid resumeTx(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Resuming tx xid=" + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA)...
if (log.isTraceEnabled()) { log.trace("Rolling back xid: " + xid); }
if (trace) { log.trace("Rolling back xid: " + xid); }
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); TransactionRequest request = null; //We don't need to send the messages to the server on a r...
if (log.isTraceEnabled()) { log.trace("Rolling back local xid: " + xid); }
if (trace) { log.trace("Rolling back local xid: " + xid); }
public void rollbackLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException { if (log.isTraceEnabled()) { log.trace("Rolling back local xid: " + xid); } TxState tx = removeTx(xid); if (tx == null) { final String msg = "Cannot find transaction with xid:" + xid; l...
if (log.isTraceEnabled()) { log.trace("Starting tx xid=" + xid); }
if (trace) { log.trace("Starting tx xid=" + xid); }
public Xid startTx(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Starting tx xid=" + xid); } TxState state = getTx(xid); if (state != null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_DUPID); ...
if (log.isTraceEnabled()) { log.trace("Suppending tx xid=" + xid); }
if (trace) { log.trace("Suppending tx xid=" + xid); }
public Xid suspendTx(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Suppending tx xid=" + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); ...
FontSpecification fontSpec = style.getFont(c);
private static InlineBoxMeasurements calculateInlineMeasurements(LayoutContext c, InlineBox iB, VerticalAlignContext vaContext) { LineMetrics lm = iB.getStyle().getLineMetrics(c); CalculatedStyle style = iB.getStyle().getCalculatedSty...
int halfLeading = Math.round((lineHeight - fontSpec.size) / 2);
int halfLeading = Math.round((lineHeight - (lm.getAscent() + lm.getDescent())) / 2);
private static InlineBoxMeasurements calculateInlineMeasurements(LayoutContext c, InlineBox iB, VerticalAlignContext vaContext) { LineMetrics lm = iB.getStyle().getLineMetrics(c); CalculatedStyle style = iB.getStyle().getCalculatedSty...
FontSpecification fontSpec = style.getCalculatedStyle().getFont(c);
private static InlineBoxMeasurements getInitialMeasurements( LayoutContext c, Box container, LineMetrics strutLM) { Style style = container.getStyle(); float lineHeight = style.getCalculatedStyle().getLineHeight(c); FontSpecification fontSpec = style.getCalculatedStyle().getFont(c); ...
int halfLeading = Math.round((lineHeight - fontSpec.size) / 2);
int halfLeading = Math.round((lineHeight - (strutLM.getAscent() + strutLM.getDescent())) / 2);
private static InlineBoxMeasurements getInitialMeasurements( LayoutContext c, Box container, LineMetrics strutLM) { Style style = container.getStyle(); float lineHeight = style.getCalculatedStyle().getLineHeight(c); FontSpecification fontSpec = style.getCalculatedStyle().getFont(c); ...
catch (Exception e)
catch (Throwable e)
public void deInit() { try { if (subName != null) { sess.unsubscribe(subName); } sess.close(); } catch (Exception e) { log.error("!!!!!!!!!!!!!!!!!!Close failed", e); ...
log.error("!!!!!!!!!!!!!!!!!!Close failed", e);
log.error("deInit failed", e); throwable = e;
public void deInit() { try { if (subName != null) { sess.unsubscribe(subName); } sess.close(); } catch (Exception e) { log.error("!!!!!!!!!!!!!!!!!!Close failed", e); ...
catch (Exception e)
catch (Throwable e)
public void init() { try { Connection conn = getNextConnection(); if (subName != null) { try { conn.setClientID(clientID); } catch (Exception e) { ...
log.error("Receiver failed", e);
log.error("Init failed", e); throwable = e;
public void init() { try { Connection conn = getNextConnection(); if (subName != null) { try { conn.setClientID(clientID); } catch (Exception e) { ...
catch (Exception e)
catch (Throwable e)
public void run() { try { int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); if (m != null) { ...
log.error("!!!!!!!!!!!!!!!Receiver failed", e);
log.error("Receiver failed", e); throwable = e;
public void run() { try { int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); if (m != null) { ...
tx.addPostCommitTask(new PostAcknowledgeCommitTask(touple));
tx.addCallback(new PostAcknowledgeCommitTask(touple));
public void acknowledge(Routable r, Transaction tx) throws Throwable { Object[] touple = null; SingleReceiverDelivery d = null; for (Iterator i = messages.iterator(); i.hasNext(); ) { Object[] o = (Object[])i.next(); Message m = (Message)o[0]; if (m == r) { ...
processRollback(request.getState());
if (request.getState() != null) { processRollback(request.getState()); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
String command = e.getActionCommand();
String command = e.getActionCommand().toLowerCase();
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if(command.equals("permissionadd")) { add(); } else if(command.equals("permissionremove")) { remove(); } else if(command.equals("permissionedit")) { modify(); } else if(command.equals("...
public void addNamingListener(Name target, String filter, SearchControls ctls, NamingListener l) throws NamingException;
void addNamingListener(Name target, String filter, SearchControls ctls, NamingListener l) throws NamingException;
public void addNamingListener(Name target, String filter, SearchControls ctls, NamingListener l) throws NamingException;
client.disconnect();
public synchronized Object invoke(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (trace) { log.trace("invoking " + methodName + " on server"); } SimpleMetaData md = mi.getMetaData(); md.addMetaD...
private CSSName(String propName) {
private CSSName(String propName, boolean isPrimitive) {
private CSSName(String propName) { try { this.propName = propName; this.assignedID = CSSName.maxAssigned++; } catch (Exception ex) { ex.printStackTrace(); } }
this.assignedID = CSSName.maxAssigned++;
this.setAssignedID(CSSName.maxAssigned++); this.isPrimitive = isPrimitive;
private CSSName(String propName) { try { this.propName = propName; this.assignedID = CSSName.maxAssigned++; } catch (Exception ex) { ex.printStackTrace(); } }
CSSName cssName = new CSSName(propName);
CSSName cssName = new CSSName(propName, isPrimitive);
private final static synchronized CSSName addProperty(String propName, boolean isPrimitive) { if (ALL_PROPERTY_NAMES == null) { ALL_PROPERTY_NAMES = new TreeMap(); } if ( ALL_PRIMITIVE_PROPERTY_NAMES == null ) { ALL_PRIMITIVE_PROPERTY_NAMES = new TreeMap(); } ...
ServerManagement.deInit();
public void tearDown() throws Exception { super.tearDown(); ServerManagement.deInit(); }
this, selector, noLocal);
this, selector, noLocal, jmsDestination);
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
Box box = panel.findBox(evt.getX(), evt.getY());
Box box = panel.findElementBox(evt.getX(), evt.getY());
private Box findBox(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) return null; if (box instanceof LineBox) return null; return box; }
boolean restyled = panel.getContext().css.wasHoverRestyled(ib.getRealElement()); CalculatedStyle style = panel.getContext().css.getStyle(ib.getRealElement()); if (restyled) { Layout lt = panel.getContext().getLayout(ib.getRealElement()); if (lt instanceof InlineLayout) { ((InlineLayout) lt).restyle(panel.getContex...
if(ib.isInlineElement() || !(ib instanceof InlineBox)) { boolean restyled = panel.getContext().css.wasHoverRestyled(ib.getRealElement()); CalculatedStyle style = panel.getContext().css.getStyle(ib.getRealElement()); if (restyled) { Layout lt = panel.getContext().getLayout(ib.getRealElement()); if (lt instanceof In...
private void restyle(Box ib) { if (prev == ib) { return; } if (ib == null) panel.hovered_element = null; else panel.hovered_element = ib.getRealElement(); // if moved out of the old block then unstyle it if (prev != null) { boolea...
topicProducer.send(topic2, m1);
anonProducer.send(topic2, m1);
public void testSendDestination() throws Exception { final Message m1 = producerSession.createMessage(); consumerConnection.start(); new Thread(new Runnable() { public void run() { try { // this is needed to make sure the main thread has enoug...
topicProducer.send(topic2, m1);
anonProducer.send(topic2, m1);
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicProducer.send(topic2, m1); } catch(Exception e) { log.error(e); ...
public SenderJob(Element e) throws ConfigurationException
public SenderJob()
public SenderJob(Element e) throws ConfigurationException { super(e); }
super(e);
public SenderJob(Element e) throws ConfigurationException { super(e); }
if (log.isTraceEnabled()) { log.trace("importing xml"); }
public void importXML(Element element) throws ConfigurationException { super.importXML(element); this.anon = MetadataUtils.getOptionalChildBooleanContent(element, "anonymous-producer", false); this.msgSize = Integer.parseInt(MetadataUtils.getUniqueChildContent(element, "message-size")); ...
setOpaque(false);
public JMenu() { super(); }
private final void setEnabled(boolean on) { final int mode = bus.getMode(); int newMode = mode; log.debug("Old mode 0x" + NumberUtils.hex(mode, 2)); if (on) { newMode |= MODE_INT; newMode &= ~MODE_DISABLE_KBD; } else { newMode &= ~MODE_INT; newMode |= MODE_DISABLE_KBD; } if (mode != newMode) { bus.setMode(newMode); lo...
private final void setEnabled(boolean on) throws DeviceException { log.debug("Old mode 0x" + NumberUtils.hex(bus.getMode(), 2)); bus.setKeyboardEnabled(on); log.debug("New mode 0x" + NumberUtils.hex(bus.getMode(), 2));
private final void setEnabled(boolean on) { // Set the mode final int mode = bus.getMode(); int newMode = mode; log.debug("Old mode 0x" + NumberUtils.hex(mode, 2)); if (on) { newMode |= MODE_INT; newMode &= ~MODE_DISABLE_KBD; } else { newMode &= ~MODE_INT; newMode |= MODE_DISABLE_KBD; } if (mode != new...
setEnabled(true);
try { setEnabled(true); } catch (DeviceException ex) { throw new DriverException("Cannot enable keyboard", ex); }
protected synchronized void startDevice() throws DriverException { // Claim the irq irq = bus.claimResources(getDevice(), KB_IRQ); // Set the mode setEnabled(true); // Start the rest super.startDevice(); }
bus.processQueues();
protected synchronized void startDevice() throws DriverException { // Claim the irq irq = bus.claimResources(getDevice(), KB_IRQ); // Set the mode setEnabled(true); // Start the rest super.startDevice(); }
setEnabled(false);
try { setEnabled(false); } catch (DeviceException ex) { log.debug("Error disabling keyboard", ex); }
protected synchronized void stopDevice() throws DriverException { // Set the mode setEnabled(false); // Stop everything super.stopDevice(); irq.release(); irq = null; bus.releaseResources(); }
if (log.isTraceEnabled()) { log.trace("Creating using default constructor"); }
if (trace) { log.trace("Creating using default constructor"); }
public WeakMessageReference() { if (log.isTraceEnabled()) { log.trace("Creating using default constructor"); } }
if (log.isTraceEnabled()) { log.trace(this + ": getting message from reference " + ref); }
if (trace) { log.trace(this + ": getting message from reference " + ref); }
public Message getMessage() { if (log.isTraceEnabled()) { log.trace(this + ": getting message from reference " + ref); } try { Message m = (Message)ref.get(); if (m == null) { m = ms.retrieveMessage((String)messageID); ref =...
Rectangle oldclip = (Rectangle)c.getGraphics().getClip(); Rectangle box_rect = new Rectangle(box.x,box.y,box.width,box.height); if(oldclip.intersects(box_rect)) { layout.paint( c, box );
if(c.getGraphics().getClip() != null) { Rectangle oldclip = (Rectangle)c.getGraphics().getClip(); Rectangle box_rect = new Rectangle(box.x,box.y,box.width,box.height); if(oldclip.intersects(box_rect)) { layout.paint( c, box ); } return;
public void paintChild( Context c, Box box, Renderer layout ) { if(Configuration.isTrue("xr.renderer.viewport-repaint",false)) { Rectangle oldclip = (Rectangle)c.getGraphics().getClip(); Rectangle box_rect = new Rectangle(box.x,box.y,box.width,box.height); if(oldclip.intersec...
} else { layout.paint( c, box );
public void paintChild( Context c, Box box, Renderer layout ) { if(Configuration.isTrue("xr.renderer.viewport-repaint",false)) { Rectangle oldclip = (Rectangle)c.getGraphics().getClip(); Rectangle box_rect = new Rectangle(box.x,box.y,box.width,box.height); if(oldclip.intersec...
layout.paint( c, box );
public void paintChild( Context c, Box box, Renderer layout ) { if(Configuration.isTrue("xr.renderer.viewport-repaint",false)) { Rectangle oldclip = (Rectangle)c.getGraphics().getClip(); Rectangle box_rect = new Rectangle(box.x,box.y,box.width,box.height); if(oldclip.intersec...
log.debug(request + " executed successfully");
log.info(delegator + " executed " + request + " successfully");
public Result execute(Request request) throws Exception { log.debug(delegator + " received " + request); // kill requests override the lock, so better know what you're doing if (request instanceof KillRequest) { if (lock.isAcquired()) { log.warn("Executor currently ex...
mainSplitPane = new EmptyBorderSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftSplitPane, new JScrollPane(graphTabs));
mainSplitPane = new EmptyBorderSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftSplitPane, graphTabs);
public WorkflowDesigner(Splash splash) { super(ResourceManager.getString("app.name")); INSTANCE = this; service = new DesignerService(); setJMenuBar(BarFactory.createMenubar(manager, service.getVerb())); splash.setProgress(30); navigator = new WorkspaceNavigator(this); JScrollPane sp = new JScro...
private String createDestination(boolean isQueue, String name, String jndiName) throws Exception
private String createDestination(boolean isQueue, String name, String jndiName, int fullSize, int pageSize, int downCacheSize) throws Exception
private String createDestination(boolean isQueue, String name, String jndiName) throws Exception { // // TODO - THIS IS A TEMPORARY IMPLEMENTATION; WILL BE REPLACED WITH INTEGRATION-CONSISTENT ONE // TODO - if I find a way not using UnifiedClassLoader3 directly, then get rid of // <path ...
MBeanServer mbeanServer = getServer();
private String createDestination(boolean isQueue, String name, String jndiName) throws Exception { // // TODO - THIS IS A TEMPORARY IMPLEMENTATION; WILL BE REPLACED WITH INTEGRATION-CONSISTENT ONE // TODO - if I find a way not using UnifiedClassLoader3 directly, then get rid of // <path ...
Element element = Util.stringToElement(destinationMBeanConfig); ServiceCreator sc = new ServiceCreator(mbeanServer); ClassLoader cl = this.getClass().getClassLoader(); ObjectName loaderObjectName = null; if (cl instanceof UnifiedClassLoader3) { loaderObjectName = ((UnifiedClassLoader3)cl).getObjectName(); } sc.insta...
return createDestinationInternal(destinationMBeanConfig, on, jndiName, fullSize, pageSize, downCacheSize);
private String createDestination(boolean isQueue, String name, String jndiName) throws Exception { // // TODO - THIS IS A TEMPORARY IMPLEMENTATION; WILL BE REPLACED WITH INTEGRATION-CONSISTENT ONE // TODO - if I find a way not using UnifiedClassLoader3 directly, then get rid of // <path ...
return createDestination(true, name, jndiName);
return createDestinationDefault(true, name, jndiName);
public String createQueue(String name, String jndiName) throws Exception { return createDestination(true, name, jndiName); }
return createDestination(false, name, jndiName);
return createDestinationDefault(false, name, jndiName);
public String createTopic(String name, String jndiName) throws Exception { return createDestination(false, name, jndiName); }
mbeanServer.invoke(connectorName, "setLeasePeriod", new Object[] {new Long(CONNECTION_LEASE_PERIOD)}, new String[] {"long"});
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
channelMapper.setPersistenceManager(persistenceManagerDelegate);
public synchronized void startService() throws Exception { if (started) { return; } log.debug(this + " starting"); loadClientAOPConfig(); loadServerAOPConfig(); MBeanServer mbeanServer = getServer(); // Acquire references to plugins. Each plug-in will be accessed dir...
KeyboardManager.getManager().registerJMenuBar(this);
public void addNotify() { // FIXME: Should register this menu bar with the keyboard manager super.addNotify(); }
KeyboardManager.getManager().unregisterJMenuBar(this);
public void removeNotify() { // Must unregister this menu bar with the current keyboard manager. super.removeNotify(); }
assertEquals(dual, rmr.getResolver());
assertEquals(dual, rmr.getArtifactResolver());
public void testResolve() throws Exception { DualResolver dual = new DualResolver(); MockResolver ivyResolver = MockResolver.buildMockResolver("ivy", true, new GregorianCalendar(2005, 1, 20).getTime()); MockResolver artifactResolver = MockResolver.buildMockResolver("artifact", false, new Gregor...
AttributeCondition attr = (AttributeCondition) cond; CombinatorCondition comb = (CombinatorCondition) cond; LangCondition lang = (LangCondition) cond; PositionalCondition pos = (PositionalCondition) cond;
private void addConditions(net.homelinux.tobe.css.Selector s, Condition cond) { AttributeCondition attr = (AttributeCondition) cond; CombinatorCondition comb = (CombinatorCondition) cond; LangCondition lang = (LangCondition) cond; PositionalCondition pos =...
attr = (AttributeCondition) cond;
private void addConditions(net.homelinux.tobe.css.Selector s, Condition cond) { AttributeCondition attr = (AttributeCondition) cond; CombinatorCondition comb = (CombinatorCondition) cond; LangCondition lang = (LangCondition) cond; PositionalCondition pos =...
localServer.start("all");
localServer.start("all", true);
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); //Set lease period to 0 --> this should disable leasing so the state won't be cleared up ...
throw new NotYetImplementedException();
} return createBrowser(queue, null);
public QueueBrowser createBrowser(Queue queue) throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_TOPIC_SESSION) throw new IllegalStateException("Cannot create a browser on a TopicSession"); throw new NotYetImplementedException(); }
}
public TemporaryQueue createTemporaryQueue() throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_TOPIC_SESSION) throw new IllegalStateException("Cannot create a temp. queue using a TopicSession"); throw new NotYetImplementedException(); }
VmLocalVariableTable lvTable = null;
VmLocalVariableTable lvTable = VmLocalVariableTable.EMPTY;
private static final VmByteCode readCode(ByteBuffer data, VmType cls, VmCP cp, VmMethod method) { final int maxStack = data.getChar(); final int noLocals = data.getChar(); final int codelength = data.getInt(); final ByteBuffer code = readBytes(data, codelength); // Read...
} else if (VmArray.equals(LocalVariableTableAttrName, attrName)) { lvTable = readLocalVariableTable(data, cp);
private static final VmByteCode readCode(ByteBuffer data, VmType cls, VmCP cp, VmMethod method) { final int maxStack = data.getChar(); final int noLocals = data.getChar(); final int codelength = data.getInt(); final ByteBuffer code = readBytes(data, codelength); // Read...
final VmLocalVariable[] table = new VmLocalVariable[len]; for (int i = 0; i < len; i++) { final char startPc = data.getChar(); final char length = data.getChar(); final String name = cp.getUTF8(data.getChar()).toString(); final String descr = cp.getUTF8(data.getChar()).toString(); final char index = data.getChar(); t...
if (len == 0) { return VmLocalVariableTable.EMPTY; } else { final VmLocalVariable[] table = new VmLocalVariable[len]; for (int i = 0; i < len; i++) { final char startPc = data.getChar(); final char length = data.getChar(); final char nameIdx = data.getChar(); final char descrIdx = data.getChar(); final char index = da...
private static final VmLocalVariableTable readLocalVariableTable(ByteBuffer data, VmCP cp) { final int len = data.getChar(); final VmLocalVariable[] table = new VmLocalVariable[len]; for (int i = 0; i < len; i++) { final char startPc = data.getChar(); final char length = d...
return new VmLocalVariableTable(table);
private static final VmLocalVariableTable readLocalVariableTable(ByteBuffer data, VmCP cp) { final int len = data.getChar(); final VmLocalVariable[] table = new VmLocalVariable[len]; for (int i = 0; i < len; i++) { final char startPc = data.getChar(); final char length = d...
message.incrementDeliveryCount();
public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (...
if (message.getDeliveryCount() > MAX_DELIVERY_ATTEMPTS)
if (reference.getDeliveryCount() > MAX_DELIVERY_ATTEMPTS)
public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (...
NodeList validators = v.getElementsByTagName("validator");
List validators = XMLUtil.getChildElements(v, "validator");
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
for (int k = 0; k < validators.getLength(); k++) { Element validator = (Element) validators.item(k);
for (int k = 0; k < validators.size(); k++) { Element validator = (Element) validators.get(k);
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
NodeList preFunctions = pre.getElementsByTagName("function");
List preFunctions = XMLUtil.getChildElements(pre, "function");
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
for (int k = 0; k < preFunctions.getLength(); k++) { Element preFunction = (Element) preFunctions.item(k);
for (int k = 0; k < preFunctions.size(); k++) { Element preFunction = (Element) preFunctions.get(k);
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
NodeList results = resultsElememt.getElementsByTagName("result");
List results = XMLUtil.getChildElements(resultsElememt, "result");
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
for (int k = 0; k < results.getLength(); k++) { Element result = (Element) results.item(k);
for (int k = 0; k < results.size(); k++) { Element result = (Element) results.get(k);
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
Element unconditionalResult = (Element) resultsElememt.getElementsByTagName("unconditional-result").item(0);
Element unconditionalResult = XMLUtil.getChildElement(resultsElememt, "unconditional-result");
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
NodeList postFunctions = post.getElementsByTagName("function");
List postFunctions = XMLUtil.getChildElements(post, "function");
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
for (int k = 0; k < postFunctions.getLength(); k++) { Element postFunction = (Element) postFunctions.item(k);
for (int k = 0; k < postFunctions.size(); k++) { Element postFunction = (Element) postFunctions.get(k);
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
public boolean isCritical();
boolean isCritical();
public boolean isCritical();
Dimension s = spinner.getPreferredSize();
Dimension s = parent.getSize();
public void layoutContainer(Container parent) { synchronized (parent.getTreeLock()) { Insets i = parent.getInsets(); boolean l2r = parent.getComponentOrientation().isLeftToRight(); /* -------------- -------------- | | n | | n | | | e | - | or | - | e | ...
int h = e.height / 2;
int h = (s.height - i.bottom) / 2;
public void layoutContainer(Container parent) { synchronized (parent.getTreeLock()) { Insets i = parent.getInsets(); boolean l2r = parent.getComponentOrientation().isLeftToRight(); /* -------------- -------------- | | n | | n | | | e | - | or | - | e | ...