Deprecated API


Contents
Deprecated Interfaces
com.sun.enterprise.web.connector.grizzly.comet.CometHandler
          use CometHandler from com.sun.grizzly.comet.CometHandler. 
com.sun.grizzly.util.StreamAlgorithm
          Use the ProtocolParser instead. 
 

Deprecated Classes
com.sun.grizzly.util.ByteBufferInputStream
          - Use InputReader instead 
com.sun.enterprise.web.connector.grizzly.comet.CometContext
          use CometContext 
com.sun.enterprise.web.connector.grizzly.comet.CometEngine
          - Use CometEngine 
com.sun.enterprise.web.connector.grizzly.comet.CometEvent
          use CometEvent 
com.sun.enterprise.web.connector.grizzly.comet.CometReader
          use CometReader from com.sun.grizzly.comet 
com.sun.enterprise.web.connector.grizzly.comet.CometTask
           
com.sun.enterprise.web.connector.grizzly.comet.CometWriter
          use CometWriter from com.sun.grizzly.comet 
com.sun.enterprise.web.connector.grizzly.comet.DefaultNotificationHandler
          use DefaultNotificationHandler from com.sun.grizzly.comet 
com.sun.grizzly.util.DefaultThreadPool
          please use GrizzlyExecutorService.createInstance() instead. 
com.sun.grizzly.tcp.DynamicContentAdapter
          - Use GrizzlyAdapter instead. 
com.sun.grizzly.standalone.MimeType
            
com.sun.grizzly.filter.UDPReadFilter
          The ReadFilter can be used for both TCP and UDP. 
 

Deprecated Methods
com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.addGrizzlyAdapter(GrizzlyAdapter)
          - uses GrizzlyAdapterChain.addGrizzlyAdapter(com.sun.grizzly.tcp.http11.GrizzlyAdapter, java.lang.String[]) 
com.sun.grizzly.http.embed.GrizzlyWebServer.addGrizzlyAdapter(GrizzlyAdapter)
          - Use GrizzlyWebServer.addGrizzlyAdapter(GrizzlyAdapter, String[]) 
com.sun.grizzly.Controller.cancelKey(SelectionKey)
            
com.sun.grizzly.util.buf.B2CConverter.convert(ByteChunk, CharChunk)
            
com.sun.grizzly.util.buf.B2CConverterBlocking.convert(ByteChunk, CharChunk)
            
com.sun.grizzly.util.ClassLoaderUtil.createClassloader(File, ClassLoader)
          removal candidate, never used 
com.sun.grizzly.Context.execute()
            
com.sun.grizzly.NIOContext.execute()
            
com.sun.grizzly.SelectionKeyHandler.expire(SelectionKey, long)
            
com.sun.grizzly.DefaultSelectionKeyHandler.expire(SelectionKey, long)
            
com.sun.grizzly.BaseSelectionKeyHandler.expire(SelectionKey, long)
            
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.explodeAndCreateWebAppClassLoader(String, URLClassLoader)
          trying to get remove it 
com.sun.grizzly.util.GrizzlyExecutorService.getActiveCount()
          please use ThreadPoolMonitoringProbes to intercept thread pool events and build statistics. 
com.sun.grizzly.comet.CometContext.getCometHandler(int)
           
com.sun.grizzly.util.GrizzlyExecutorService.getCompletedTaskCount()
          please use ThreadPoolMonitoringProbes to intercept thread pool events and build statistics. 
com.sun.grizzly.comet.CometContext.getContextPath()
          - use getTopic. 
com.sun.grizzly.util.GrizzlyExecutorService.getCorePoolSize()
          please use GrizzlyExecutorService.getConfiguration() to check thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.getKeepAliveTime(TimeUnit)
          please use GrizzlyExecutorService.getConfiguration() to check thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.getLargestPoolSize()
          please use ThreadPoolMonitoringProbes to intercept thread pool events and build statistics. 
com.sun.grizzly.util.GrizzlyExecutorService.getMaximumPoolSize()
          please use GrizzlyExecutorService.getConfiguration() to check thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.getMaxQueuedTasksCount()
          please use GrizzlyExecutorService.getConfiguration() to check thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.getName()
          please use GrizzlyExecutorService.getConfiguration() to check thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.getPoolSize()
          please use ThreadPoolMonitoringProbes to intercept thread pool events and build statistics. 
com.sun.grizzly.TCPSelectorHandler.getPortLowLevel()
          Use getPort 
com.sun.grizzly.http.SelectorThread.getPortLowLevel()
          - uses SelectorThread.getPort() instead 
com.sun.grizzly.util.GrizzlyExecutorService.getPriority()
          please use GrizzlyExecutorService.getConfiguration() to check thread pool configuration settings. 
com.sun.grizzly.arp.AsyncTask.getProcessorTask()
          - Use AsyncExecutor.getProcessorTask() 
com.sun.grizzly.arp.AsyncProcessorTask.getProcessorTask()
          - Use AsyncExecutor.getProcessorTask() 
com.sun.grizzly.util.GrizzlyExecutorService.getQueue()
          please use GrizzlyExecutorService.getConfiguration() to check thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.getQueueSize()
          please use ThreadPoolMonitoringProbes to intercept thread pool events and build statistics. 
com.sun.grizzly.tcp.StaticResourcesAdapter.getRootFolder()
          - use StaticResourcesAdapter.getRootFolders() 
com.sun.grizzly.Controller.getSelectionKeyHandler()
          Return the SelectionKeyHandler Method is deprecated. Use SelectorHandler.getSelectionKeyHandler() instead 
com.sun.grizzly.http.SelectorThread.getSelector()
          To get the right Selector, please request context associated SelectorHandler: SelectorHandler.getSelector() 
