|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.jruby.RubyObjectPool
public class RubyObjectPool
An object pool for ruby runtime.
Constructor Summary | |
---|---|
RubyObjectPool()
|
Method Summary | |
---|---|
org.jruby.Ruby |
borrowRuntime()
Retrives ruby runtime from the object pool. |
String |
getJrubyLib()
Gets JRUBY_LIB directory. |
int |
getNumberOfRuntime()
Gets the number of directory. |
String |
getRailsRoot()
Gets RAILS_ROOT directory. |
protected BlockingQueue<org.jruby.Ruby> |
getRubyRuntimeQueue()
|
protected org.jruby.Ruby |
initializeRubyRuntime()
|
boolean |
isAsyncEnabled()
|
protected void |
loadRubyLibraries(org.jruby.Ruby runtime)
|
void |
returnRuntime(org.jruby.Ruby runtime)
Returns runtime to the object pool. |
void |
setAsyncEnabled(boolean asyncEnabled)
|
void |
setJrubyLib(String jrubyLib)
Sets JRUBY_LIB directory. |
void |
setNumberOfRuntime(int numberOfRuntime)
Sets the number of pooling runtime. |
void |
setRailsRoot(String railsRoot)
Sets RAILS_ROOT directory. |
void |
start()
Starts the object pool. |
void |
stop()
Shutdowns the object pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RubyObjectPool()
Method Detail |
---|
public org.jruby.Ruby borrowRuntime()
public void returnRuntime(org.jruby.Ruby runtime)
runtime
- - JRuby Rails runtimepublic void setJrubyLib(String jrubyLib)
jrubyLib
- JRUBY_LIB directory.public void setNumberOfRuntime(int numberOfRuntime)
numberOfRuntime
- the number of runtime.public void setRailsRoot(String railsRoot)
railsRoot
- RAILS_ROOT directory.public void start()
public void stop()
protected org.jruby.Ruby initializeRubyRuntime()
protected void loadRubyLibraries(org.jruby.Ruby runtime)
public String getJrubyLib()
public int getNumberOfRuntime()
public String getRailsRoot()
protected BlockingQueue<org.jruby.Ruby> getRubyRuntimeQueue()
public boolean isAsyncEnabled()
public void setAsyncEnabled(boolean asyncEnabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |