|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--samples.appMan.AppManComponent
The AppManComponent is an application manager component that lets a user download a Jython script into it, to manage other applications.
| Field Summary | |
private xcat.framework.ccacore.Services |
appManCore
|
private ProvidesControl |
control
|
private static soaprmi.util.logging.Logger |
logger
|
private ProvidesMesgPort |
mesgPort
|
private java.util.Vector |
messageList
|
private java.lang.Object[] |
params
|
private ProvidesScriptPort |
scriptPort
|
| Constructor Summary | |
AppManComponent()
An empty constructor for the component is required as reflection is used to instantiated an instance of this class using this constructor, and then the setServices methods is called on it. |
|
| Method Summary | |
void |
addMessageToList(java.lang.String xmlMessage)
A method to accepts an XML message, converts it to a Message. |
int |
addProvidesPort(java.lang.String name,
java.lang.String type,
java.lang.String interfaceName,
java.lang.String className)
This method adds a provides port dynamically to the application manager. |
int |
addUsesPort(java.lang.String name,
java.lang.String type,
java.lang.String interfaceName)
This method adds a uses port dynamically to the application manager. |
Message |
getMessage()
A blocking call to receive a message sent to it. |
java.lang.Object[] |
getParams()
For the script to get hold of the parameters. |
xcat.framework.ccacore.ProvidesPort |
getProvidesPort(java.lang.String portName)
This method returns a handle to the provides port of the component. |
xcat.framework.ccacore.UsesPort |
getUsesPort(java.lang.String portName)
This method returns a handle to the uses port of the component. |
void |
initialize(java.lang.Object[] paramList)
Need an initialize, since we are using an empty constructor. |
static void |
main(java.lang.String[] args)
The main method will be called if it is instantiated standalone. |
void |
runScript(java.io.InputStream scriptFile)
This method executes the JPython script input to it. |
void |
runScript(java.lang.String script)
This method executes the Jython script input to it. |
int |
sendEvent(java.lang.String url,
java.lang.String text)
A simple method to send events to a URL. |
int |
sendMessage(Message message)
A method to accepts a Message Object, converts it to XML. |
void |
setServices(xcat.framework.ccacore.Services cc)
The usual CCA setServices to conform to the spec. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private xcat.framework.ccacore.Services appManCore
private ProvidesControl control
private ProvidesScriptPort scriptPort
private ProvidesMesgPort mesgPort
private static soaprmi.util.logging.Logger logger
private java.util.Vector messageList
private java.lang.Object[] params
| Constructor Detail |
public AppManComponent()
| Method Detail |
public void initialize(java.lang.Object[] paramList)
paramList - The array of parameterspublic void setServices(xcat.framework.ccacore.Services cc)
setServices in interface xcat.framework.ccacore.Componentcc - The Services Object for the Componentpublic void runScript(java.lang.String script)
script - The string containing the Jython Scriptpublic void runScript(java.io.InputStream scriptFile)
scriptFile - The InputStream to receive the Jython Script
public int addProvidesPort(java.lang.String name,
java.lang.String type,
java.lang.String interfaceName,
java.lang.String className)
name - The name by which the port is registeredtype - The uri of the wsdl descriptioninterfaceName - The fully qualified name of the provides port interfaceclassName - The fully qualified class name of the provides port impl
public int addUsesPort(java.lang.String name,
java.lang.String type,
java.lang.String interfaceName)
name - The name by which the port is registeredtype - The uri of the wsdl descriptioninterfaceName - The fully qualified name of the uses port interface
public xcat.framework.ccacore.ProvidesPort getProvidesPort(java.lang.String portName)
throws xcat.framework.exceptions.XCATException
portName - The name by which the provides port is registered
public xcat.framework.ccacore.UsesPort getUsesPort(java.lang.String portName)
throws xcat.framework.exceptions.XCATException
portName - The name by which the uses port is registered
public int sendEvent(java.lang.String url,
java.lang.String text)
url - The URL where the Event Channel is runningtext - The Text Message inside the Eventpublic int sendMessage(Message message)
Message - The Message Object to be sent to the other componentpublic void addMessageToList(java.lang.String xmlMessage)
xmlMessage - The XML message received from the other component
public Message getMessage()
throws java.lang.InterruptedException
public java.lang.Object[] getParams()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||