com.sun.grizzly.http.SelectorThread.getSelector(int)
          This method is not safe when a machine with multiple listeners are bound to different addresses using the same port. Use SelectorThread.getSelector(java.net.InetAddress, int). 
com.sun.grizzly.http.SelectorThread.getSelectorHandler()
          use SelectorHandler, which is usually provided by the current Context. 
com.sun.grizzly.http.servlet.ServletContextImpl.getServlet(String)
          As of Java Servlet API 2.1, with no direct replacement. 
com.sun.grizzly.http.servlet.ServletContextImpl.getServletNames()
          As of Java Servlet API 2.1, with no direct replacement. 
com.sun.grizzly.http.servlet.ServletContextImpl.getServlets()
          As of Java Servlet API 2.1, with no direct replacement. 
com.sun.grizzly.util.GrizzlyExecutorService.getTaskCount()
          please use ThreadPoolMonitoringProbes to intercept thread pool events and build statistics. 
com.sun.grizzly.util.GrizzlyExecutorService.getThreadFactory()
          please use GrizzlyExecutorService.getConfiguration() to check thread pool configuration settings. 
com.sun.grizzly.http.StatsThreadPool.injectToStringAttributes(StringBuilder)
            
com.sun.grizzly.comet.CometContext.notify(Object, int, int)
          - use notify(attachment,eventType,CometHandler; 
com.sun.grizzly.SelectionKeyHandler.register(SelectionKey, long)
            
com.sun.grizzly.BaseSelectionKeyHandler.register(SelectionKey, long)
            
com.sun.grizzly.websockets.WebSocketEngine.register(String, WebSocketApplication)
           
com.sun.grizzly.comet.CometContext.removeCometHandler(int)
           
com.sun.grizzly.util.GrizzlyExecutorService.setCorePoolSize(int)
          please use GrizzlyExecutorService.reconfigure(com.sun.grizzly.util.ThreadPoolConfig) to change thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.setKeepAliveTime(long, TimeUnit)
          please use GrizzlyExecutorService.reconfigure(com.sun.grizzly.util.ThreadPoolConfig) to change thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.setMaximumPoolSize(int)
          please use GrizzlyExecutorService.reconfigure(com.sun.grizzly.util.ThreadPoolConfig) to change thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.setMaxQueuedTasksCount(int)
          please use GrizzlyExecutorService.reconfigure(com.sun.grizzly.util.ThreadPoolConfig) to change thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.setName(String)
          please use GrizzlyExecutorService.reconfigure(com.sun.grizzly.util.ThreadPoolConfig) to change thread pool configuration settings. 
com.sun.grizzly.util.GrizzlyExecutorService.setPriority(int)
          please use GrizzlyExecutorService.reconfigure(com.sun.grizzly.util.ThreadPoolConfig) to change thread pool configuration settings. 
com.sun.grizzly.arp.AsyncTask.setProcessorTask(ProcessorTask)
          - Use AsyncExecutor.setProcessorTask(com.sun.grizzly.http.ProcessorTask) 
com.sun.grizzly.arp.AsyncProcessorTask.setProcessorTask(ProcessorTask)
          - Use AsyncExecutor.setProcessorTask(com.sun.grizzly.http.ProcessorTask) 
com.sun.grizzly.tcp.StaticResourcesAdapter.setRootFolder(String)
          - use StaticResourcesAdapter.addRootFolder(java.lang.String) 
com.sun.grizzly.Controller.setSelectionKeyHandler(SelectionKeyHandler)
          Set the SelectionKeyHandler to use for managing the life cycle of SelectionKey. Method is deprecated. Use SelectorHandler.setSelectionKeyHandler() instead 
com.sun.grizzly.util.GrizzlyExecutorService.setThreadFactory(ThreadFactory)
          please use GrizzlyExecutorService.reconfigure(com.sun.grizzly.util.ThreadPoolConfig) to change thread pool configuration settings. 
 

Deprecated Constructors
com.sun.grizzly.arp.AsyncProtocolFilter(Class, int)
          use AsyncProtocolFilter.AsyncProtocolFilter(Class, java.net.InetAddress, int) 
com.sun.grizzly.http.DefaultProtocolFilter(Class, int)
          call DefaultProtocolFilter.DefaultProtocolFilter(Class, java.net.InetAddress, int) 
com.sun.grizzly.http.embed.GrizzlyWebServer(int, int)
          use GrizzlyWebServer.setMaxThreads(int) to set maximum number of threads in a thread pool 
com.sun.grizzly.http.embed.GrizzlyWebServer(int, int, String)
          use GrizzlyWebServer.setMaxThreads(int) to set maximum number of threads in a thread pool 
com.sun.grizzly.http.embed.GrizzlyWebServer(int, int, String, boolean)
          use GrizzlyWebServer.setMaxThreads(int) to set maximum number of threads in a thread pool 
com.sun.grizzly.http.jk.common.JkInputStream(MsgContext)
            
com.sun.grizzly.util.buf.MessageBytes()
          Use static newInstance() in order to allow future hooks. 
com.sun.grizzly.http.jk.common.MsgAjp()
          Use the buffer size constructor. 
com.sun.grizzly.http.jk.core.MsgContext()
            
com.sun.grizzly.ssl.SSLAsyncProtocolFilter(Class, int, SSLImplementation)
          Use com.sun.grizzly.ssl.SSLAsyncProtocolFilter#AsyncProtocolFilter(Class, java.net.InetAddress, int) 
com.sun.grizzly.ssl.SSLDefaultProtocolFilter(Class, int, SSLImplementation)
          Use com.sun.grizzly.ssl.SSLDefaultProtocolFilter#DefaultProtocolFilter(Class, java.net.InetAddress, int) 
 



Copyright © 2012 Oracle Corporation. All Rights Reserved.