Java Doc for JAIRMIDescriptor.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » media » jai » remote » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » javax.media.jai.remote 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.jai.remote.RemoteDescriptorImpl
      javax.media.jai.remote.JAIRMIDescriptor

JAIRMIDescriptor
public class JAIRMIDescriptor extends RemoteDescriptorImpl (Code)
This class describes the "jairmi" remote imaging protocol. This protocol assumes that both the client and the server are running JAI. The communication between the client and the server takes place using the Remote Method Invocation (RMI) mechanism.

In order to locate the "jairmi" server, a RMI registry must be running on this server, and the "jairmi" server must have registered itself with this RMI registry by binding itself under the IMAGE_SERVER_BIND_NAME String. The RMI registry is a simple remote object name service that allows remote clients to get a reference to a remote object by name.

The "jairmi" protocol expects the String that represents the server to be a URL formatted String of the form:

 //host:port
 
where host is the name, or IP address of the "jairmi" remote imaging server, and port is the port number where a rmiregistry is running on the same host. A protocol like "rmi:" does not need to be included in this URL formatted String. If the serverName String is null, the local host is used as a default. If the port is not included in the serverName String, it defaults to the well-known port for rmiregistry, 1099.

If the serverName supplied to any "jairmi" protocol implementing class's method is null, then the local host will be used instead.

The default "jairmi" server provided with JAI is com.sun.media.jai.rmi.JAIRMIRemoteServer. This server can be run in the following manner, after starting a rmiregistry on the host where the server will be run:

 java -Djava.rmi.server.codebase="file:$JAI/lib/jai_core.jar file:$JAI/lib/jai_codec.jar" -Djava.rmi.server.useCodebaseOnly=false -Djava.security.policy=file:$JAI/policy com.sun.media.jai.rmi.JAIRMIImageServer
 
where $JAI refers to the directory where JAI is installed. This server binds itself with the running rmiregistry under the IMAGE_SERVER_BIND_NAME String bind name, and can be used to serve "jairmi" requests. The policy file specified above needs to be created by the user. Information on policy files and permissions can be found at

http://java.sun.com/j2se/1.3/docs/guide/security/PolicyFiles.html

http://java.sun.com/j2se/1.3/docs/guide/security/permissions.html

The JAI instance used by the "jairmi" remote imaging server can be configured by providing an implementation of the com.sun.media.jai.remote.JAIServerConfigurationSpi interface on the CLASSPATH when starting the server. For more details, please refer to com.sun.media.jai.remote.JAIServerConfigurationSpi

The "jairmi" remote imaging server supports the following configurable parameters whose values can be specified on the command line when starting the server : -host The server name or server IP address -port The port that rmiregistry is running on -rmiRegistryPort Same as -port option -serverPort The port that the server should listen on, for connections from clients -cacheMemCapacity The memory capacity in bytes. -cacheMemThreshold The memory threshold, which is the fractional amount of cache memory to retain during tile removal -disableDefaultCache Disable use of default tile cache. -schedulerParallelism The degree of parallelism of the default TileScheduler -schedulerPrefetchParallelism The degree of parallelism of the default TileScheduler for tile prefetching -schedulerPriority The priority of tile scheduling for the default TileScheduler -schedulerPrefetchPriority The priority of tile prefetch scheduling for the default TileScheduler -defaultTileSize x The default tile dimensions in the form x -defaultRenderingSize x The default size to render a RenderableImage to, in the form x -serializeDeepCopy Whether a deep copy of the image data should be used when serializing images -tileCodecFormat The default format to be used for tile serialization via TileCodecs -retryInterval The retry interval value to be used for dealing with network errors during remote imaging -numRetries The number of retries to be used for dealing with network errors during remote imaging

It should be noted that if a parameter was set via JAIServerConfigurationSpi, and the command line option for the same parameter specifies a different value, then the command line specified parameter value will be honored. That is to say that the JAIServerConfigurationSpi specified configuration happens first, followed by command line parameter configuration, and the last configuration to be applied overwrites all previous settings.
since:
   JAI 1.1



Field Summary
final public static  StringIMAGE_SERVER_BIND_NAME
     The bind name for the remote "jairmi" server.

Constructor Summary
public  JAIRMIDescriptor()
     Creates a JAIRMIDescriptor.

Method Summary
public  ObjectgetInvalidRegion(String registryModeName, String oldServerName, ParameterBlock oldParamBlock, RenderingHints oldHints, String newServerName, ParameterBlock newParamBlock, RenderingHints newHints, OperationNode node)
     Calculates the region over which two distinct remote renderings of an operation may be expected to differ.
public  NegotiableCapabilitySetgetServerCapabilities(String serverName)
     Returns the set of capabilites supported by the server.
public  OperationDescriptor[]getServerSupportedOperationList(String serverName)
     Returns the list of OperationDescriptors that describe the operations supported by the server.
 voidsendExceptionToListener(String message, Exception e)
    

Field Detail
IMAGE_SERVER_BIND_NAME
final public static String IMAGE_SERVER_BIND_NAME(Code)
The bind name for the remote "jairmi" server. This is also the name that the "jairmi" client looks for when trying to locate a "jairmi" server.




Constructor Detail
JAIRMIDescriptor
public JAIRMIDescriptor() throws java.net.MalformedURLException(Code)
Creates a JAIRMIDescriptor.




Method Detail
getInvalidRegion
public Object getInvalidRegion(String registryModeName, String oldServerName, ParameterBlock oldParamBlock, RenderingHints oldHints, String newServerName, ParameterBlock newParamBlock, RenderingHints newHints, OperationNode node) throws RemoteImagingException(Code)
Calculates the region over which two distinct remote renderings of an operation may be expected to differ. The operation is represented by the OperationNode argument to this method. The String that identifies the operation can be retrieved via the OperationNode's getOperationName() method.

The class of the returned object will vary as a function of the nature of the operation. For rendered and renderable two- dimensional images this should be an instance of a class which implements java.awt.Shape.
Parameters:
  registryModeName - The name of the mode.
Parameters:
  oldServerName - The previous server name.
Parameters:
  oldParamBlock - The previous sources and parameters.
Parameters:
  oldHints - The previous hints.
Parameters:
  newServerName - The current server name.
Parameters:
  newParamBlock - The current sources and parameters.
Parameters:
  newHints - The current hints.
Parameters:
  node - The affected node in the processing chain. The region over which the data of two renderings of thisoperation may be expected to be invalid or nullif there is no common region of validity. If an emptyjava.awt.Shape is returned, this indicatesthat all pixels within the bounds of the old renderingremain valid.
throws:
  IllegalArgumentException - if registryModeNameis null or if the operation requires eithersources or parameters and either oldParamBlockor newParamBlock is null.
throws:
  IllegalArgumentException - if there is no OperationDescriptorfor the specified operationName on any one or both of theservers identified by oldServerName andnewServerName, or if the number of sources orthe name, number and Class of the operation'sparameters is not the same on both the servers.
throws:
  IllegalArgumentException - if oldParamBlock ornewParamBlock do not contain sufficient sourcesor parameters for the operation in question.




getServerCapabilities
public NegotiableCapabilitySet getServerCapabilities(String serverName) throws RemoteImagingException(Code)
Returns the set of capabilites supported by the server. It is the implementing class's responsibility to extract this information from either the server or from its own knowledge of the remote imaging protocol. The "jairmi" protocol gets this information from the server.

If the supplied serverName argument is null, then the local host will be used instead.
Parameters:
  serverName - The String identifying the server.




getServerSupportedOperationList
public OperationDescriptor[] getServerSupportedOperationList(String serverName) throws RemoteImagingException(Code)
Returns the list of OperationDescriptors that describe the operations supported by the server. It is the implementing class's responsibility to extract this information from either the server or from its own knowledge of the remote imaging protocol. The "jairmi" protocol gets this information from the server.

If the supplied serverName argument is null, then the local host will be used instead.
Parameters:
  serverName - The String identifying the server.




sendExceptionToListener
void sendExceptionToListener(String message, Exception e)(Code)



Fields inherited from javax.media.jai.remote.RemoteDescriptorImpl
protected String protocolName(Code)(Java Doc)
protected URL serverNameDocURL(Code)(Java Doc)

Methods inherited from javax.media.jai.remote.RemoteDescriptorImpl
public boolean arePropertiesSupported()(Code)(Java Doc)
public Object getInvalidRegion(String registryModeName, String oldServerName, ParameterBlock oldParamBlock, RenderingHints oldHints, String newServerName, ParameterBlock newParamBlock, RenderingHints newHints, OperationNode node) throws RemoteImagingException(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public ParameterListDescriptor getParameterListDescriptor(String modeName)(Code)(Java Doc)
public PropertyGenerator[] getPropertyGenerators(String modeName)(Code)(Java Doc)
public URL getServerNameDocs()(Code)(Java Doc)
public String[] getSupportedModes()(Code)(Java Doc)
public boolean isModeSupported(String modeName)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.