|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.dispatch.DispatchServer
public class DispatchServer
The dispatch server is responsible for building Invocations, specifically for creating the FilterChain for the invocation.
| Constructor Summary | |
|---|---|
DispatchServer()
|
|
| Method Summary | |
|---|---|
void |
addServerListener(ServerListener listener)
Adds a listener. |
Invocation |
buildInvocation(Invocation invocation)
Builds the invocation. |
Invocation |
buildInvocation(java.lang.Object protocolKey,
Invocation invocation)
Builds the invocation, saving its value keyed by the protocol key. |
void |
clearCache()
Clears the proxy cache. |
Invocation |
createInvocation()
Creates an invocation. |
InvocationDecoder |
createInvocationDecoder()
Returns the invocation decoder for configuration. |
void |
destroy()
Closes the server. |
java.lang.Object |
getAttribute(java.lang.String key)
Returns the named attribute. |
java.util.Iterator |
getAttributeNames()
Returns an iteration of attribute names. |
java.lang.ClassLoader |
getClassLoader()
Gets the class loader. |
DispatchBuilder |
getDispatchBuilder()
Gets the dispatch builder. |
Invocation |
getInvocation(java.lang.Object protocolKey)
Returns the cached invocation. |
long |
getInvocationCacheHitCount()
Returns the invocation cache hit count. |
long |
getInvocationCacheMissCount()
Returns the invocation cache hit count. |
InvocationDecoder |
getInvocationDecoder()
Returns the InvocationDecoder. |
java.util.ArrayList<Invocation> |
getInvocations()
Returns the invocations. |
java.lang.String |
getServerId()
Gets the server's id. |
java.lang.String |
getURLCharacterEncoding()
Sets URL encoding. |
void |
init()
Initializes the server. |
protected void |
invalidateMatchingInvocations(InvocationMatcher matcher)
Clears matching entries. |
boolean |
isDestroyed()
Returns true if the server is destroyed. |
boolean |
isIgnoreClientDisconnect()
Return true for ignoring client disconnect. |
boolean |
isModified()
Returns true if the server has been modified and needs restarting. |
boolean |
logModified(java.util.logging.Logger log)
Log the reason for modification. |
java.lang.Object |
removeAttribute(java.lang.String key)
Removes the named attribute. |
void |
restart()
Closes the server. |
java.lang.Object |
setAttribute(java.lang.String key,
java.lang.Object value)
Sets the named attribute. |
void |
setDispatchBuilder(DispatchBuilder builder)
Sets the dispatch builder. |
void |
setInvocationCacheMaxURLLength(int length)
Sets the max url length. |
void |
setInvocationCacheSize(int size)
Sets the invocation cache size. |
void |
setServerId(java.lang.String serverId)
Gets the server's id. |
void |
update()
Closes the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DispatchServer()
| Method Detail |
|---|
public java.lang.String getServerId()
public void setServerId(java.lang.String serverId)
public java.lang.ClassLoader getClassLoader()
public void setDispatchBuilder(DispatchBuilder builder)
public DispatchBuilder getDispatchBuilder()
public boolean isIgnoreClientDisconnect()
public void setInvocationCacheSize(int size)
public void setInvocationCacheMaxURLLength(int length)
public void init()
public InvocationDecoder getInvocationDecoder()
public java.lang.String getURLCharacterEncoding()
public InvocationDecoder createInvocationDecoder()
public final Invocation getInvocation(java.lang.Object protocolKey)
public Invocation createInvocation()
public Invocation buildInvocation(java.lang.Object protocolKey,
Invocation invocation)
throws java.lang.Throwable
protocolKey - protocol-specific key to save the invocation ininvocation - the invocation to build.
java.lang.Throwable
public Invocation buildInvocation(Invocation invocation)
throws java.lang.Throwable
java.lang.Throwablepublic void clearCache()
protected void invalidateMatchingInvocations(InvocationMatcher matcher)
public java.util.ArrayList<Invocation> getInvocations()
public long getInvocationCacheHitCount()
public long getInvocationCacheMissCount()
public java.lang.Object getAttribute(java.lang.String key)
key - the attribute key
public java.util.Iterator getAttributeNames()
public java.lang.Object setAttribute(java.lang.String key,
java.lang.Object value)
key - the attribute keyvalue - the attribute value
public java.lang.Object removeAttribute(java.lang.String key)
key - the attribute key
public boolean isModified()
isModified in interface Dependencypublic boolean logModified(java.util.logging.Logger log)
logModified in interface Dependencypublic void addServerListener(ServerListener listener)
public boolean isDestroyed()
public void update()
public void restart()
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||