|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.cybernode.ServiceBeanLoader
public class ServiceBeanLoader
The ServiceBeanLoader will load and create a ServiceBean. The ServiceBeanLoader supports the following configuration entries
| Nested Class Summary | |
|---|---|
static class |
ServiceBeanLoader.Result
Trivial class used as the return value by the load method. |
| Constructor Summary | |
|---|---|
ServiceBeanLoader()
|
|
| Method Summary | |
|---|---|
static void |
advertise(Object jsbProxy,
ServiceBeanContext context)
Advertise a ServiceBean |
static void |
advertise(Object jsbProxy,
String serviceName,
String opStringName,
String[] groups,
LookupLocator[] locators,
String hostAddress,
Entry[] attrs)
Advertise a ServiceBean |
static Entry[] |
getConfiguredAttributes(ServiceBeanContext context)
Get configuration defined attributes |
static ServiceBeanLoader.Result |
load(ServiceElement sElem,
Uuid serviceID,
ServiceBeanManager jsbManager,
ComputeResource computeResource,
Configuration sharedConfiguration)
The load method is invoked to load and instantiate a ServiceBean. |
static void |
unload(ClassLoader loader,
ServiceElement elem)
Clean up resources Remove ServiceClassLoader from global policy to prevent leaking ServiceClassLoader instances Remove any downloaded jars |
static void |
unload(ServiceBeanLoader.Result result,
ServiceElement elem)
Clean up resources Remove ServiceClassLoader from global policy to prevent leaking ServiceClassLoader instances Remove any downloaded jars |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceBeanLoader()
| Method Detail |
|---|
public static void unload(ServiceBeanLoader.Result result,
ServiceElement elem)
result - The Result object to unloadelem - The ServiceElement to use as a reference
public static void unload(ClassLoader loader,
ServiceElement elem)
loader - The ClassLoader to unloadelem - The ServiceElement to use as a reference
public static ServiceBeanLoader.Result load(ServiceElement sElem,
Uuid serviceID,
ServiceBeanManager jsbManager,
ComputeResource computeResource,
Configuration sharedConfiguration)
throws JSBInstantiationException
sElem - The ServiceElementserviceID - Uuid for the servicejsbManager - The ServiceBeanManagercomputeResource - ComputeResource objectsharedConfiguration - Shared configuration
JSBInstantiationException - If errors occur while creating the
service bean
public static void advertise(Object jsbProxy,
ServiceBeanContext context)
throws JSBControlException
jsbProxy - Proxy to the JSBcontext - The ServiceBeanContext
JSBControlException - If the service bean cannot be advertised
public static void advertise(Object jsbProxy,
String serviceName,
String opStringName,
String[] groups,
LookupLocator[] locators,
String hostAddress,
Entry[] attrs)
throws JSBControlException
jsbProxy - Proxy to the JSBserviceName - The name for the serviceopStringName - The name of the OperationalStringgroups - Array of String discovery groupslocators - Array LookupLocatorshostAddress - the address of the machine the service is executing onattrs - An array of additional Entry objects to add
JSBControlException - If the service bean cannot be advertisedpublic static Entry[] getConfiguredAttributes(ServiceBeanContext context)
context - The ServiceBeanContext
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||