|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.imolinfo.jbi4corba.jbi.component.runtime.DefaultServiceUnitManager
it.imolinfo.jbi4corba.jbi.component.Jbi4CorbaSUManager
public class Jbi4CorbaSUManager
Jbi4Corba Service Unit Manager. Redefines: deploy/implement (no init).
for more details of the generated code.| Constructor Summary | |
|---|---|
Jbi4CorbaSUManager(ComponentRuntime ctx)
Constructor that takes the ComponentRuntime parameter. |
|
| Method Summary | |
|---|---|
protected JbiServiceDescriptor |
createServiceDescriptor(javax.wsdl.Service service,
javax.wsdl.Binding binding,
javax.wsdl.PortType portType,
Jbi4CorbaAddress addressExtension,
Jbi4CorbaBinding bindingExtension,
String role,
String rootPath)
Creates the JbiServiceDescriptor from the extended
WSDL-element. |
void |
deactivateEndpoint(Jbi4CorbaEndpoint endpoint)
Activate the endpoint array. |
String |
deploy(String suName,
String suZipPath)
Deploy a Service Unit to the component. |
Jbi4CorbaEndpoint |
getDeployedEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Returns the endpoint from using ServiceEndpoint from the deployed endpoint list. |
List<Jbi4CorbaEndpoint> |
getDeployedEndpoints()
Gets the deployed endpoints. |
Jbi4CorbaLifeCycle |
getLifeCycle()
Gets the life cycle. |
Jbi4CorbaEndpoint |
getStartedEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Returns the endpoint from using ServiceEndpoint from the started endpoint list. |
void |
init(String serviceUnitName,
String serviceUnitRootPath)
Service unit init, process the Endpoint deploy. |
Map<String,String[]> |
parseForEnvironmentVariables(String suPath,
Map<String,String[]> envVariableMap)
|
static javax.wsdl.Definition |
readWsdl(File f)
Reads a Definition from a File. |
void |
setLifeCycle(Jbi4CorbaLifeCycle lifeCycle)
Sets the life cycle. |
void |
shutDown(String serviceUnitName)
Service unit shutdown, removes the deployed endpoint. |
void |
start(String serviceUnitName)
Start the deployed service unit. |
void |
stop(String serviceUnitName)
Stop the service unit. |
String |
undeploy(String serviceUnitName,
String suZipPath)
Undeploy a service unit from the component. |
| Methods inherited from class it.imolinfo.jbi4corba.jbi.component.runtime.DefaultServiceUnitManager |
|---|
createComponentTaskResultXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Jbi4CorbaSUManager(ComponentRuntime ctx)
ctx - the component runtime context| Method Detail |
|---|
public String deploy(String suName,
String suZipPath)
throws javax.jbi.management.DeploymentException
suName - the service unit namesuZipPath - the service unit unzip path
javax.jbi.management.DeploymentException - if some deploy problem occursServiceUnitManager.deploy(String, String);
public void start(String serviceUnitName)
throws javax.jbi.management.DeploymentException
serviceUnitName - the service unit name
javax.jbi.management.DeploymentException - if some problem occursServiceUnitManager.start(String);
public String undeploy(String serviceUnitName,
String suZipPath)
throws javax.jbi.management.DeploymentException
suZipPath - the service unit unzip pathserviceUnitName - the service unit name
javax.jbi.management.DeploymentException - if some problem occursServiceUnitManager.undeploy(String, String);
public void stop(String serviceUnitName)
throws javax.jbi.management.DeploymentException
serviceUnitName - the service unit name
javax.jbi.management.DeploymentException - if some problem occurs
public void init(String serviceUnitName,
String serviceUnitRootPath)
throws javax.jbi.management.DeploymentException
serviceUnitName - the service unit nameserviceUnitRootPath - the service unit root path
javax.jbi.management.DeploymentException - if some problem occurs
public void shutDown(String serviceUnitName)
throws javax.jbi.management.DeploymentException
serviceUnitName - the service unit name
javax.jbi.management.DeploymentException - if some problem occursjavax.jbi.component.ServiceUnitManager#shutdown(String);public Jbi4CorbaEndpoint getStartedEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
ServiceEndpoint from the started endpoint list.
endpoint - the ServiceEndpoint
Jbi4CorbaEndpoint if found, null otherwisepublic Jbi4CorbaEndpoint getDeployedEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
ServiceEndpoint from the deployed endpoint list.
endpoint - the ServiceEndpoint
Jbi4CorbaEndpoint if found, null otherwise
public Map<String,String[]> parseForEnvironmentVariables(String suPath,
Map<String,String[]> envVariableMap)
throws Jbi4CorbaRuntimeException
Jbi4CorbaRuntimeException
public void deactivateEndpoint(Jbi4CorbaEndpoint endpoint)
throws Jbi4CorbaDeployException
endpoint - the endpoints to deactivate
Jbi4CorbaDeployException - if some deployment problem occurs
public static javax.wsdl.Definition readWsdl(File f)
throws javax.wsdl.WSDLException
Definition from a File.
f - the file to read
javax.wsdl.WSDLException - if there are problem in reading the WSDLpublic Jbi4CorbaLifeCycle getLifeCycle()
public void setLifeCycle(Jbi4CorbaLifeCycle lifeCycle)
lifeCycle - the new life cyclepublic List<Jbi4CorbaEndpoint> getDeployedEndpoints()
protected JbiServiceDescriptor createServiceDescriptor(javax.wsdl.Service service,
javax.wsdl.Binding binding,
javax.wsdl.PortType portType,
Jbi4CorbaAddress addressExtension,
Jbi4CorbaBinding bindingExtension,
String role,
String rootPath)
throws javax.jbi.management.DeploymentException
JbiServiceDescriptor from the extended
WSDL-element. Creates also the idl file loaded from WSDL in the roortpath
populating the JbiServiceDescriptor with the idlFileName and the
idlFileNameDirectory.
service - The serviceport - The portbinding - The bindingaddressExtension - The address extensionbindingExtension - The binding extensionrootPath - The root path
javax.jbi.management.DeploymentException - The deployment exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||