|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrunx.kernel.ServiceAdapter
|
+--jrunx.scheduler.ThreadPoolService
|
+--jrun.servlet.network.NetworkService
|
+--jrun.servlet.jrpp.JRunProxyService
| Field Summary | |
static java.lang.String |
SERVER_LOAD_ATTRIBUTE
|
| Fields inherited from class jrun.servlet.network.NetworkService |
BYTES_IN, BYTES_OUT, HANDLED_MS, HANDLED_RQ, metricsElapsedIndex, metricsIndexIn, metricsIndexOut, metricsServicedIndex, serverSocketFactory, ss |
| Fields inherited from class jrunx.scheduler.ThreadPoolService |
metrics, threadPool |
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Fields inherited from interface jrunx.scheduler.RunnableFactory |
BUSY, EXCEPTION, SHUTDOWN |
| Constructor Summary | |
JRunProxyService()
|
|
| Method Summary | |
protected java.net.Socket |
accept()
Subclasses can override this to change the socket class or implement a different concurrency policy. |
java.lang.Runnable |
createRunnable()
Returns an Runnable object by doing a protocol-specific accept or receive; the Runnable encapsulates an atomic unit of work. |
void |
destroy()
Every service is eventually destroyed. |
void |
destroyRunnable(java.lang.Runnable r,
int reason)
destroy the given runnable. |
boolean |
getCacheRealPath()
If true, the results from getRealPath() will be cached. |
JRunProxyClusterHelper |
getClusterHelper()
|
int |
getClusterSequence()
|
java.lang.String |
getLoadBalancingAlgorithm()
Gets the loadbalancing algorithm |
int |
getMapCheck()
Gets the time how often web server connector should refrehs mappings |
java.lang.String |
getMetricsPrefix()
Gets the prefix to be used for metrics, such as "jcp" or "web". |
int |
getServerWeight()
Gets the 'server weight' used in Weighted RoundRobin and Weighted Random RR |
java.lang.String |
getServiceName()
Gets the service name, such as JRun Web Server. |
ServletEngine |
getServletEngine()
|
java.lang.String |
getServletInfo()
|
boolean |
getSSL()
Returns whether or not SSL is enabled between the web server and the ProxyService |
java.lang.String |
getStickySessions()
Gets whether or not connector load balancing will honour session stickyness |
void |
init()
Not every service needs to init, implement it out of convenience. |
void |
invokeRunnable(java.lang.Runnable r)
process this request. |
void |
setCacheRealPath(boolean cache)
If true, the results from getRealPath() will be cached. |
void |
setClusterSequence(int seq)
|
void |
setKeyStore(java.lang.String keyStore)
Sets the keystore file name |
void |
setKeyStorePassword(java.lang.String keyStorePassword)
Sets the keystore password |
void |
setLoadBalancingAlgorithm(java.lang.String algorithm)
Sets the loadbalancing algorithm to use |
void |
setMapCheck(int time)
Sets the time how ofter the web server connector will try to refresh mappings, in seconds, 0 if only do at startup |
void |
setServerWeight(int weight)
Sets the 'server weight' used in Weighted RoundRobin and Weighted Random RR |
void |
setStickySessions(java.lang.String sticky)
Sets whether or not connector load balancing will honour session stickyness |
void |
setTrustStore(java.lang.String trustStore)
Sets the truststore file name |
void |
start()
Every service other than mere data collections should start |
void |
stop()
Every service other than mere data collections should stop |
java.lang.Runnable |
swapRunnable(java.lang.Runnable r)
this is an alternative method for sourcing runnables, letting the runnable factory take care of creation and destruction of the runnable objects. |
| Methods inherited from class jrun.servlet.network.NetworkService |
bindToSocket, createMetrics, getAvailablePort, getBacklog, getBindAddress, getInputMetricIndex, getInterface, getMetrics, getOutputMetricIndex, getPort, getRunnableFactory, getServicedMetricIndex, getSocketFactoryName, getTimeout, getTimeoutMs, setBacklog, setBindAddress, setInterface, setPort, setSocketFactoryName, setTimeout, updateRequestMetrics |
| Methods inherited from class jrunx.scheduler.ThreadPoolService |
getActiveHandlerThreads, getMaxHandlerThreads, getMinHandlerThreads, getThreadWaitTimeout, setActiveHandlerThreads, setMaxHandlerThreads, setMinHandlerThreads, setThreadWaitTimeout |
| Methods inherited from interface jrun.servlet.network.NetworkServiceMBean |
getAvailablePort, getBacklog, getBindAddress, getInterface, getPort, getSocketFactoryName, getTimeout, setBacklog, setBindAddress, setInterface, setPort, setSocketFactoryName, setTimeout |
| Methods inherited from interface jrunx.scheduler.ThreadPoolServiceMBean |
getActiveHandlerThreads, getMaxHandlerThreads, getMinHandlerThreads, getThreadWaitTimeout, setActiveHandlerThreads, setMaxHandlerThreads, setMinHandlerThreads, setThreadWaitTimeout |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
getStatus, updateStatus |
| Field Detail |
public static final java.lang.String SERVER_LOAD_ATTRIBUTE
| Constructor Detail |
public JRunProxyService()
| Method Detail |
public java.lang.String getServletInfo()
public void init()
throws java.lang.Exception
ServiceAdapterinit in interface Serviceinit in class NetworkService
public void start()
throws java.lang.Exception
ServiceAdapterstart in interface Servicestart in class NetworkService
public void stop()
throws java.lang.Exception
ServiceAdapterstop in interface Servicestop in class NetworkService
public void destroy()
throws java.lang.Exception
ServiceAdapterdestroy in interface Servicedestroy in class ServiceAdapter
protected java.net.Socket accept()
throws java.io.IOException,
java.lang.InterruptedException
NetworkServiceaccept in class NetworkService
public java.lang.Runnable createRunnable()
throws java.lang.InterruptedException
RunnableFactoryjrunx.scheduler.RunnableFactoryjava.lang.InterruptedException - if a timeout or interrupt occurs
public java.lang.Runnable swapRunnable(java.lang.Runnable r)
throws java.lang.InterruptedException
RunnableFactoryreturning null from this method is an efficient way to signal no more swapping can be done, without throwing an exception.
jrunx.scheduler.RunnableFactoryep - a previously used endpoint for recyclingjava.lang.InterruptedException - if an interrupt or timeout occurs.
public void destroyRunnable(java.lang.Runnable r,
int reason)
RunnableFactorypublic void invokeRunnable(java.lang.Runnable r)
RunnableFactorypublic ServletEngine getServletEngine()
public java.lang.String getServiceName()
NetworkServicegetServiceName in class NetworkServicepublic java.lang.String getMetricsPrefix()
NetworkServicegetMetricsPrefix in class NetworkServicepublic void setLoadBalancingAlgorithm(java.lang.String algorithm)
JRunProxyServiceMBeansetLoadBalancingAlgorithm in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeanalgorithm - public java.lang.String getLoadBalancingAlgorithm()
JRunProxyServiceMBeangetLoadBalancingAlgorithm in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeanpublic void setServerWeight(int weight)
JRunProxyServiceMBeansetServerWeight in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeanweight - public int getServerWeight()
JRunProxyServiceMBeangetServerWeight in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeanpublic void setMapCheck(int time)
JRunProxyServiceMBeansetMapCheck in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeantime - public int getMapCheck()
JRunProxyServiceMBeangetMapCheck in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeanpublic void setCacheRealPath(boolean cache)
JRunProxyServiceMBeansetCacheRealPath in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeancache - Whether getRealPath() should be cached.public boolean getCacheRealPath()
JRunProxyServiceMBeangetCacheRealPath in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeanpublic void setStickySessions(java.lang.String sticky)
JRunProxyServiceMBeansetStickySessions in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeansticky, - 'true' / 'false'public java.lang.String getStickySessions()
JRunProxyServiceMBeangetStickySessions in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeanpublic void setKeyStore(java.lang.String keyStore)
JRunProxyServiceMBeansetKeyStore in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeankeystore - filespecpublic void setKeyStorePassword(java.lang.String keyStorePassword)
JRunProxyServiceMBeansetKeyStorePassword in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeankeystore - passwordpublic void setTrustStore(java.lang.String trustStore)
JRunProxyServiceMBeansetTrustStore in interface JRunProxyServiceMBeanjrun.servlet.jrpp.JRunProxyServiceMBeantruststore - filespecpublic boolean getSSL()
JRunProxyServiceMBeangetSSL in interface JRunProxyServiceMBeanpublic JRunProxyClusterHelper getClusterHelper()
getClusterHelper in interface JRunProxyInterfacepublic void setClusterSequence(int seq)
setClusterSequence in interface JRunProxyInterfacepublic int getClusterSequence()
getClusterSequence in interface JRunProxyInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||