Package javax.media.jai.remote

Examples of javax.media.jai.remote.RemoteImagingException


/* 347 */     SerializableState ss = SerializerFactory.getState(renderContext, null);
/*     */     try {
/* 349 */       return this.imageServer.createRendering(this.id, ss);
/*     */     } catch (RemoteException re) {
/* 351 */       String message = JaiI18N.getString("RMIServerProxy10");
/* 352 */       this.listener.errorOccurred(message, new RemoteImagingException(message, re), this, false);
/*     */     }
/*     */
/* 357 */     return null;
/*     */   }
View Full Code Here


/* 380 */       if (serverName == null) {
/*     */         try {
/* 382 */           serverName = InetAddress.getLocalHost().getHostAddress();
/*     */         } catch (Exception e) {
/* 384 */           String message = JaiI18N.getString("RMIServerProxy11");
/* 385 */           this.listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */         }
/*     */
/*     */       }
/*     */
/* 393 */       String serviceName = new String("rmi://" + serverName + "/" + "JAIRMIRemoteServer1.1");
/*     */
/* 398 */       this.imageServer = null;
/*     */       try {
/* 400 */         this.imageServer = ((ImageServer)Naming.lookup(serviceName));
/*     */       } catch (Exception e) {
/* 402 */         String message = JaiI18N.getString("RMIServerProxy12");
/* 403 */         this.listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */       }
/*     */
/*     */     }
/*     */
/* 410 */     return this.imageServer;
View Full Code Here

/*     */     try
/*     */     {
/* 200 */       return rmisp.getProperty(name);
/*     */     } catch (Exception e) {
/* 202 */       String message = JaiI18N.getString("JAIRMICRIF7");
/* 203 */       sendExceptionToListener(null, message, new RemoteImagingException(message, e));
/*     */     }
/*     */
/* 207 */     return null;
/*     */   }
View Full Code Here

/*     */     try {
/* 219 */       return remoteImage.getPropertyNames(operationName);
/*     */     }
/*     */     catch (RemoteException e) {
/* 222 */       String message = JaiI18N.getString("JAIRMICRIF8");
/* 223 */       sendExceptionToListener(null, message, new RemoteImagingException(message, e));
/*     */     }
/*     */
/* 227 */     return null;
/*     */   }
View Full Code Here

/* 232 */     if (serverName == null) {
/*     */       try {
/* 234 */         serverName = InetAddress.getLocalHost().getHostAddress();
/*     */       } catch (UnknownHostException e) {
/* 236 */         String message = JaiI18N.getString("RMIServerProxy11");
/* 237 */         sendExceptionToListener(null, message, new RemoteImagingException(message, e));
/*     */       }
/*     */
/*     */     }
/*     */
/* 244 */     String serviceName = new String("rmi://" + serverName + "/" + "JAIRMIRemoteServer1.1");
/*     */     try
/*     */     {
/* 250 */       return (ImageServer)Naming.lookup(serviceName);
/*     */     } catch (NotBoundException e) {
/* 252 */       String message = JaiI18N.getString("RMIServerProxy12");
/* 253 */       sendExceptionToListener(null, message, new RemoteImagingException(message, e));
/*     */     }
/*     */     catch (MalformedURLException e)
/*     */     {
/* 257 */       String message = JaiI18N.getString("RMIServerProxy12");
/* 258 */       sendExceptionToListener(null, message, new RemoteImagingException(message, e));
/*     */     }
/*     */     catch (RemoteException e) {
/* 261 */       String message = JaiI18N.getString("RMIServerProxy12");
/* 262 */       sendExceptionToListener(null, message, new RemoteImagingException(message, e));
/*     */     }
/*     */
/* 266 */     return null;
/*     */   }
View Full Code Here

/* 280 */     ImageServer remoteImage = getImageServer(serverName);
/*     */     try {
/* 282 */       return remoteImage.isDynamic(operationName);
/*     */     } catch (RemoteException e) {
/* 284 */       String message = JaiI18N.getString("JAIRMICRIF9");
/* 285 */       sendExceptionToListener(null, message, new RemoteImagingException(message, e));
/*     */     }
/*     */
/* 289 */     return true;
/*     */   }
View Full Code Here

