TorqueBox 3.1.2

org.torquebox.services
Class RubyService

java.lang.Object
  extended by org.torquebox.services.RubyService
All Implemented Interfaces:
RubyRuntimePoolRestartListener, RubyServiceMBean

public class RubyService
extends Object
implements RubyServiceMBean, RubyRuntimePoolRestartListener


Constructor Summary
RubyService(String name)
           
 
Method Summary
 void create()
           
 void destroy()
           
 ServiceComponent getComponent()
           
 String getName()
           
 String getRubyClassName()
           
 String getStatus()
           
 String inspect()
           
 boolean isStarted()
           
 boolean isStopped()
           
 void runtimeRestarted()
           
 void setComponentResolver(ComponentResolver resolver)
           
 void setRubyRuntimePool(RestartableRubyRuntimePool runtimePool)
           
 void start()
           
 void stop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubyService

public RubyService(String name)
Method Detail

create

public void create()
            throws Exception
Throws:
Exception

start

public void start()
Specified by:
start in interface RubyServiceMBean

stop

public void stop()
Specified by:
stop in interface RubyServiceMBean

destroy

public void destroy()

runtimeRestarted

public void runtimeRestarted()
Specified by:
runtimeRestarted in interface RubyRuntimePoolRestartListener

getName

public String getName()
Specified by:
getName in interface RubyServiceMBean

isStarted

public boolean isStarted()
Specified by:
isStarted in interface RubyServiceMBean

isStopped

public boolean isStopped()
Specified by:
isStopped in interface RubyServiceMBean

getRubyClassName

public String getRubyClassName()
Specified by:
getRubyClassName in interface RubyServiceMBean

getStatus

public String getStatus()
Specified by:
getStatus in interface RubyServiceMBean

setComponentResolver

public void setComponentResolver(ComponentResolver resolver)

setRubyRuntimePool

public void setRubyRuntimePool(RestartableRubyRuntimePool runtimePool)

getComponent

public ServiceComponent getComponent()

toString

public String toString()
Overrides:
toString in class Object

inspect

public String inspect()

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.