|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adobe.idp.dsc.registry.component.client.ComponentRegistryClient
public class ComponentRegistryClient
The client implementation of the Component Registry. It provides clients the ability to query the metadata and state of a component, to install and uninstall components, and to toggle the state of a component from RUNNING to STOPPED.
| Field Summary |
|---|
| Fields inherited from interface com.adobe.idp.dsc.registry.component.ComponentRegistry |
|---|
SERVICE_ID |
| Constructor Summary | |
|---|---|
ComponentRegistryClient(ServiceClientFactory clientServiceFactory)
The constructor for creating a Component Registry client instance. |
|
| Method Summary | |
|---|---|
void |
clearCache()
Clears any caching of components. |
void |
forceUninstall(Component aComponent)
Forces the uninstall of a component, calling its Bootstrap interface and removing it from the container. |
Component |
getComponent(java.lang.String aComponentId,
java.lang.String aVersion)
Retrieves the specified version of a component or throws a ComponentNotFoundException
if it does not exist. |
java.util.List |
getComponents()
Retrieves a list of all the components installed in the container. |
java.util.List |
getComponents(java.lang.String aComponentId)
Retrieves all versions with the specified component identifier. |
Component |
install(byte[] componentArchiveByteArray)
Installs a component using a byte array, calling its Bootstrap interface and leaving the component in a STOPPED state. |
Component |
install(Document componentArchiveDocument)
Installs a component, calling its Bootstrap interface and leaving the component in a STOPPED state. |
Component |
load(Component aComponent)
Loads a component, calling its Bootstrap interface and leaving the component in a STOPPED state. |
Component |
modify(ModifyComponentInfo aInfo)
Modifies a component with the specified component information. |
Component |
start(Component aComponent)
Starts a component, calling its LifeCycle interface and leaving the component in a RUNNING state. |
Component |
stop(Component aComponent)
Stops a component, calling its LifeCycle interface and leaving the component in a STOPPED state. |
void |
uninstall(Component aComponent)
Uninstalls a component, calling its Bootstrap interface and removing it from the container. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.adobe.idp.dsc.registry.component.ComponentRegistry |
|---|
start |
| Constructor Detail |
|---|
public ComponentRegistryClient(ServiceClientFactory clientServiceFactory)
clientServiceFactory - A ServiceClientFactory instance with valid credentials of the server
where the service is deployed.| Method Detail |
|---|
public java.util.List getComponents()
getComponents in interface ComponentRegistrypublic java.util.List getComponents(java.lang.String aComponentId)
getComponents in interface ComponentRegistryaComponentId - The component identifier.
public Component getComponent(java.lang.String aComponentId,
java.lang.String aVersion)
throws ComponentNotFoundException
ComponentNotFoundException
if it does not exist.
getComponent in interface ComponentRegistryaComponentId - The identifier of the component to return.aVersion - The version number of the component to return.
ComponentNotFoundException
public Component install(Document componentArchiveDocument)
throws RegistryException
install in interface ComponentRegistrycomponentArchiveDocument - A valid Document
representing the bits of the underlying component jar.
RegistryException
public Component install(byte[] componentArchiveByteArray)
throws RegistryException
install in interface ComponentRegistrycomponentArchiveByteArray - A byte array representing the bits of the underlying component jar.
RegistryException
public Component modify(ModifyComponentInfo aInfo)
throws RegistryException
modify in interface ComponentRegistryaInfo - The component information with which to modify the component.
RegistryException
public Component start(Component aComponent)
throws RegistryException
start in interface ComponentRegistryaComponent - The component to start.
RegistryException
public Component stop(Component aComponent)
throws RegistryException
stop in interface ComponentRegistryaComponent - The component to stop.
RegistryException
public Component load(Component aComponent)
throws RegistryException
aComponent - The component to load.
RegistryException
public void uninstall(Component aComponent)
throws RegistryException
uninstall in interface ComponentRegistryaComponent - The component to uninstall.
RegistryException
public void forceUninstall(Component aComponent)
throws RegistryException
forceUninstall in interface ComponentRegistryaComponent - The component to uninstall.
RegistryExceptionpublic void clearCache()
clearCache in interface ComponentRegistry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||