rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
state.deliver(deliveries[i]);
state.addDelivery(deliveries[i]);
public void testRecoverableState_70() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; Delivery[] deliveries = new Delivery[NUMBER_OF_MESSAGES]; for(in...
state.add(ref);
state.addReference(ref);
public void testRecoverableState_remove_10() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.createMessa...
state.add(ref);
state.addReference(ref);
public void testRecoverableState_remove_10_mixed() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.creat...
state.add(ref);
state.addReference(ref);
public void testRecoverableState_remove_7() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", false, "payload0")); state.add(ref); MessageRefer...
state.add(ref);
state.addReference(ref);
public void testRecoverableState_remove_8() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.createMessag...
state.add(ref);
state.addReference(ref);
public void testRecoverableState_remove_9() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", true, "payload0")); state.add(ref); MessageRefere...
hwCursor.closeCursor();
public synchronized void close() { final NVidiaDpmsState dpmsState = getDpms(); //log.debug("Old DPMS state: " + dpmsState); setDpms(NVidiaDpmsState.OFF); vgaIO.unlock(); oldVgaState.restoreToVGA(vgaIO); setDpms(dpmsState); // For debugging purposes //final NVidiaVgaState debugState = new NVidiaVgaState(); //...
((ProducerDelegate)invocation.getTargetObject()).sendMessage(toSend);
((ProducerDelegate)invocation.getTargetObject()).send(toSend);
public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu...
if (true) return null;
public static Socket get_socket(Object key) { if (true) return null; synchronized (sockets) { Socket s = (Socket) sockets.get(key); if (s == null) return null; // Ensure that the socket is fully reusable. else if (not_reusable(s)) { sockets.remove(key); ret...
double iwd = block.background_image.getWidth(null); double ihd = block.background_image.getHeight(null);
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; } Border border = c.getCurrentStyle().getBorderWidth(); if (border == null) return; Border ...
*/
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; } Border border = c.getCurrentStyle().getBorderWidth(); if (border == null) return; Border ...
md.add(MessageDigest.getInstance (key.substring(0, key.length() - DIGEST_KEY_SUFFIX.length())));
int length = key.length() - DIGEST_KEY_SUFFIX.length(); String alg = key.substring(0, length); md.add(MessageDigest.getInstance(alg, provider));
EntryInputStream(final ZipEntry entry, final InputStream in, final JarFile jar) throws IOException { super(in); this.entry = entry; this.jarfile = jar; length = entry.getSize(); pos = 0; checked = false; Attributes attr; Manifest manifest = jarfile.getMani...
MessageDigest md = MessageDigest.getInstance(alg);
MessageDigest md = MessageDigest.getInstance(alg, provider);
private boolean verifyHashes(String entry, Attributes attr) { int verified = 0; // The bytes for ENTRY's manifest entry, which are signed in the // signature file. byte[] entryBytes = null; try { ZipEntry e = super.getEntry(entry); if (e == null) { if (DEBUG) debug("verifyHashes: no e...
put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName()); put("KeyPairGenerator.DiffieHellman", DiffieHellmanKeyPairGeneratorImpl.class.getName ());
put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName());
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman");
put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA");
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
put("KeyFactory.DiffieHellman", DiffieHellmanKeyFactoryImpl.class.getName()); put("Alg.Alias.KeyFactory.DH", "DiffieHellman");
put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName());
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName()); put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA");
put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA");
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
private Object lookup(String location) {
private Object lookup(String location) throws NamingException {
private Object lookup(String location) { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return context.lookup("java:comp...
log.error("Unable to find name " + location + " in initial context", e);
throw e;
private Object lookup(String location) { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return context.lookup("java:comp...
return null;
private Object lookup(String location) { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return context.lookup("java:comp...
stmt.setLong(2, actionId);
stmt.setInt(2, actionId);
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "UPDATE " + currentTable + " SET " + stepStatus + " = ...
&& MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme && UIManager.get(getPropertyPrefix() + "gradient") != null && ! b.getModel().isPressed() && ! b.getModel().isArmed() && b.isEnabled())
&& (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() instanceof UIResource))
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme && UIManager.get(getPropertyPrefix() + "gradient") != null && ! b.getModel().isPressed() && ! b.getModel().isArmed()...
ms = new PagingMessageStore("s50");
ms = new SimpleMessageStore("s50");
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
ms2 = new PagingMessageStore("s51");
ms2 = new SimpleMessageStore("s51");
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
ms3 = new PagingMessageStore("s52");
ms3 = new SimpleMessageStore("s52");
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
Rectangle d1 = (Rectangle) dirtyComponents.get(c1);
Rectangle d1 = (Rectangle) dirtyComponentsWork.get(c1);
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; Rectangle d1 = (Rectangle) dirtyComponents.get(c1); JComponent c2 = (JComponent) o2; Rectangle d2 = (Rectangle) dirtyComponents.g...
Rectangle d2 = (Rectangle) dirtyComponents.get(c2);
Rectangle d2 = (Rectangle) dirtyComponentsWork.get(c2);
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; Rectangle d1 = (Rectangle) dirtyComponents.get(c1); JComponent c2 = (JComponent) o2; Rectangle d2 = (Rectangle) dirtyComponents.g...
dirtyComponentsWork = new HashMap();
public RepaintManager() { dirtyComponents = new HashMap(); invalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMaximumSize = new Dimension(2000,2000); doubleBufferingEnabled = true; offscreenBuffers = new WeakHashMap(); repaintUnderway = false; commitRequests...
ArrayList repaintOrder = new ArrayList(dirtyComponents.size()); repaintOrder.addAll(dirtyComponents.keySet());
repaintOrder.addAll(dirtyComponentsWork.keySet());
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
Rectangle damaged = (Rectangle) dirtyComponents.get(comp);
Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp);
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
dirtyComponents.remove(comp);
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
}
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
int numMessages, long timeToStart, int ackMode, String subName,
int numMessages, int ackMode, String subName,
public ReceiverJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart, int ackMode, String subName, String selector, boole...
numMessages, timeToStart);
numMessages);
public ReceiverJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart, int ackMode, String subName, String selector, boole...
ms = new PagingMessageStore("s40");
ms = new SimpleMessageStore("s40");
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
ms2 = new PagingMessageStore("s41");
ms2 = new SimpleMessageStore("s41");
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
outputms = new PagingMessageStore("s42"); outputms2 = new PagingMessageStore("s43"); outputms3 = new PagingMessageStore("s44");
outputms = new SimpleMessageStore("s42"); outputms2 = new SimpleMessageStore("s43"); outputms3 = new SimpleMessageStore("s44");
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
activeFGColor = defaults.getColor("InternalFrame.activeTitleForeground"); activeBGColor = defaults.getColor("InternalFrame.activeTitleBackground"); inactiveFGColor = defaults.getColor("InternalFrame.inactiveTitleForeground"); inactiveBGColor = defaults.getColor("InternalFrame.inactiveTitleBackground");
selectedTextColor = defaults.getColor("InternalFrame.activeTitleForeground"); selectedTitleColor = defaults.getColor("InternalFrame.activeTitleBackground"); notSelectedTextColor = defaults.getColor("InternalFrame.inactiveTitleForeground"); notSelectedTitleColor = defaults.getColor("InternalFrame.inactiveTitleBackground...
protected void installDefaults() { // FIXME: move icons to defaults. UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("InternalFrame.titleFont")); activeFGColor = defaults.getColor("InternalFrame.activeTitleForeground"); activeBGColor = defaults.getColor("InternalFram...
g.setColor(activeFGColor);
g.setColor(selectedTextColor);
public void paintComponent(Graphics g) { paintTitleBackground(g); Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); if (frame.getTitle() != null && title != null) { Color saved = g.getColor(); if (frame.isSelected()) g.setColor(activeFGColor); else g.setColor(inactiveFGColor); title.se...
g.setColor(inactiveFGColor);
g.setColor(notSelectedTextColor);
public void paintComponent(Graphics g) { paintTitleBackground(g); Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); if (frame.getTitle() != null && title != null) { Color saved = g.getColor(); if (frame.isSelected()) g.setColor(activeFGColor); else g.setColor(inactiveFGColor); title.se...
bg = activeBGColor;
bg = selectedTitleColor;
protected void paintTitleBackground(Graphics g) { Color saved = g.getColor(); Dimension dims = getSize(); Color bg = getBackground(); if (frame.isSelected()) bg = activeBGColor; else bg = inactiveBGColor; g.setColor(bg); g.fillRect(0, 0, dims.width, dims.height); g.setColor(saved); ...
bg = inactiveBGColor;
bg = notSelectedTitleColor;
protected void paintTitleBackground(Graphics g) { Color saved = g.getColor(); Dimension dims = getSize(); Color bg = getBackground(); if (frame.isSelected()) bg = activeBGColor; else bg = inactiveBGColor; g.setColor(bg); g.fillRect(0, 0, dims.width, dims.height); g.setColor(saved); ...
Icon icon = UIManager.getIcon("InternalFrame.closeIcon"); if (icon != null) closeButton.setIcon(icon); icon = UIManager.getIcon("InternalFrame.iconifyIcon"); if (icon != null) iconButton.setIcon(icon); icon = UIManager.getIcon("InternalFrame.maximizeIcon"); if (icon != null) maxButton.setIcon(icon);
protected void setButtonIcons() { }
activeFGColor = null; activeBGColor = null; inactiveFGColor = null; inactiveBGColor = null;
selectedTextColor = null; selectedTitleColor = null; notSelectedTextColor = null; notSelectedTitleColor = null;
protected void uninstallDefaults() { setFont(null); activeFGColor = null; activeBGColor = null; inactiveFGColor = null; inactiveBGColor = null; }
public ConnectionDelegate createConnectionDelegate(String username, String password)
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId)
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
new ServerConnectionEndpoint(serverPeer, clientID, username, password);
new ServerConnectionEndpoint(serverPeer, clientID, username, password, clientConnectionId);
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
delegate = new ClientConnectionDelegate(connectionID, serverPeer.getLocatorURI(),
delegate = new ClientConnectionDelegate(connectionID,
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
int targetWidth = width; int targetHeight = height;
float targetWidth = width; float targetHeight = height;
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight());
if (width == -1) { targetWidth = getWidthAsFloat() * (targetHeight / getHeight());
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
if (targetHeight == -1) { targetHeight = getHeight() * (targetWidth / getWidth());
if (height == -1) { targetHeight = getHeightAsFloat() * (targetWidth / getWidth());
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
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"); localServer.setAttribute(ServiceContainer.REMOTING_OBJECT_NAME, "LeasePeriod", "30000"); ...
Uu.p("got a repaint event: " + evt);
public void startRepaintLoop() { //Uu.sleep(2000); while (true) { //Uu.sleep(1000); // wait for a repaint event ReflowEvent evt = root.queue.waitForNextRepaintEvent(); if (evt == null) {// we're being shutdown return; } /...
Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null);
Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor());
public void testChannelShareNP_2PC() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; ...
public void assignPagePaintingPositions(CssContext cssCtx, int additionalClearance) { List pages = getPages(); int paintingTop = additionalClearance; for (Iterator i = pages.iterator(); i.hasNext(); ) { PageBox page = (PageBox)i.next(); page.setPaintingTop(paintingTop); page.setPaintingBottom(paintingTop + page.getHeig...
public void assignPagePaintingPositions(CssContext cssCtx, short mode) { assignPagePaintingPositions(cssCtx, mode, 0);
public void assignPagePaintingPositions(CssContext cssCtx, int additionalClearance) { List pages = getPages(); int paintingTop = additionalClearance; for (Iterator i = pages.iterator(); i.hasNext(); ) { PageBox page = (PageBox)i.next(); page.setPaintingTop(paintingTop); ...
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJSeparator(this); } return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSeparator(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJSeparator(this); } // if return accessibleContext; } // getAccessibleContext()
public String getUIClassID() { return uiClassID; }
public String getUIClassID() { return "SeparatorUI"; }
public String getUIClassID() { return uiClassID; } // getUIClassID()
protected String paramString() { return null; }
protected String paramString() { return "JSeparator"; }
protected String paramString() { return null; // TODO } // paramString()
public void setOrientation(int orientation) { this.orientation = orientation; }
public void setOrientation(int orientation) { if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a valid orientation."); this.orientation = orientation; }
public void setOrientation(int orientation) { this.orientation = orientation; // TODO } // setOrientation()
public void updateUI() { setUI((SeparatorUI) UIManager.get(this)); invalidate(); }
public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((SeparatorUI) UIManager.get(this)); invalidate(); } // updateUI()
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) {
public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) {
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); }
if (trace) { log.trace("Failed session state has " + failedSessionState.getToAck().size() + " deliveries"); }
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
if (trace) { log.trace("New session state has " + newSessionState.getToAck().size() + " deliveries"); }
if (trace) { log.trace("New session state has " + newSessionState.getClientAckList().size() + " deliveries"); }
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
if (!state.isTransacted() && !state.isXA())
if (!state.isTransacted() || (state.isXA() && state.getCurrentTxId() == null))
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
if (trace) { log.trace("Session is not transacted (or XA with no tx set), retrieving deliveries from session state"); }
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
Iterator iter2 = state.getToAck().iterator(); if (trace) { log.trace("Removing any np deliveries"); } while (iter2.hasNext())
if (state.getAcknowledgeMode() == Session.CLIENT_ACKNOWLEDGE)
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
DeliveryInfo info = (DeliveryInfo)iter2.next(); if (!info.getMessageProxy().getMessage().isReliable())
Iterator iter2 = state.getClientAckList().iterator(); if (trace) { log.trace("Removing any np deliveries"); } while (iter2.hasNext())
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
iter2.remove(); if (trace) { log.trace("Removed np delivery: " + info.getDeliveryId()); }
DeliveryInfo info = (DeliveryInfo)iter2.next(); if (!info.getMessageProxy().getMessage().isReliable()) { iter2.remove(); if (trace) { log.trace("Removed np delivery: " + info.getDeliveryId()); } }
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
if (trace) { log.trace("Session is not transacted, retrieving deliveries from session state"); } ackInfos = state.getToAck();
else { DeliveryInfo autoAck = state.getAutoAckInfo(); if (autoAck != null) { if (!autoAck.getMessageProxy().getMessage().isReliable()) { state.setAutoAckInfo(null); ackInfos = Collections.EMPTY_LIST; } else { ackInfos = new ArrayList(); ackInfos.add(autoAck); } } }
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
this.codeSource2Permissions = new HashMap();
public JNodePolicy(ExtensionPoint permissionsEp) { super(ClassLoader.getSystemResource("/org/jnode/security/jnode.policy")); this.permissionsEp = permissionsEp; loadExtensions(); }
public PolicyFile() {
public PolicyFile(URL defaultPolicy) { if (defaultPolicy == null) { throw new IllegalArgumentException( "defaultPolicy cannot be null"); } this.defaultPolicy = defaultPolicy;
public PolicyFile() { cs2pc = new HashMap(); refresh(); }
final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ());
final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() {
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run() throws Exception { String allow = Security.getProperty ("policy.allowSystemProperty"); if (allow == null || Boolean.getBoolean (allow)) { String s = SystemProperties.getProperty ("java.security.policy"); logger.log (Component.POLICY, "...
public Object run() throws Exception { LinkedList l = new LinkedList(); for (int i = 1;; i++) { String s = Security.getProperty("policy.file." + i); debug("policy.file." + i + "=" + s); if (s == null) break; l.add(new URL(s)); } String s = System .getProperty("java.security.policy"); debug("java.security.policy=" + s);...
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
catch (PrivilegedActionException pae) { logger.log (Component.POLICY, "reading policy properties", pae); } catch (MalformedURLException mue) { logger.log (Component.POLICY, "setting default policies", mue); } logger.log (Component.POLICY, "building policy from URLs {0}", policyFiles); for (Iterator it = policyFiles.it...
for (Iterator it = policyFiles.iterator(); it.hasNext();) { try {
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
} catch (IOException ioe) { logger.log (Component.POLICY, "reading policy", ioe);
} catch (IOException ioe) { error(ioe);
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
throws NotImplementedException
protected void installKeyboardActions(JSlider slider) throws NotImplementedException { // FIXME: implement. }
InputMap keyMap = getInputMap(JComponent.WHEN_FOCUSED); SwingUtilities.replaceUIInputMap(slider, JComponent.WHEN_FOCUSED, keyMap); ActionMap map = getActionMap(); SwingUtilities.replaceUIActionMap(slider, map);
protected void installKeyboardActions(JSlider slider) throws NotImplementedException { // FIXME: implement. }
int unit = direction * (slider.getMaximum() - slider.getMinimum()) / 10; int moveTo = slider.getValue() + unit;
int unit = (slider.getMaximum() - slider.getMinimum()) / 10; int moveTo = slider.getValue(); if (direction > 0) moveTo += unit; else moveTo -= unit;
public void scrollByBlock(int direction) { // The direction is -1 for backwards and 1 for forwards. int unit = direction * (slider.getMaximum() - slider.getMinimum()) / 10; int moveTo = slider.getValue() + unit; if (slider.getSnapToTicks()) moveTo = findClosestTick(moveTo); slider.setValue(moveTo...
int moveTo = slider.getValue() + direction;
int moveTo = slider.getValue(); if (direction > 0) moveTo++; else moveTo--;
public void scrollByUnit(int direction) { // The direction is -1 for backwards and 1 for forwards. int moveTo = slider.getValue() + direction; if (slider.getSnapToTicks()) moveTo = findClosestTick(moveTo); slider.setValue(moveTo); }
throws NotImplementedException
protected void uninstallKeyboardActions(JSlider slider) throws NotImplementedException { // FIXME: implement. }
SwingUtilities.replaceUIActionMap(slider, null); SwingUtilities.replaceUIInputMap(slider, JComponent.WHEN_FOCUSED, null);
protected void uninstallKeyboardActions(JSlider slider) throws NotImplementedException { // FIXME: implement. }
public void addFloat(FloatedBlockBox floater) {
public void addFloat(FloatedBlockBox floater, BlockFormattingContext bfc) {
public void addFloat(FloatedBlockBox floater) { if (floats == null) { floats = new ArrayList(); } floats.add(floater); }
maybeAddMoveWithLayerFloat(floater, bfc);
public void addFloat(FloatedBlockBox floater) { if (floats == null) { floats = new ArrayList(); } floats.add(floater); }
public void finalizePosition(CssContext cssCtx) {
private void finalizePosition(CssContext cssCtx) {
public void finalizePosition(CssContext cssCtx) { Dimension delta = getMaster().positionPositioned(cssCtx); if (getMaster().getStyle().isRelative()) { moveFloats(delta); } }
private boolean isRootLayer() {
public boolean isRootLayer() {
private boolean isRootLayer() { return getParent() == null && isStackingContext(); }
if (floats != null) { for (Iterator i = floats.iterator(); i.hasNext(); ) {
if (moveWithLayerFloats != null) { for (Iterator i = moveWithLayerFloats.keySet().iterator(); i.hasNext(); ) {
private void moveFloats(Dimension distance) { if (floats != null) { for (Iterator i = floats.iterator(); i.hasNext(); ) { FloatedBlockBox floater = (FloatedBlockBox)i.next(); floater.x += distance.width; floater.y += distance.height; } ...
if (isStackingContext()) { if (floats != null) { floats.remove(floater); } } else { getParent().removeFloat(floater);
if (floats != null) { floats.remove(floater);
public void removeFloat(FloatedBlockBox floater) { if (isStackingContext()) { if (floats != null) { floats.remove(floater); } } else { getParent().removeFloat(floater); } }
removeMoveWithLayerFloat(floater);
public void removeFloat(FloatedBlockBox floater) { if (isStackingContext()) { if (floats != null) { floats.remove(floater); } } else { getParent().removeFloat(floater); } }
ic.rebind(RECOVERABLE_JNDI_NAME + "/server-" + this.serverPeerID, recoverable);
Context recCtx = null; try { recCtx = (Context)ic.lookup(RECOVERABLE_CTX_NAME); } catch (NamingException e) { } if (recCtx == null) { recCtx = ic.createSubcontext(RECOVERABLE_CTX_NAME); } recCtx.rebind(this.serverPeerID, recoverable);
private void createRecoverable() throws Exception { InitialContext ic = new InitialContext(); JMSRecoverable recoverable = new JMSRecoverable(this.serverPeerID, (XAConnectionFactory)setupConnectionFactory(null)); ic.rebind(RECOVERABLE_JNDI_NAME + "/server-" + this.serverPeerID, r...
ic.unbind(RECOVERABLE_JNDI_NAME + "/server-" + this.serverPeerID);
Context recCtx = null; try { recCtx = (Context)ic.lookup(RECOVERABLE_CTX_NAME); recCtx.unbind(serverPeerID); } catch (NamingException e) { }
private void removeRecoverable() throws Exception { InitialContext ic = new InitialContext(); ic.unbind(RECOVERABLE_JNDI_NAME + "/server-" + this.serverPeerID); }
threadPool = new PooledExecutor(new LinkedQueue(), 100); threadPool.setMinimumPoolSize(100);
threadPool = new PooledExecutor(new LinkedQueue(), 50); threadPool.setMinimumPoolSize(50);
public synchronized void start() throws Exception { try { if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); ...
createRecoverable();
public synchronized void start() throws Exception { try { if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); ...
removeRecoverable();
public synchronized void stop() throws Exception { if (!started) { return; } unloadServerAOPConfig(); log.debug(this + " stopping"); tearDownConnectionFactories(); destinationManager.destroyAllDestinations(); pm = null; txRepository...
listBox.addFocusListener(focusListener);
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene...
comp.setBackground(UIManager.getLookAndFeelDefaults().getColor(
comp.setBackground(UIManager.getColor(
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selecte...
comp.setForeground(UIManager.getLookAndFeelDefaults().getColor(
comp.setForeground(UIManager.getColor(
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selecte...
popup.getList().requestFocus(); }
public void setPopupVisible(JComboBox c, boolean v) { if (v) popup.show(); else popup.hide(); }
listBox.removeFocusListener(focusListener);
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis...
getRenderingContext().setRootBox(root);
public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; }// set up CSS Context c = newContext(pageInfo, (Graphics2D) g); synchronized (this) { ...
try { sacSelectorList = CSOM_PARSER.parseSelectors(new org.w3c.css.sac.InputSource(new java.io.StringReader(sacRule.getSelectorText()))); } catch (java.io.IOException ex) { throw new XRRuntimeException("Could not pull SAC Selectors from SAC CSSStyleRule.", ex); }
sacSelectorList = ((CSSStyleRuleImpl) sacRule).getSelectorList();
private void pullSelectorsFromDOMRule(org.w3c.dom.css.CSSStyleRule sacRule) { try { // note, we parse the selector for this instance, not the one from the CSS Style, which // might still be multi-part; selector for TODO is always single (no commas) sacSelectorList = ...
try {
protected void loadConfig(URL url) throws FactoryException { if (url == null) { try { File file = new File(configFile); ConfigLoader.load(new FileInputStream(file)); } catch (IOException e) { throw new FactoryException(e); } } }