org.ow2.jonas.management
Interface J2EEServerService


public interface J2EEServerService

Management interface of the J2EEServer states.

Author:
Francois Fornaciari

Field Summary
static String EVENT_DEPLOYABLE_CURRENT_TIME
          OSGi event deployable current time key
static String EVENT_DEPLOYABLE_NAME_KEY
          OSGi event deployable name key
static String EVENT_DEPLOYABLE_PATH_KEY
          OSGi event deployable path key
static String EVENT_DEPLOYABLE_SOURCE_KEY
          OSGi event deployable source key
static String EVENT_DEPLOYABLE_STATE_KEY
          OSGi event deployable state key
static String EVENT_ERROR_KEY
          OSGi event error key
 
Method Summary
 void deploy(String filename)
          Deploy the given file.
 Map<String,DeployableState> getDeployables()
           
 String getUploadDirectory()
          Get the directory in which J2EEServer uploads files
 boolean isFailed()
          Is the server FAILED.
 boolean isRunning()
          Is the server RUNNING.
 boolean isStarting()
          Is the server STARTING.
 boolean isStopped()
          Is the server STOPPED.
 boolean isStopping()
          Is the server STOPPING.
 void setFailed()
          Set the server state to FAILED and perform a notification.
 void setRunning()
          Set the server state to RUNNING and perform a notification.
 void setStarting()
          Set the server state to STARTING and perform a notification.
 void setStopped()
          Set the server state to STOPPED and perform a notification.
 void setStopping()
          Set the server state to STOPPING and perform a notification.
 void startService(String service)
          Start a service.
 void stopService(String service)
          Stop a service.
 void undeploy(String filename)
          Undeploy the given file.
 

Field Detail

EVENT_ERROR_KEY

static final String EVENT_ERROR_KEY
OSGi event error key

See Also:
Constant Field Values

EVENT_DEPLOYABLE_NAME_KEY

static final String EVENT_DEPLOYABLE_NAME_KEY
OSGi event deployable name key

See Also:
Constant Field Values

EVENT_DEPLOYABLE_PATH_KEY

static final String EVENT_DEPLOYABLE_PATH_KEY
OSGi event deployable path key

See Also:
Constant Field Values

EVENT_DEPLOYABLE_STATE_KEY

static final String EVENT_DEPLOYABLE_STATE_KEY
OSGi event deployable state key

See Also:
Constant Field Values

EVENT_DEPLOYABLE_SOURCE_KEY

static final String EVENT_DEPLOYABLE_SOURCE_KEY
OSGi event deployable source key

See Also:
Constant Field Values

EVENT_DEPLOYABLE_CURRENT_TIME

static final String EVENT_DEPLOYABLE_CURRENT_TIME
OSGi event deployable current time key

See Also:
Constant Field Values
Method Detail

isStarting

boolean isStarting()
Is the server STARTING.


isRunning

boolean isRunning()
Is the server RUNNING.


isFailed

boolean isFailed()
Is the server FAILED.


isStopping

boolean isStopping()
Is the server STOPPING.


isStopped

boolean isStopped()
Is the server STOPPED.


setStarting

void setStarting()
Set the server state to STARTING and perform a notification.


setRunning

void setRunning()
Set the server state to RUNNING and perform a notification.


setFailed

void setFailed()
Set the server state to FAILED and perform a notification.


setStopping

void setStopping()
Set the server state to STOPPING and perform a notification.


setStopped

void setStopped()
Set the server state to STOPPED and perform a notification.


getUploadDirectory

String getUploadDirectory()
Get the directory in which J2EEServer uploads files

Returns:
directory in which J2EEServer uploads files

startService

void startService(String service)
                  throws Exception
Start a service.

Parameters:
service - the service name.
Throws:
Exception - If the startup of the service fails

stopService

void stopService(String service)
                 throws Exception
Stop a service.

Parameters:
service - the service name.
Throws:
Exception - If the stop of the service fails

getDeployables

Map<String,DeployableState> getDeployables()
Returns:
the Map of a pair of .

deploy

void deploy(String filename)
Deploy the given file.

Parameters:
filename -

undeploy

void undeploy(String filename)
Undeploy the given file.

Parameters:
filename -


Copyright © 2012 OW2 Consortium. All Rights Reserved.