rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
connectionID = readString(in); priority = in.readInt();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); type = readString(in); messageReadWrite = in.readBoolean(); properties = readM...
if (correlationID == null || correlationID.length == 0) { throw new JMSException("Please specify a non-zero length byte[]"); }
public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException { correlationIDBytes = correlationID; isCorrelationIDBytes = true; }
writeString(out, connectionID); out.writeInt(priority);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, type); out.writeBoolean(messageReadWrite); //do we really need to write this?? writeMap(out, properties); ...
if (LayoutUtil.isFixed(c.getCss().getCascadedStyle(box.element, false))) {
if (box.getStyle().isFixed()) {
public static void positionFixedChild(Context c, Box box) { if (LayoutUtil.isFixed(c.getCss().getCascadedStyle(box.element, false))) {//already restyled by ContentUtil Point origin = c.getOriginOffset(); box.x = 0; box.y = 0; box.x -= origin.x; box.y -= ...
if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true;
if (box.getStyle().isFixed()) {
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setFixedDescendant(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
if (category == null) throw new NullPointerException("object may not be null");
if (category == null || attribute == null) throw new NullPointerException("category or attribute may not be null");
public static void verifyCategoryForValue(Class category, Attribute attribute) { if (category == null) throw new NullPointerException("object may not be null"); if (category.equals(attribute.getCategory())) throw new IllegalArgumentException ("categor...
if (category.equals(attribute.getCategory()))
if (!category.equals(attribute.getCategory()))
public static void verifyCategoryForValue(Class category, Attribute attribute) { if (category == null) throw new NullPointerException("object may not be null"); if (category.equals(attribute.getCategory())) throw new IllegalArgumentException ("categor...
locked.wait();
locked.wait(100);
public void iterateNativeQueue(EventQueue locked, boolean block) { if (block) { this.waitingNativeQueue = locked; synchronized (locked) { try { locked.wait(); } catch (InterruptedException e) { // Ignore } ...
{
{ Delivery d = null;
private Delivery getDelivery(Receiver receiver, MessageReference ref) { //NOTE There should never be more than one receiver //Eventually we wil enforce this in the design of the Channel //but for now we just check we only have one receiver if (receiver == null) { Iterator ite...
Iterator iter = router.iterator(); if (!iter.hasNext())
Set deliveries = router.handle(this, ref, null); if (deliveries.isEmpty())
private Delivery getDelivery(Receiver receiver, MessageReference ref) { //NOTE There should never be more than one receiver //Eventually we wil enforce this in the design of the Channel //but for now we just check we only have one receiver if (receiver == null) { Iterator ite...
receiver = (Receiver)iter.next(); if (iter.hasNext())
if (deliveries.size() > 1)
private Delivery getDelivery(Receiver receiver, MessageReference ref) { //NOTE There should never be more than one receiver //Eventually we wil enforce this in the design of the Channel //but for now we just check we only have one receiver if (receiver == null) { Iterator ite...
throw new IllegalStateException("More than one consumer on a channel is not supported!!");
throw new IllegalStateException("More than one delivery returned from router!"); } d = (Delivery)deliveries.iterator().next(); } else { try { d = receiver.handle(this, ref, null); if (d != null && d.isCancelled()) { d = null; } } catch(Throwable t) { log.error("The receiver " + receiver + " is broken", t);
private Delivery getDelivery(Receiver receiver, MessageReference ref) { //NOTE There should never be more than one receiver //Eventually we wil enforce this in the design of the Channel //but for now we just check we only have one receiver if (receiver == null) { Iterator ite...
Delivery d = null; try
if (d != null)
private Delivery getDelivery(Receiver receiver, MessageReference ref) { //NOTE There should never be more than one receiver //Eventually we wil enforce this in the design of the Channel //but for now we just check we only have one receiver if (receiver == null) { Iterator ite...
d = receiver.handle(this, ref, null); if (d != null) { if (d.isCancelled()) { d = null; } else { ref.incrementDeliveryCount(); } } } catch(Throwable t) { log.error("The receiver " + receiver + " is broken", t);
ref.incrementDeliveryCount();
private Delivery getDelivery(Receiver receiver, MessageReference ref) { //NOTE There should never be more than one receiver //Eventually we wil enforce this in the design of the Channel //but for now we just check we only have one receiver if (receiver == null) { Iterator ite...
super.installUI(c); }
super.installUI(c); if (c instanceof AbstractButton) { AbstractButton b = (AbstractButton) c; b.setIcon(icon); } }
public void installUI(final JComponent c) { super.installUI(c); }
}
public void initDone() throws FactoryException { String name = getProperties().getProperty("resource", null); if(name!=null) name = name.replace('\\', '/'); if(name!=null && name.indexOf('/')==-1) { //it's a relative path to resource, lets convert it try { configFile = new File(new URL(...
cm.deployCoreDestination(isQueue(), name, serverPeer.getMessageStoreDelegate(), serverPeer.getPersistenceManagerDelegate(), fullSize, pageSize, downCacheSize);
public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateException( "...
public void hyperlinkUpdate(HyperlinkEvent event);
void hyperlinkUpdate(HyperlinkEvent event);
public void hyperlinkUpdate(HyperlinkEvent event);
super("unknown format conversion: " + s);
super("Unknown format conversion: " + s); if (s == null) throw new NullPointerException("The conversion string is null.");
public UnknownFormatConversionException(String s) { super("unknown format conversion: " + s); this.s = s; }
throw new IllegalArgumentException("undecalred attribute "+attributeName+" on macro "+_macrodef.getName());
throw new IllegalArgumentException("undeclared attribute "+attributeName+" on macro "+_macrodef.getName());
public void defineAttribute(String attributeName, String value) { if (_macrodef.getAttribute(attributeName) == null) { throw new IllegalArgumentException("undecalred attribute "+attributeName+" on macro "+_macrodef.getName()); } _attValues.put(attributeName, value...
val = Float.valueOf(actual.asFloat());
val = new Float(actual.asFloat());
public Object getValueAt( int row, int col ) { XRProperty prop = (XRProperty)_properties.get(row); XRValue actual = prop.actualValue(); Object val = null; switch( col ) { case 0: val = prop.propertyName(); brea...
String asfConsumerID = getState(invocation).getAsfConsumerID();
public Object handleRecover(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("recover called"); } int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode == Session.SESSION_TRANSACTED) { throw new IllegalStateException("Cannot reco...
del.cancelDeliveries(asfConsumerID);
del.cancelDeliveries();
public Object handleRecover(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("recover called"); } int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode == Session.SESSION_TRANSACTED) { throw new IllegalStateException("Cannot reco...
ClusteredPostOffice office3 = null;
public final void testSimpleJoinLeave() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; //ClusteredPostOffice office3 = null; try { log.info("Starting office 1"); office1 = createClusteredPostOffice(1, "t...
office3 = createClusteredPostOffice(3, "testgroup");
public final void testSimpleJoinLeave() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; //ClusteredPostOffice office3 = null; try { log.info("Starting office 1"); office1 = createClusteredPostOffice(1, "t...
office3.stop(); office3 = null;
public final void testSimpleJoinLeave() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; //ClusteredPostOffice office3 = null; try { log.info("Starting office 1"); office1 = createClusteredPostOffice(1, "t...
if (office3 != null) { office3.stop(); }
public final void testSimpleJoinLeave() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; //ClusteredPostOffice office3 = null; try { log.info("Starting office 1"); office1 = createClusteredPostOffice(1, "t...
if (checkNoBindingData()) { fail("data still in database"); }
public final void testSimpleJoinLeave() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; //ClusteredPostOffice office3 = null; try { log.info("Starting office 1"); office1 = createClusteredPostOffice(1, "t...
void setDouble(int parameterIndex, double x) throws SQLException;
void setDouble(int index, double value) throws SQLException;
void setDouble(int parameterIndex, double x) throws SQLException;
Boxing.layout(c, box, content);
if (! isAlternateFlow(c, content)) { Boxing.layout(c, box, content); } else { box = null; }
public static BlockBox generateAbsolute(LayoutContext c, Content content, LineBox currentLine) { Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); MarkerData markerData = c.getCurrentMarkerData(); c.setCurrentMarkerData(null); ...
return AnonymousBoxing.layout(c, content);
return AnonymousBoxing.createBox(c, content);
public static Box preLayout(Context c, Content content) { Box block = null; if (content instanceof AnonymousBlockContent) { return AnonymousBoxing.layout(c, content); } else if (content instanceof TableContent) { return TableBoxing.layout(c, content); } else { ...
return TableBoxing.layout(c, content);
block = TableBoxing.createBox(c, content);
public static Box preLayout(Context c, Content content) { Box block = null; if (content instanceof AnonymousBlockContent) { return AnonymousBoxing.layout(c, content); } else if (content instanceof TableContent) { return TableBoxing.layout(c, content); } else { ...
block.element = content.getElement(); if(block.element != null) { if(block.element.hasAttribute("id")) { c.addIDBox(block.element.getAttribute("id"),block); } }
Element element = content.getElement(); if (element != null) { String id = c.getNamespaceHandler().getID(element); if (id != null && !id.equals("")) { c.addIDBox(id, block); } }
public static Box preLayout(Context c, Content content) { Box block = null; if (content instanceof AnonymousBlockContent) { return AnonymousBoxing.layout(c, content); } else if (content instanceof TableContent) { return TableBoxing.layout(c, content); } else { ...
return layout(c, block, content);
if (content instanceof AnonymousBlockContent) { return AnonymousBoxing.layout(c, block, content); } else if (content instanceof TableContent) { return TableBoxing.layout(c, block, content); } else return layout(c, block, content);
public static Box realLayout(Context c, Box block, Content content) { return layout(c, block, content); }
TransactionRequest(String nodeId, long txId, boolean hold, long checkChannelID) { this.nodeId = nodeId; this.txId= txId; this.hold = hold; this.checkChannelID = checkChannelID;
TransactionRequest() {
TransactionRequest(String nodeId, long txId, boolean hold, long checkChannelID) { this.nodeId = nodeId; this.txId= txId; this.hold = hold; this.checkChannelID = checkChannelID; }
nodeId = in.readUTF();
nodeId = in.readInt();
public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); txId = in.readLong(); hold = in.readBoolean(); }
out.writeUTF(nodeId);
out.writeInt(nodeId);
public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeLong(txId); out.writeBoolean(hold); }
Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) {
Provider[] p = Security.getProviders(); NoSuchAlgorithmException lastException = null; for (int i = 0; i < p.length; i++)
public static final Mac getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgor...
return getInstance(algorithm, provs[i]);
return getInstance(algorithm, p[i]);
public static final Mac getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgor...
catch (NoSuchAlgorithmException nsae)
catch (NoSuchAlgorithmException x)
public static final Mac getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgor...
msg = nsae.getMessage();
lastException = x;
public static final Mac getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgor...
} throw new NoSuchAlgorithmException(msg);
if (lastException != null) throw lastException; throw new NoSuchAlgorithmException(algorithm);
public static final Mac getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgor...
log.info("Message is:" + m);
public void onMessage(Message m) { try { count++; TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText()); //Receive first three messages then recover() session //Only last message sho...
drainDestination(cf, queue);
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Serv...
InitialContext ic = new InitialContext(); ds = (DataSource)ic.lookup(dataSourceJNDIName); ic.close();
public void setDataSource(String dataSourceJNDIName) throws Exception { this.dataSourceJNDIName = dataSourceJNDIName; InitialContext ic = new InitialContext(); ds = (DataSource)ic.lookup(dataSourceJNDIName); ic.close(); }
InitialContext ic = new InitialContext(); ds = (DataSource)ic.lookup(dataSourceJNDIName); ic.close();
protected void startService() throws Exception { // these are supposed to be set by dependencies, this is just a safeguard if (ds == null) { throw new Exception("No DataSource found. This service dependencies must " + "have not been enforced correctly!"); } ...
ServerManagement.deInit();
public void tearDown() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.undeployTopic("testTopic"); ServerManagement.undeployQueue("SomeName"); ServerManagement.undeployTopic("SomeName"); ServerManagement.deInit(); //destinationManager = null; ...
Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) {
Provider[] p = Security.getProviders(); NoSuchAlgorithmException lastException = null; for (int i = 0; i < p.length; i++)
public static final ExemptionMechanism getInstance(String mechanism) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(mechanism, provs[i]); } catch...
return getInstance(mechanism, provs[i]);
return getInstance(mechanism, p[i]);
public static final ExemptionMechanism getInstance(String mechanism) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(mechanism, provs[i]); } catch...
catch (NoSuchAlgorithmException nsae)
catch (NoSuchAlgorithmException x)
public static final ExemptionMechanism getInstance(String mechanism) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(mechanism, provs[i]); } catch...
msg = nsae.getMessage(); }
lastException = x;
public static final ExemptionMechanism getInstance(String mechanism) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(mechanism, provs[i]); } catch...
throw new NoSuchAlgorithmException(msg);
if (lastException != null) throw lastException; throw new NoSuchAlgorithmException(mechanism);
public static final ExemptionMechanism getInstance(String mechanism) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = ""; for (int i = 0; i < provs.length; i++) { try { return getInstance(mechanism, provs[i]); } catch...
public DelegateSupport(String objectID)
public DelegateSupport(int objectID)
public DelegateSupport(String objectID) { this.id = objectID; }
trace = log.isTraceEnabled();
public DelegateSupport(String objectID) { this.id = objectID; }
Marshaller marshaller = new InvocationMarshaller(); UnMarshaller unmarshaller = new InvocationUnMarshaller(); MarshalFactory.addMarshaller(InvocationMarshaller.DATATYPE, marshaller, unmarshaller);
try { SerializationStreamFactory.setManagerClassName("jms", "org.jboss.jms.server.remoting.JMSSerializationManager"); } catch (Exception e) { log.error("Failed to set SerializationManager, e"); }
private synchronized void checkMarshallers() { if (checked) { return; } // We shouldn't have to do this programmatically - it should pick it up from the params // on the locator uri, but that doesn't seem to work. Marshaller marshaller = new InvocationMarshaller(); ...
if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); }
if (trace) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); }
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ...
id, PayloadKey.AS_IS);
Integer.valueOf(id), PayloadKey.AS_IS);
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ...
InvocationResponse response = (InvocationResponse)getClient().invoke(invocation, null); invocation.setResponseContextInfo(response.getContextInfo());
Object ret = getClient().invoke(invocation, null);
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ...
if (log.isTraceEnabled()) { log.trace("got server response for " + ((MethodInvocation)invocation).getMethod().getName()); }
if (trace) { log.trace("got server response for " + ((MethodInvocation)invocation).getMethod().getName()); }
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ...
return response.getResponse();
return ret;
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ...
getPaintingTop() + additionalClearance +
getPaintingTop() +
public Rectangle getContentClippingBounds(CssContext cssCtx, int additionalClearance) { Rectangle result = new Rectangle( additionalClearance + getStyle().getMarginBorderPadding(cssCtx, CalculatedStyle.LEFT), getPaintingTop() + additionalClearance + ...
result.translate(-1, 0); result.width += 1;
public Rectangle getContentClippingBounds(CssContext cssCtx, int additionalClearance) { Rectangle result = new Rectangle( additionalClearance + getStyle().getMarginBorderPadding(cssCtx, CalculatedStyle.LEFT), getPaintingTop() + additionalClearance + ...
0, getPaintingTop(), getWidth(cssCtx) + additionalClearance*2, getPaintingBottom()-getPaintingTop());
additionalClearance, getPaintingTop(), getWidth(cssCtx), getPaintingBottom()-getPaintingTop());
public Rectangle getOverallPaintingBounds(CssContext cssCtx, int additionalClearance) { return new Rectangle( 0, getPaintingTop(), getWidth(cssCtx) + additionalClearance*2, getPaintingBottom()-getPaintingTop()); }
c.setCurrentMarkerData(markerData);
public static void generateAbsolute(LayoutContext c, Content content, LineBox currentLine) { Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.preLayout(c, content); box.setContainingBlock(c.getLayer().getMaster()); ...
c.setCurrentMarkerData(markerData);
public static FloatedBlockBox generateFloated( LayoutContext c, Content content, int avail, LineBox curr_line, List pendingFloats) { Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); c.setFloatingY(curr_line.y + ((FloatedBlockContent)content).getMarginFromPrevious()...
return new AccessibleJFileChooser();
if (accessibleContext == null) accessibleContext = new AccessibleJFileChooser(); return accessibleContext;
public AccessibleContext getAccessibleContext() { return new AccessibleJFileChooser(); }
public File createFileObject(String path) {
public File createFileObject(File directory, String filename) {
public File createFileObject(String path) { return null; // TODO } // createFileObject()
if(trace) { log.trace("got " + res + " on return"); }
public Object handleCreateConnectionDelegate(Invocation inv) throws Throwable { ConnectionFactoryDelegate cfd = (ConnectionFactoryDelegate)inv.getTargetObject(); CreateConnectionResult res = (CreateConnectionResult)inv.invokeNext(); if(trace) { log.trace("got " + res + " on return"); } ClientCo...
if (connectionDelegate != null)
if (connectionDelegate != null && connectionDelegate.getState() == null)
public Object handleCreateConnectionDelegate(Invocation inv) throws Throwable { ConnectionFactoryDelegate cfd = (ConnectionFactoryDelegate)inv.getTargetObject(); CreateConnectionResult res = (CreateConnectionResult)inv.invokeNext(); if(trace) { log.trace("got " + res + " on return"); } ClientCo...
int delta = page.getBottom() - (getAbsY() + this.height);
int delta = page.getBottom() - (getAbsY() + getStyle().getMarginBorderPadding(c, CalculatedStyle.TOP) + this.height);
public void expandToPageBottom(LayoutContext c) { PageBox page = c.getRootLayer().getLastPage(c, this); int delta = page.getBottom() - (getAbsY() + this.height); this.height += delta; if (page == c.getRootLayer().getLastPage()) { c.getRootLayer().addPage(c); } }
}).start();
}, "FlyingSaucer-Layout2").start();
private void doRelayout(ReflowEvent evt) throws InterruptedException { // if layout is already in progress //if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); if (root.layout_context != null) { root.layout_context.stopRendering(); ...
if (root.getRenderWidth() != root.getWidth()) {
if (root.getRenderWidth() != root.getLayoutWidth()) {
private void startLayoutLoop() throws InterruptedException { while (true) { //Uu.p("waiting for a layout event"); ReflowEvent evt = root.queue.waitForNextLayoutEvent(); if (evt == null) { return; } Uu.p("got a layout event: " + evt); ...
cm.getDurableSubscription(connectionEndpoint.getClientID(), subscriptionName, ms, pm);
cm.getDurableSubscription(clientID, subscriptionName, ms, pm);
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } CoreDurableSubscription sub...
NodeList args = register.getElementsByTagName("arg");
List args = XMLUtil.getChildElements(register, "arg");
protected void init(Element register) { this.type = register.getAttribute("type"); this.variableName = register.getAttribute("variable-name"); try { setId(Integer.parseInt(register.getAttribute("id"))); } catch (NumberFormatException e) { } NodeList args = regist...
for (int l = 0; l < args.getLength(); l++) { Element arg = (Element) args.item(l);
for (int l = 0; l < args.size(); l++) { Element arg = (Element) args.get(l);
protected void init(Element register) { this.type = register.getAttribute("type"); this.variableName = register.getAttribute("variable-name"); try { setId(Integer.parseInt(register.getAttribute("id"))); } catch (NumberFormatException e) { } NodeList args = regist...
m.setJMSExpiration(Long.MAX_VALUE);
m.setJMSExpiration(0);
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; String methodName = mi.getMethod().getName(); Object[] args = mi.getArguments(); JMSInvocationHandler h...
if (m instanceof JBossBytesMessage) { if (log.isTraceEnabled()) { log.trace("Calling reset()"); } ((JBossBytesMessage)m).reset(); }
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; String methodName = mi.getMethod().getName(); Object[] args = mi.getArguments(); JMSInvocationHandler h...
copy.setPropertiesReadWrite(false);
copy.afterSend();
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; String methodName = mi.getMethod().getName(); Object[] args = mi.getArguments(); JMSInvocationHandler h...
inline_block.x = 0;
public static InlineBox generateFloatedBlockInlineBox( Context c, Content content, int avail, LineBox curr_line ) { // Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c....
frame.setVisible(true); screen.requestFocus();
SwingUtilities.invokeLater(new Runnable() { public void run() { frame.setVisible(true); screen.requestFocus(); } });
public SwingPcTextScreen() { super(SCREEN_WIDTH, SCREEN_HEIGHT); buffer = new char[SCREEN_WIDTH * SCREEN_HEIGHT]; AccessController.doPrivileged(new PrivilegedAction() { public Object run() { screen = new SwingPcScreen(); for (int i = 0; i < buffer.length...
frame.setVisible(true); screen.requestFocus();
SwingUtilities.invokeLater(new Runnable() { public void run() { frame.setVisible(true); screen.requestFocus(); } });
public Object run() { screen = new SwingPcScreen(); for (int i = 0; i < buffer.length; i ++) { buffer[i] = ' '; } /* for (String s : GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()) ...
screen.repaint();
SwingUtilities.invokeLater(repaintCmd);
public void sync() { screen.repaint(); }
TransactionId(String nodeId, long txId) { this.nodeId = nodeId; this.txId = txId; calculateHash();
TransactionId() {
TransactionId(String nodeId, long txId) { this.nodeId = nodeId; this.txId = txId; calculateHash(); }
hash = 37 * hash + nodeId.hashCode();
hash = 37 * hash + nodeId;
private void calculateHash() { hash = 17; hash = 37 * hash + (int)(txId ^ (txId >>> 32)); hash = 37 * hash + nodeId.hashCode(); }
return tother.txId == this.txId && tother.nodeId.equals(this.nodeId);
return tother.txId == this.txId && tother.nodeId == this.nodeId;
public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof TransactionId)) { return false; } TransactionId tother = (TransactionId)other; return tother.txId == this.txId && tother.nodeId.equals(this.node...
if (hash == -1) { calculateHash(); }
public int hashCode() { return hash; }
nodeId = in.readUTF();
nodeId = in.readInt();
public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); txId = in.readLong(); hash = in.readInt(); }
hash = in.readInt();
public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); txId = in.readLong(); hash = in.readInt(); }
out.writeUTF(nodeId);
out.writeInt(nodeId);
public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeLong(txId); out.writeInt(hash); }
out.writeInt(hash);
public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeLong(txId); out.writeInt(hash); }
renderer = c.getRenderer(child.getNode());
if (child.getContent() == null) { XRLog.render(Level.WARNING, "null node of child: " + child + " of type " + child.getClass().getName()); renderer = new InlineRenderer(); } else { renderer = c.getRenderer(child.getContent().getElement()); }
public void paintChildren(Context c, Box box) { //u.p("Layout.paintChildren(): " + box); //u.p("child count = " + box.getChildCount()); for (int i = 0; i < box.getChildCount(); i++) { Box child = (Box) box.getChild(i); //u.p("child = " + child); Renderer rendere...
public BigInteger getY();
BigInteger getY();
public BigInteger getY();
os.writeSBB(Register.EDX, 5); os.writeSBB(Register.EDX, 305);
public static void main(String[] args) throws Exception { final X86Stream os = new X86Stream(X86CpuID.createID("pentium4"), 0); final Label label = new Label("label"); os.writeADD(Register.EDX, Register.EAX); os.setObjectRef(label); os.writeNOP(); os.writeLOOP(label); os.writeTEST_AL(0xff); os.writeTEST(R...
setCommitsOnValidEdit(false); setOverwriteMode(false);
public InternationalFormatter() { super(); minimum = null; maximum = null; format = null; }
EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBHome.class);
EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBLocalHome.class);
public void validate(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Validator sessionBean = null; try { EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejb...
protected Message createMessage(int i) throws Exception
protected Message createMessage(byte i) throws Exception
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossObjectMessage m = new JBossObjectMessage(new GUID().toString(), true, System.currentTim...
new GUID().toString(),
randInt().intValue(),
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossObjectMessage m = new JBossObjectMessage(new GUID().toString(), true, System.currentTim...
Font font = FontUtil.getFont(c, style, box.getNode());
Font font = FontUtil.getFont(c, style);
private static void drawText(Context c, Box box, String type) { String text = ""; if (type.equals("decimal")) { text = box.list_count + "."; } if (type.equals("lower-latin")) { text = toLatin(box.list_count).toLowerCase() + "."; } if (type.equals("uppe...
int h = FontUtil.lineHeight(c, box.getRealElement());
int h = FontUtil.lineHeight(c, style);
private static void drawText(Context c, Box box, String type) { String text = ""; if (type.equals("decimal")) { text = box.list_count + "."; } if (type.equals("lower-latin")) { text = toLatin(box.list_count).toLowerCase() + "."; } if (type.equals("uppe...
int baseline = box.height;
public static void paint(Context c, Box box) { String type = c.css.getStyle(box.getNode()).getStringProperty("list-style-type"); if (type.equals("none")) { return; } if (type.equals("lower-greek")) { type = "decimal"; } if (type.equals("decimal-leading...