|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.agent.services.mlet.LauncherSrv
This class will demand the MLet Service to load all the HTML files contained in a specific directory.
If the initCmf
method of the object is called, the MLet Service used will be the one registered
within the repository with the following ObjectName:
:com.sun.jaw.impl.agent.services.mlet.MLetSrvMO
The default path used by the service to look for files is specified in the following order:
path
property in the object name you give to the service.
jaw.launcher.path
property.
getEtcDir("launch")
in class DefaultPaths.
The service will load the files using alphanumeric ordering.
It is possible to specify a path containing several directories. To do so, use the
path separator specific to the platform on which you are running the agent (check
the path.separator
property).
Constructor Summary | |
LauncherSrv()
Default constructor. |
|
LauncherSrv(MLetSrv mletSrv)
Creates a launching service. |
|
LauncherSrv(MLetSrv mletSrv,
java.lang.String path)
Creates a launching service with a specific path. |
Method Summary | |
static java.lang.String |
getClassVersion()
Gets the version of this class. |
MLetSrv |
getMLetSrv()
Gets the reference to the mlet service invoked for loading. |
java.lang.String |
getMLetSrvObjectName()
Gets the String representing the ObjectName
of the mlet service invoked for loading. |
java.lang.String |
getPath()
Gets the path used by the service for loading the HTML files. |
java.lang.ThreadGroup |
getThreadGroup()
Gets the thread group used for creating the threads. |
void |
initCmf(Framework cmf,
ObjectName name,
boolean db,
ModificationList list)
Initializes the Launcher Service. |
void |
performLaunch()
Loads the content of the path. |
void |
setMLetSrv(MLetSrv mlet)
Sets direct reference to the mlet service to use. |
void |
setMLetSrvObjectName(java.lang.String mlet)
Sets the String representing the ObjectName
of the mlet service to use. |
void |
setPath(java.lang.String path)
Sets the path used by the service for loading the HTML files. |
void |
setThreadGroup(java.lang.ThreadGroup threadGroup)
Sets the thread group to use when creating the threads for loading. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LauncherSrv()
public LauncherSrv(MLetSrv mletSrv)
mletSrv
- The reference to the mlet service to invoke.public LauncherSrv(MLetSrv mletSrv, java.lang.String path)
mletSrv
- The reference to the mlet service to invoke.path
- The path to look for the HTML files.Method Detail |
public void initCmf(Framework cmf, ObjectName name, boolean db, ModificationList list) throws InstanceAlreadyExistException
cmf
- The core management framework to register the service with.name
- The object name containing configuration information.db
- Indicates if persistent storage is required.list
- The modification list to use for setting up parameters.public void performLaunch() throws ServiceNotFoundException
ServiceNotFoundException
is thrown.
If an objet name for the mlet is given, it has precedence over a direct reference to a
mlet object.
ThreadGroup
.
They are named using the directory name currently loaded.getThreadGroup()
,
setThreadGroup(java.lang.ThreadGroup)
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path string.public java.lang.String getMLetSrvObjectName()
String
representing the ObjectName
of the mlet service invoked for loading.
If the mlet to use was specified using a direct reference to the service
through the setMLetSrv
method, this method will return null
.String
representing the ObjectName
of the mlet service.public void setMLetSrvObjectName(java.lang.String mlet)
String
representing the ObjectName
of the mlet service to use.
Such a mlet has precedence over an mlet service registered using the
setMLetSrv
method.mlet
- The String
representing the ObjectName
of the mlet service.public MLetSrv getMLetSrv()
public void setMLetSrv(MLetSrv mlet)
mlet
- The mlet service.setMLetSrvObjectName(java.lang.String)
public static java.lang.String getClassVersion()
public java.lang.ThreadGroup getThreadGroup()
public void setThreadGroup(java.lang.ThreadGroup threadGroup)
threadGroup
- The thread group to use.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |