Search in sources :

Example 11 with ManagerImpl

use of com.cosylab.acs.maci.manager.ManagerImpl in project ACS by ACS-Community.

the class ClientInfoCommandComponentRemove method execute.

/**
	 * @see Command#execute(PrevalentSystem)
	 */
public Serializable execute(PrevalentSystem system) throws Exception {
    ClientInfo clientInfo = ((ManagerImpl) system).noSyncGetClientInfo(id);
    clientInfo.getComponents().remove(handle);
    return null;
}
Also used : ManagerImpl(com.cosylab.acs.maci.manager.ManagerImpl) ClientInfo(com.cosylab.acs.maci.ClientInfo)

Example 12 with ManagerImpl

use of com.cosylab.acs.maci.manager.ManagerImpl in project ACS by ACS-Community.

the class ContainerInfoCommandComponentRemove method execute.

/**
	 * @see Command#execute(PrevalentSystem)
	 */
public Serializable execute(PrevalentSystem system) throws Exception {
    ContainerInfo containerInfo = (ContainerInfo) ((ManagerImpl) system).getContainers().get(handle);
    containerInfo.getComponents().remove(cobHandle);
    return null;
}
Also used : ManagerImpl(com.cosylab.acs.maci.manager.ManagerImpl) ContainerInfo(com.cosylab.acs.maci.ContainerInfo)

Example 13 with ManagerImpl

use of com.cosylab.acs.maci.manager.ManagerImpl in project ACS by ACS-Community.

the class ComponentCommandClientAdd method execute.

/**
	 * @see Command#execute(PrevalentSystem)
	 */
public Serializable execute(PrevalentSystem system) throws Exception {
    ComponentInfo cobInfo = (ComponentInfo) ((ManagerImpl) system).getComponents().get(handle);
    cobInfo.getClients().add(clientHandle);
    return null;
}
Also used : ManagerImpl(com.cosylab.acs.maci.manager.ManagerImpl) ComponentInfo(com.cosylab.acs.maci.ComponentInfo)

Example 14 with ManagerImpl

use of com.cosylab.acs.maci.manager.ManagerImpl in project ACS by ACS-Community.

the class ComponentCommandClientRemove method execute.

/**
	 * @see Command#execute(PrevalentSystem)
	 */
public Serializable execute(PrevalentSystem system) throws Exception {
    ComponentInfo cobInfo = (ComponentInfo) ((ManagerImpl) system).getComponents().get(handle);
    cobInfo.getClients().remove(clientHandle);
    return null;
}
Also used : ManagerImpl(com.cosylab.acs.maci.manager.ManagerImpl) ComponentInfo(com.cosylab.acs.maci.ComponentInfo)

Example 15 with ManagerImpl

use of com.cosylab.acs.maci.manager.ManagerImpl in project ACS by ACS-Community.

the class ComponentInfoCommandComponentAdd method execute.

/**
	 * @see Command#execute(PrevalentSystem)
	 */
public Serializable execute(PrevalentSystem system) throws Exception {
    ComponentInfo componentInfo = (ComponentInfo) ((ManagerImpl) system).getComponents().get(hid);
    componentInfo.getComponents().add(handle);
    return null;
}
Also used : ManagerImpl(com.cosylab.acs.maci.manager.ManagerImpl) ComponentInfo(com.cosylab.acs.maci.ComponentInfo)

Aggregations

ManagerImpl (com.cosylab.acs.maci.manager.ManagerImpl)16 ComponentInfo (com.cosylab.acs.maci.ComponentInfo)4 HandleDataStore (com.cosylab.acs.maci.manager.HandleDataStore)4 ContainerInfo (com.cosylab.acs.maci.ContainerInfo)3 DefaultCORBAService (com.cosylab.acs.maci.plug.DefaultCORBAService)3 CDBAccess (com.cosylab.cdb.client.CDBAccess)3 File (java.io.File)3 ORB (org.omg.CORBA.ORB)3 POA (org.omg.PortableServer.POA)3 ClientInfo (com.cosylab.acs.maci.ClientInfo)2 ClientProxyImpl (com.cosylab.acs.maci.plug.ClientProxyImpl)2 Properties (java.util.Properties)2 POAManager (org.omg.PortableServer.POAManager)2 SnapshotPrevayler (org.prevayler.implementation.SnapshotPrevayler)2 LogConfig (alma.acs.logging.config.LogConfig)1 LogConfigException (alma.acs.logging.config.LogConfigException)1 CoreException (com.cosylab.acs.maci.CoreException)1 CORBATransport (com.cosylab.acs.maci.plug.CORBATransport)1 ManagerProxyImpl (com.cosylab.acs.maci.plug.ManagerProxyImpl)1 NamingServiceRemoteDirectory (com.cosylab.acs.maci.plug.NamingServiceRemoteDirectory)1