|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.boot.RioServiceDescriptor
public class RioServiceDescriptor
The RioServiceDescriptor class is a utility that conforms to the Jini™
technology ServiceStarter framework, and will start a service using the
CommonClassLoader as a shared, non-activatable,
in-process service. Clients construct this object with the details of the
service to be launched, then call create to launch the service in
invoking object's VM.
This class provides separation of the import codebase (where the server classes are loaded from) from the export codebase (where clients should load classes from for stubs, etc.) as well as providing an independent security policy file for each service object. This functionality allows multiple service objects to be placed in the same VM, with each object maintaining a distinct codebase and policy.
Services need to implement the following "non-activatable constructor":
where,<impl>(String[] args, LifeCycle lc)
LifeCycle reference.
| Nested Class Summary | |
|---|---|
static class |
RioServiceDescriptor.Created
Object returned by RioServiceDescriptor.create()
method that returns the proxy and implementation references
for the created service. |
| Constructor Summary | |
|---|---|
RioServiceDescriptor(String codebase,
String policy,
String classpath,
String implClassName,
LifeCycle lifeCycle,
String... serverConfigArgs)
Create a RioServiceDescriptor, assigning given parameters to their associated, internal fields. |
|
RioServiceDescriptor(String codebase,
String policy,
String classpath,
String implClassName,
String... serverConfigArgs)
Create a RioServiceDescriptor. |
|
| Method Summary | |
|---|---|
Object |
create(Configuration config)
|
String |
getClasspath()
LifCycle accessor method. |
String |
getCodebase()
Codebase accessor method. |
String |
getImplClassName()
Implementation class accessor method. |
LifeCycle |
getLifeCycle()
LifeCycle accessor method. |
String |
getPolicy()
Policy accessor method. |
String[] |
getServerConfigArgs()
Service configuration arguments accessor method. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RioServiceDescriptor(String codebase,
String policy,
String classpath,
String implClassName,
LifeCycle lifeCycle,
String... serverConfigArgs)
codebase - location where clients can download required
service-related classes (for example, stubs, proxies, etc.). Codebase
components must be separated by spaces in which each component is in
URL format.policy - server policy filename or URLclasspath - location where server implementation classes can be
found. Classpath components must be separated by path separators.implClassName - name of server implementation classserverConfigArgs - service configuration argumentslifeCycle - LifeCycle reference for hosting
environment
public RioServiceDescriptor(String codebase,
String policy,
String classpath,
String implClassName,
String... serverConfigArgs)
null for the LifeCycle
reference.
codebase - location where clients can download required
service-related classes (for example, stubs, proxies, etc.). Codebase
components must be separated by spaces in which each component is in
URL format.policy - server policy filename or URLclasspath - location where server implementation classes can be
found. Classpath components must be separated by path separators.implClassName - name of server implementation classserverConfigArgs - service configuration arguments| Method Detail |
|---|
public String getCodebase()
public String getPolicy()
public LifeCycle getLifeCycle()
LifeCycle accessor method.
LifeCycle object associated with
this service descriptor.public String getClasspath()
public String getImplClassName()
public String[] getServerConfigArgs()
public Object create(Configuration config)
throws Exception
create in interface ServiceDescriptorExceptionServiceDescriptor.create(net.jini.config.Configuration)public String toString()
toString in class Object
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||