|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sssw.jbroker.api.activation.ServerDesc
The server deployment descriptor describes the various parameters needed by the ORB to start a server within a Java VM.
Constructor Summary | |
ServerDesc(Properties properties)
Construct a Server Deployment Descriptor from the given properties. |
|
ServerDesc(String mainClass,
String alias,
String[] classPath,
String[] args,
String[] vmFlags,
String logDir)
Construct a Server Deployment Descriptor from the individual values. |
Method Summary | |
String |
getAlias()
Get the unique name for this Server. |
String[] |
getArgs()
Get the arguments that are passed to the activated server. |
String |
getClassName()
Get the fully qualified name of the Server Main Class. |
String[] |
getClassPath()
Get the classpath for the Server. |
String |
getLogDir()
Get the Server Logs directory. |
Properties |
getProperties()
Get the Server Deployment Descriptor as a Properties object. |
String[] |
getVmFlags()
Get the options/properties that are passed to the activated Java VM that runs the server. |
void |
print(PrintWriter writer)
Write out the Server Deployment Descriptor. |
void |
setAlias(String alias)
Set the unique name for this Server. |
void |
setArgs(String[] args)
Set the arguments to be passed to the activated server. |
void |
setClassName(String main)
Set the fully qualified name of the Server Main Class. |
void |
setClassPath(String[] cp)
Set the classpath for the Server. |
void |
setLogDir(String logDir)
Set the directory where the System.out and System.err streams are redirected to. |
void |
setVmFlags(String[] flags)
Set the options/properties to pass to the activated Java VM that runs the server. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerDesc(Properties properties) throws ActivationException
|
|
|
This property specifies a fully qualified name of the class with a public static void main(Sting[]) method. This method is given control by the ORB when the server is activated. [REQUIRED] |
|
This property specifies a user choosen name that is unique within the Activation System. This name can later be used on several activation utilities and as parameter to the ORB. [REQUIRED] |
|
This property specifies a space separated list of classpath elements that are needed by the server to run. A full classpath is constructed by jorbd by prefixing the path with JBroker and JDK classes. |
|
This property specifies a space separated list of arguments to be passed on the command line to the server. The main method of the server will get the argument list as parameters when the server starts up. |
server.vmflags | This property specifies a space separated list of flags to be passed to the Java VM that is started by the server. You can specify flags like -D, -ms, -mx, etc. |
|
The ORB automatically redirects the System.out and System.err streams of the ORB started servers to files under the db/logs directory. This directory can be over-ridden by specifying a fully qualified path to a directory of your choice. |
public ServerDesc(String mainClass, String alias, String[] classPath, String[] args, String[] vmFlags, String logDir) throws ActivationException
mainClass
- value for server.mainalias
- value for server.aliasclassPath
- value for server.classpathargs
- value for server.argsvmFlags
- value for server.vmflagslogDir
- value for server.logdirServerDesc(Properties)
Method Detail |
public final void setClassName(String main)
For the ServerDesc to be valid it should have the class name set.
main
- fully qualified class namepublic final String getClassName()
public final void setAlias(String alias)
For the ServerDesc to be valid it should have the alias specified.
alias
- unique name of the serverpublic final String getAlias()
public final void setClassPath(String[] cp)
cp
- server class pathpublic final String[] getClassPath()
public final void setArgs(String[] args)
args
- arguments to the server mainpublic final String[] getArgs()
public final void setVmFlags(String[] flags)
flags
- Java VM options/propertiespublic final String[] getVmFlags()
public final void setLogDir(String logDir)
logDir
- server log directorypublic final String getLogDir()
public final Properties getProperties()
ServerDesc(Properties)
public final void print(PrintWriter writer)
writer
- writer to write the ServerDesc to
|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |