|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.locomotive.server.ServiceRoutingTable.ServiceEntry | +--org.locomotive.loco.servlet.ServletRoutingTable.ServletEntry
Field Summary | |
protected ServletFactory |
servlet_factory
We keep a reference to our ServletFactory -- it makes servlets for us in another Thread. |
Fields inherited from class org.locomotive.server.ServiceRoutingTable.ServiceEntry |
availability,
cached,
classname,
config_path,
last_availability_event_timestamp,
pattern,
props,
service,
theclass,
unavailability_reason,
unavailable_seconds |
Method Summary | |
int |
getCurrentServletCount()
The ServletFactory calls this method when it needs to know how many servlets that the primary listener (like a ServletPool or a ServletRoutingTable) currently holds. |
int |
getMaxServletCount()
The ServletFactory calls this method when it needs to know the maximum number of servlets that the primary listener (like a ServletPool or a ServletRoutingTable) will hold.. |
int |
getMinServletCount()
The ServletFactory calls this method when it needs to know how many servlets that the primary listener (like a ServletPool or a ServletRoutingTable) needs to keep active and ready to serve. |
protected javax.servlet.Servlet |
getServlet()
Give out the Servlet, but only to classes within the same package. |
ServletFactory |
getServletFactory()
Returns a reference to this ServletPool's ServletFactory Object. |
void |
handleServletFactoryEvent(ServletFactoryEvent servlet_factory_event)
The ServletFactory calls this method when it has either successfully instantiated and initialized a servlet (and the new servlet is ready to serve requests), or when the ServletFactory needs to signal the ServletFactoryListener(s) that some other event has occurred. |
protected void |
initialize()
This needs to be overridden to instantiate and create the service. |
void |
setServletFactory(ServletFactory new_servlet_factory)
|
boolean |
shutdown(Log server_log)
Shuts down the service for this ServletEntry. |
boolean |
shutdown(javax.servlet.Servlet servlet_instance,
Log server_log)
Shuts down just the specified servlet instance for this ServletEntry. |
Methods inherited from class org.locomotive.server.ServiceRoutingTable.ServiceEntry |
getAvailability,
getLastAvailabilityEventTimestamp,
getService,
getUnavailabilityReason,
getUnavailableSeconds,
load,
setAvailability,
setLastAvailabilityEventTimestamp,
setUnavailabilityReason,
setUnavailableSeconds |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected ServletFactory servlet_factory
ServletFactory
Method Detail |
protected void initialize() throws InitializationException
public boolean shutdown(Log server_log)
public boolean shutdown(javax.servlet.Servlet servlet_instance, Log server_log)
public int getMinServletCount()
public int getMaxServletCount()
public int getCurrentServletCount()
public void handleServletFactoryEvent(ServletFactoryEvent servlet_factory_event)
servlet_factory_event
- an event that tells this
ServletFactoryListener Object that a servlet is
ready to serve requests (in which case the servlet
is encapsulated in the event Object), or that the
servlet is unavailable.ServletFactoryEvent
public ServletFactory getServletFactory()
public void setServletFactory(ServletFactory new_servlet_factory)
protected javax.servlet.Servlet getServlet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |