|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.jadort.service.implementation.JMSSender
public class JMSSender
Sends asynchronous JMS messages.
| Field Summary | |
|---|---|
static javax.jms.QueueConnection |
qc
|
protected static javax.jms.Queue |
queue
|
static javax.jms.QueueSession |
session
|
| Constructor Summary | |
|---|---|
JMSSender()
|
|
| Method Summary | |
|---|---|
static void |
connect()
Connect to the JMS queue and create a session. |
static void |
createVM(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String vmName)
Creates a VM. |
static void |
deploy(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String applicationName)
Deploy an application on the server. |
static void |
destroyVM(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String vmName,
boolean checkIfHostHalted)
Destroys a VM. |
static void |
disableApplications(OperationStateBean operation,
ServerProgressBean serverProgress)
Disables all applications a server. |
static void |
disconnect()
Disconnect from the JMS queue. |
static void |
enableApplications(OperationStateBean operation,
ServerProgressBean serverProgress)
Enables all applications a server. |
static void |
erase(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String applicationName)
Erases an application on the server. |
static void |
setAsDefault(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String applicationName)
Set a given application as the default version. |
static void |
startServer(OperationStateBean operation,
ServerProgressBean serverProgress,
boolean useTarget)
Starts a server. |
static void |
startVM(OperationStateBean operation,
ServerProgressBean serverProgress,
boolean useTarget,
java.lang.String vmName)
Starts a VM. |
static void |
startWorker(OperationStateBean operation,
WorkerProgressBean workerProgress)
Starts a worker. |
static void |
stopServer(OperationStateBean operation,
ServerProgressBean serverProgress,
boolean useTarget)
Stops a server. |
static void |
stopVM(OperationStateBean operation,
ServerProgressBean serverProgress,
boolean useTarget,
java.lang.String vmName)
Stop a VM. |
static void |
stopWorker(OperationStateBean operation,
WorkerProgressBean workerProgress)
Stop a worker. |
static void |
undeploy(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String applicationName)
Undeploy an application on the server. |
static void |
upload(OperationStateBean operation,
ServerProgressBean serverProgress,
ApplicationBean application)
Upload an application on a server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static javax.jms.QueueConnection qc
public static javax.jms.QueueSession session
protected static javax.jms.Queue queue
| Constructor Detail |
|---|
public JMSSender()
| Method Detail |
|---|
public static void connect()
throws javax.naming.NamingException,
javax.jms.JMSException
javax.naming.NamingException - If queue not found.
javax.jms.JMSException - If creating a session fails.
public static void disconnect()
throws javax.jms.JMSException
javax.jms.JMSException - If connection close fails.
public static void upload(OperationStateBean operation,
ServerProgressBean serverProgress,
ApplicationBean application)
throws javax.jms.JMSException
operation - Operation to work on.serverProgress - Server on which the application will be uploaded.application - the application to be uploaded.
javax.jms.JMSException - If sending the JMS message fails.
public static void deploy(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String applicationName)
throws javax.jms.JMSException,
JadortServiceException
operation - Operation to work on.serverProgress - Server on which the application will be deployed.applicationName - The name (on the server side) of the application
to be deployed.
javax.jms.JMSException - If sending the JMS message fails.
JadortServiceException
public static void setAsDefault(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String applicationName)
throws javax.jms.JMSException,
JadortServiceException
operation - Operation to work on.serverProgress - Server on which the application will be set as
default.applicationName - The name (on the server side) of the application
to be set as default.
javax.jms.JMSException - If sending the JMS message fails.
JadortServiceException
public static void undeploy(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String applicationName)
throws javax.jms.JMSException,
JadortServiceException
operation - Operation to work on.serverProgress - Server on which the application will be undeployed.applicationName - The name (on the server side) of the application
to be undeployed.
javax.jms.JMSException - If sending the JMS message fails.
JadortServiceException
public static void erase(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String applicationName)
throws javax.jms.JMSException,
JadortServiceException
operation - Operation to work on.serverProgress - Server on which the application will be erased.applicationName - The name (on the server side) of the application
to be undeployed.
javax.jms.JMSException - If sending the JMS message fails.
JadortServiceException - If applicationName is null.
public static void stopServer(OperationStateBean operation,
ServerProgressBean serverProgress,
boolean useTarget)
throws javax.jms.JMSException
operation - Operation to work on.serverProgress - Server that will be stopped.useTarget - Whether to use the target server (if available).
javax.jms.JMSException - If sending the JMS message fails.
public static void startServer(OperationStateBean operation,
ServerProgressBean serverProgress,
boolean useTarget)
throws javax.jms.JMSException
operation - Operation to work on.serverProgress - Server that will be started.useTarget - Whether to use the target server (if available).
javax.jms.JMSException - If sending the JMS message fails.
public static void disableApplications(OperationStateBean operation,
ServerProgressBean serverProgress)
throws javax.jms.JMSException
operation - Operation to work on.serverProgress - Server on which all applications will be disabled.
javax.jms.JMSException - If sending the JMS message fails.
public static void enableApplications(OperationStateBean operation,
ServerProgressBean serverProgress)
throws javax.jms.JMSException
operation - Operation to work on.serverProgress - Server on which all applications will be enabled.
javax.jms.JMSException - If sending the JMS message fails.
public static void startWorker(OperationStateBean operation,
WorkerProgressBean workerProgress)
throws javax.jms.JMSException
operation - Operation to work on.workerProgress - Worker that will be started.
javax.jms.JMSException - If sending the JMS message fails.
public static void stopWorker(OperationStateBean operation,
WorkerProgressBean workerProgress)
throws javax.jms.JMSException
operation - Operation to work on.workerProgress - Worker that will be stop.
javax.jms.JMSException - If sending the JMS message fails.
public static void startVM(OperationStateBean operation,
ServerProgressBean serverProgress,
boolean useTarget,
java.lang.String vmName)
throws javax.jms.JMSException,
JadortServiceException
operation - Operation to work on.serverProgress - Server of the VM to start.useTarget - Whether to use the target server (if available).vmName - Name of the VM to start.
javax.jms.JMSException - If sending the JMS message fails.
JadortServiceException - If the vmName is null.
public static void stopVM(OperationStateBean operation,
ServerProgressBean serverProgress,
boolean useTarget,
java.lang.String vmName)
throws javax.jms.JMSException,
JadortServiceException
operation - Operation to work on.serverProgress - Server of the VM to stop.useTarget - Whether to use the target server (if available).vmName - Name of the VM to stop.
javax.jms.JMSException - If sending the JMS message fails.
JadortServiceException - If the vmName is null.
public static void createVM(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String vmName)
throws javax.jms.JMSException
operation - Operation to work on.serverProgress - Server of the VM to copy VM properties from
(memory, etc.).vmName - Name of the VM to create.
javax.jms.JMSException - If sending the JMS message fails.
public static void destroyVM(OperationStateBean operation,
ServerProgressBean serverProgress,
java.lang.String vmName,
boolean checkIfHostHalted)
throws javax.jms.JMSException,
JadortServiceException
operation - Operation to work on.serverProgress - Server of the VM to destroy.vmName - Name of the VM to destroy.
javax.jms.JMSException - If sending the JMS message fails.
JadortServiceException - If the vmName is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||