|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SCA4JRuntime<HI extends HostInfo>
Represents a node in the service network. Runtimes may host components and/or function as a Domain controller.
| Method Summary | ||
|---|---|---|
void |
bootPrimordial(BootConfiguration configuration)
Boots the runtime with its primordial components. |
|
void |
bootSystem()
Initialize a runtime. |
|
java.lang.ClassLoader |
getHostClassLoader()
Returns the host ClassLoader that is parent to all SCA4J classloaders. |
|
HI |
getHostInfo()
Returns the info this runtime will make available to service components. |
|
java.lang.Class<HI> |
getHostInfoType()
Returns the type of info supplied by the host. |
|
java.lang.String |
getJMXSubDomain()
Returns the JMX sub domain this runtime should use. |
|
javax.management.MBeanServer |
getMBeanServer()
Returns the MBeanServer this runtime should use. |
|
org.sca4j.monitor.MonitorFactory |
getMonitorFactory()
Returns the MonitorFactory that this runtime is using. |
|
|
getSystemComponent(java.lang.Class<I> service,
java.net.URI uri)
Returns the system component providing the designated service. |
|
void |
joinDomain(long timeout)
Join the domain in a non-blocking fashion. |
|
void |
setHostInfo(HI hostInfo)
Sets the info this runtime should make available to service components. |
|
void |
setJmxSubDomain(java.lang.String jmxSubDomain)
Sets the JMX sub domain this runtime should use. |
|
void |
setMBeanServer(javax.management.MBeanServer mbServer)
Sets the MBeanServer this runtime should use. |
|
void |
setMonitorFactory(org.sca4j.monitor.MonitorFactory monitorFactory)
Sets the MonitorFactory that this runtime should use. |
|
void |
shutdown()
Shuts the runtime down, stopping it from receiving requests and detaching it from the domain. |
|
void |
start()
Starts the runtime. |
|
| Method Detail |
|---|
java.lang.ClassLoader getHostClassLoader()
java.lang.Class<HI> getHostInfoType()
HI getHostInfo()
void setHostInfo(HI hostInfo)
hostInfo - the information this runtime should make available to service componentsorg.sca4j.monitor.MonitorFactory getMonitorFactory()
void setMonitorFactory(org.sca4j.monitor.MonitorFactory monitorFactory)
monitorFactory - the MonitorFactory that this runtime should usejavax.management.MBeanServer getMBeanServer()
void setMBeanServer(javax.management.MBeanServer mbServer)
mbServer - the MBeanServer this runtime should usejava.lang.String getJMXSubDomain()
void setJmxSubDomain(java.lang.String jmxSubDomain)
jmxSubDomain - the JMX domain this runtime should use
void bootSystem()
throws InitializationException
InitializationException - if there is an error initializing the runtime
void start()
throws StartException
StartException - if there is an error starting the runtime
<I> I getSystemComponent(java.lang.Class<I> service,
java.net.URI uri)
I - the Java type for the service interfaceservice - the service interface requireduri - the id of the system component
void bootPrimordial(BootConfiguration configuration)
throws InitializationException
InitializationException - if an error occurs booting the runtime
void joinDomain(long timeout)
throws InitializationException
timeout - the timeout in milliseconds or -1 if the operation should wait indefinitely
InitializationException - if an error occurs joining the domainvoid shutdown()
ShutdownException - if an error ocurrs shutting down the runtime
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||