|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 ComponentRegistry
public java.util.List getComponents(java.lang.String aComponentId)
getComponents
in interface ComponentRegistry
aComponentId
- 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 ComponentRegistry
aComponentId
- 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 ComponentRegistry
componentArchiveDocument
- A valid Document
representing the bits of the underlying component jar.
RegistryException
public Component install(byte[] componentArchiveByteArray) throws RegistryException
install
in interface ComponentRegistry
componentArchiveByteArray
- A byte array representing the bits of the underlying component jar.
RegistryException
public Component modify(ModifyComponentInfo aInfo) throws RegistryException
modify
in interface ComponentRegistry
aInfo
- The component information with which to modify the component.
RegistryException
public Component start(Component aComponent) throws RegistryException
start
in interface ComponentRegistry
aComponent
- The component to start.
RegistryException
public Component stop(Component aComponent) throws RegistryException
stop
in interface ComponentRegistry
aComponent
- 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 ComponentRegistry
aComponent
- The component to uninstall.
RegistryException
public void forceUninstall(Component aComponent) throws RegistryException
forceUninstall
in interface ComponentRegistry
aComponent
- The component to uninstall.
RegistryException
public void clearCache()
clearCache
in interface ComponentRegistry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |