|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.boot.ServiceDescriptorUtil
public class ServiceDescriptorUtil
Holds static attributes used during the startup of services and provides
utilities to obtain ServiceDescriptor instances
for Rio services
| Constructor Summary | |
|---|---|
ServiceDescriptorUtil()
|
|
| Method Summary | |
|---|---|
static ServiceDescriptor |
getCybernode(String policy,
int port,
String... cybernodeConfig)
Get the ServiceDescriptor instance for
org.rioproject.cybernode.Cybernode. |
static ServiceDescriptor |
getCybernode(String policy,
String... cybernodeConfig)
Get the ServiceDescriptor instance for
org.rioproject.cybernode.Cybernode using the Webster port
created by this utility. |
static ServiceDescriptor |
getCybernode(String policy,
String hostAddress,
int port,
String... cybernodeConfig)
Get the ServiceDescriptor instance for
org.rioproject.cybernode.Cybernode. |
static ServiceDescriptor |
getLookup(String policy,
int port,
String... lookupConfig)
Get the ServiceDescriptor instance for
the Jini Lookup Service, Reggie. |
static ServiceDescriptor |
getLookup(String policy,
String... lookupConfig)
Get the ServiceDescriptor instance for
the Jini Lookup Service (Reggie), using the Webster port
created by this utility. |
static ServiceDescriptor |
getLookup(String policy,
String hostAddress,
int port,
String... lookupConfig)
Get the ServiceDescriptor instance for
the Jini Lookup Service (Reggie), using the Webster port
created by this utility. |
static ServiceDescriptor |
getMonitor(String policy,
int port,
String... monitorConfig)
Get the ServiceDescriptor instance for
org.rioproject.monitor.ProvisionMonitor. |
static ServiceDescriptor |
getMonitor(String policy,
String... monitorConfig)
Get the ServiceDescriptor instance for
org.rioproject.monitor.ProvisionMonitor using the Webster port
created by this utility. |
static ServiceDescriptor |
getMonitor(String policy,
String hostAddress,
int port,
String... monitorConfig)
Get the ServiceDescriptor instance for
org.rioproject.monitor.ProvisionMonitor. |
static ServiceDescriptor |
getWebster(String policy,
String[] roots)
Get the ServiceDescriptor instance for
org.rioproject.tools.webster.Webster. |
static ServiceDescriptor |
getWebster(String policy,
String sPort,
String[] roots)
Get the ServiceDescriptor instance for
org.rioproject.tools.webster.Webster. |
static ServiceDescriptor |
getWebster(String policy,
String sPort,
String[] roots,
boolean debug)
Get the ServiceDescriptor instance for
org.rioproject.tools.webster.Webster |
static ServiceDescriptor |
getWebster(String policy,
String sPort,
String[] roots,
boolean debug,
String webster)
Get the ServiceDescriptor instance for
org.rioproject.tools.webster.Webster |
protected static String |
makePath(String dir,
String... jars)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceDescriptorUtil()
| Method Detail |
|---|
public static ServiceDescriptor getWebster(String policy,
String[] roots)
throws IOException
ServiceDescriptor instance for
org.rioproject.tools.webster.Webster.
policy - The security policy file to useroots - The roots webster should serve
ServiceDescriptor instance for
webster using an anonymous port. The webster.jar file will be
loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getWebster(String policy,
String sPort,
String[] roots)
throws IOException
ServiceDescriptor instance for
org.rioproject.tools.webster.Webster.
policy - The security policy file to usesPort - The port webster should useroots - The roots webster should serve
ServiceDescriptor instance for
webster using a specified port. The webster.jar file will be
loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getWebster(String policy,
String sPort,
String[] roots,
boolean debug)
throws IOException
ServiceDescriptor instance for
org.rioproject.tools.webster.Webster
policy - The security policy file to usesPort - The port webster should useroots - The roots webster should servedebug - If true, set the org.rioproject.tools.debug property
ServiceDescriptor instance for
webster using a specified port. The webster.jar file will be
loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
public static ServiceDescriptor getWebster(String policy,
String sPort,
String[] roots,
boolean debug,
String webster)
throws IOException
ServiceDescriptor instance for
org.rioproject.tools.webster.Webster
policy - The security policy file to usesPort - The port webster should useroots - The roots webster should servedebug - If true, set the org.rioproject.tools.debug propertywebster - The location an name of the webster jar
ServiceDescriptor instance for
webster using a specified port. The webster.jar file will be
loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
IllegalArgumentException - If the RIO_HOME system property is not set
public static ServiceDescriptor getCybernode(String policy,
String... cybernodeConfig)
throws IOException
ServiceDescriptor instance for
org.rioproject.cybernode.Cybernode using the Webster port
created by this utility.
policy - The security policy file to usecybernodeConfig - The configuration options the Cybernode will use
ServiceDescriptor instance for
the Cybernode using an anonymous port. The cybernode.jar file
will be loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getCybernode(String policy,
int port,
String... cybernodeConfig)
throws IOException
ServiceDescriptor instance for
org.rioproject.cybernode.Cybernode.
policy - The security policy file to useport - The port to use when constructing the codebasecybernodeConfig - The configuration options the Cybernode will use
ServiceDescriptor instance for
the Cybernode using an anonymous port. The cybernode.jar file
will be loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getCybernode(String policy,
String hostAddress,
int port,
String... cybernodeConfig)
throws IOException
ServiceDescriptor instance for
org.rioproject.cybernode.Cybernode.
policy - The security policy file to usecybernodeConfig - The configuration file the Cybernode will usehostAddress - The address to use when constructing the codebaseport - The port to use when constructing the codebase
ServiceDescriptor instance for
the Cybernode using an anonymous port. The cybernode.jar file
will be loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getMonitor(String policy,
String... monitorConfig)
throws IOException
ServiceDescriptor instance for
org.rioproject.monitor.ProvisionMonitor using the Webster port
created by this utility.
policy - The security policy file to usemonitorConfig - The configuration options the Monitor will use
ServiceDescriptor instance for
the Monitor using an anonymous port. The monitor.jar file will
be loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getMonitor(String policy,
int port,
String... monitorConfig)
throws IOException
ServiceDescriptor instance for
org.rioproject.monitor.ProvisionMonitor.
policy - The security policy file to useport - The port to use when constructing the codebasemonitorConfig - The configuration options the Monitor will use
ServiceDescriptor instance for
the Monitor using an anonymous port. The monitor.jar file will
be loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getMonitor(String policy,
String hostAddress,
int port,
String... monitorConfig)
throws IOException
ServiceDescriptor instance for
org.rioproject.monitor.ProvisionMonitor.
policy - The security policy file to usehostAddress - The address to use when constructing the codebaseport - The port to use when constructing the codebasemonitorConfig - The configuration options the Monitor will use
ServiceDescriptor instance for
the Monitor using an anonymous port. The monitor.jar file will
be loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getLookup(String policy,
String... lookupConfig)
throws IOException
ServiceDescriptor instance for
the Jini Lookup Service (Reggie), using the Webster port
created by this utility.
policy - The security policy file to uselookupConfig - The configuration file Reggie will use
ServiceDescriptor instance for
Reggie using an anonymous port. The reggie.jar file will
be loaded from RIO_HOME/lib
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getLookup(String policy,
int port,
String... lookupConfig)
throws IOException
ServiceDescriptor instance for
the Jini Lookup Service, Reggie.
policy - The security policy file to uselookupConfig - The configuration options Reggie will useport - The port to use when constructing the codebase
Reggie using an anonymous port. The reggie.jar file will
be loaded from RIO_HOME/lib
ServiceDescriptor instance for
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
public static ServiceDescriptor getLookup(String policy,
String hostAddress,
int port,
String... lookupConfig)
throws IOException
ServiceDescriptor instance for
the Jini Lookup Service (Reggie), using the Webster port
created by this utility.
policy - The security policy file to usehostAddress - The address to use when constructing the codebaseport - The port to use when constructing the codebase
Reggie using an anonymous port. The reggie.jar file will
be loaded from RIO_HOME/liblookupConfig - The configuration options Reggie will use
ServiceDescriptor instance for
IOException - If there are problems getting the anonymous port
RuntimeException - If the RIO_HOME system property is not
set
protected static String makePath(String dir,
String... jars)
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||