org.apache.jetspeed.daemon.impl.util.feeddaemon
Class Instantiator

java.lang.Object
  extended byorg.apache.jetspeed.daemon.impl.util.feeddaemon.Instantiator
All Implemented Interfaces:
java.lang.Runnable

public class Instantiator
extends java.lang.Object
implements java.lang.Runnable

Given an PortletEntry use the PortletFactory to instantiate this Portlet and then place it in the cache.

If the URL isn't

Version:
$Id: Instantiator.java,v 1.26 2004/02/23 02:47:27 jford Exp $
Author:
Kevin A. Burton

Field Summary
static int LOG_INTERVAL
          Specify the interval to log when Portlets are instantiated
static int MAX_WARN_SECONDS
          The maximum number of seconds to wait before warning that the URL took too long to download
 
Constructor Summary
Instantiator(int id, PortletEntry entry)
           
Instantiator(PortletEntry entry)
          Create a Instantiator with info on what to instantiate
 
Method Summary
 void getURL(java.lang.String url)
          Get the url from the net and put it on disk
 void run()
          Do work necessary to instantiate the current Entry but only do this if it is NOT already in the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_WARN_SECONDS

public static final int MAX_WARN_SECONDS
The maximum number of seconds to wait before warning that the URL took too long to download

See Also:
Constant Field Values

LOG_INTERVAL

public static final int LOG_INTERVAL
Specify the interval to log when Portlets are instantiated

See Also:
Constant Field Values
Constructor Detail

Instantiator

public Instantiator(PortletEntry entry)
Create a Instantiator with info on what to instantiate


Instantiator

public Instantiator(int id,
                    PortletEntry entry)
See Also:
Instantiator( PortletEntry )
Method Detail

getURL

public void getURL(java.lang.String url)
            throws java.io.IOException
Get the url from the net and put it on disk

Throws:
java.io.IOException

run

public void run()
Do work necessary to instantiate the current Entry but only do this if it is NOT already in the cache.

Specified by:
run in interface java.lang.Runnable


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.