/* 518 */       remoteImage.createRenderableOp(opID, rop.getOperationName(), newPB);
/*     */     }
/*     */     catch (RemoteException e)
/*     */     {
/* 522 */       String message = JaiI18N.getString("RMIServerProxy8");
/* 523 */       listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */     }
/*     */
/* 530 */     if (sources != null)
/*     */     {
/* 532 */       for (int i = 0; i < sources.size(); i++)
/*     */       {
/* 534 */         Object source = sources.elementAt(i);
/*     */
/* 536 */         if ((source instanceof RemoteRenderedOp))
/*     */         {
/* 540 */           RMIServerProxy rmisp = (RMIServerProxy)((RemoteRenderedOp)source).getRendering();
/*     */           try
/*     */           {
/* 544 */             if (rmisp.getServerName().equalsIgnoreCase(rop.getServerName()))
/*     */             {
/* 549 */               remoteImage.setRenderedSource(opID, rmisp.getRMIID(), i);
/*     */
/* 552 */               newPB.setSource(rmisp, i);
/*     */             }
/*     */             else
/*     */             {
/* 557 */               remoteImage.setRenderedSource(opID, rmisp.getRMIID(), rmisp.getServerName(), rmisp.getOperationName(), i);
/*     */
/* 563 */               newPB.setSource(rmisp, i);
/*     */             }
/*     */           } catch (RemoteException e) {
/* 566 */             String message = JaiI18N.getString("RMIServerProxy6");
/* 567 */             listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */           }
/*     */
/*     */         }
/* 573 */         else if ((source instanceof RenderedOp))
/*     */         {
/* 579 */           RenderedImage ri = ((RenderedOp)source).getRendering();
/*     */           try {
/* 581 */             SerializableRenderedImage sri = new SerializableRenderedImage(ri);
/*     */
/* 583 */             remoteImage.setRenderedSource(opID, sri, i);
/* 584 */             newPB.setSource(sri, i);
/*     */           } catch (RemoteException e) {
/* 586 */             String message = JaiI18N.getString("RMIServerProxy6");
/* 587 */             listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */           }
/*     */
/*     */         }
/* 593 */         else if ((source instanceof RenderedImage))
/*     */         {
/* 599 */           RenderedImage ri = (RenderedImage)source;
/*     */           try {
/* 601 */             SerializableRenderedImage sri = new SerializableRenderedImage(ri);
/*     */
/* 603 */             remoteImage.setRenderedSource(opID, sri, i);
/* 604 */             newPB.setSource(sri, i);
/*     */           } catch (RemoteException e) {
/* 606 */             String message = JaiI18N.getString("RMIServerProxy6");
/* 607 */             listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */           }
/*     */
/*     */         }
/* 613 */         else if ((source instanceof RemoteRenderableOp))
/*     */         {
/* 618 */           RenderableRMIServerProxy rrmisp = createProxy((RemoteRenderableOp)source);
/*     */           try
/*     */           {
/* 625 */             if (rrmisp.getServerName().equalsIgnoreCase(rop.getServerName()))
/*     */             {
/* 627 */               remoteImage.setRenderableSource(opID, rrmisp.getRMIID(), i);
/*     */
/* 630 */               newPB.setSource(rrmisp, i);
/*     */             }
/*     */             else
/*     */             {
/* 635 */               remoteImage.setRenderableRMIServerProxyAsSource(opID, rrmisp.getRMIID(), rrmisp.getServerName(), rrmisp.getOperationName(), i);
/*     */
/* 641 */               newPB.setSource(rrmisp, i);
/*     */             }
/*     */           } catch (RemoteException e) {
/* 644 */             String message = JaiI18N.getString("RMIServerProxy6");
/* 645 */             listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */           }
/*     */
/*     */         }
/* 651 */         else if ((source instanceof RenderableImage))
/*     */         {
/* 657 */           RenderableImage ri = (RenderableImage)source;
/*     */           try {
/* 659 */             SerializableRenderableImage sri = new SerializableRenderableImage(ri);
/*     */
/* 661 */             remoteImage.setRenderableSource(opID, sri, i);
/* 662 */             newPB.setSource(sri, i);
/*     */           } catch (RemoteException e) {
/* 664 */             String message = JaiI18N.getString("RMIServerProxy6");
/* 665 */             listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */           }
/*     */
/*     */         }
/*     */
/*     */       }
View Full Code Here

/*     */
/*     */   private void sendExceptionToListener(RenderContext renderContext, String message, Exception e)
/*     */   {
/* 688 */     ImagingListener listener = ImageUtil.getImagingListener(renderContext);
/*     */
/* 690 */     listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */   }
View Full Code Here

/* 176 */       UnicastRemoteObject.exportObject(this);
/*     */     } catch (RemoteException e) {
/* 178 */       ImagingListener listener = ImageUtil.getImagingListener((RenderingHints)null);
/*     */
/* 180 */       String message = JaiI18N.getString("RMIImageImpl0");
/* 181 */       listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/*     */     }
/*     */   }
View Full Code Here

/*      */
/*      */   private static void sendExceptionToListener(String message, Exception e)
/*      */   {
/* 1592 */     ImagingListener listener = ImageUtil.getImagingListener((RenderingHints)null);
/*      */
/* 1594 */     listener.errorOccurred(message, new RemoteImagingException(message, e), JAIRMIImageServer.class, false);
/*      */   }
View Full Code Here

TOP

Related Classes of javax.media.jai.remote.RemoteImagingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.