blob: 0e1c48d7d075a3d413dadfe797e3eae5d5f98447 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
*******************************************************************************/
package org.eclipse.ptp.rdt.ui.subsystems;
import org.eclipse.rse.connectorservice.dstore.DStoreConnectorServiceManager;
import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
import org.eclipse.rse.core.subsystems.SubSystemConfiguration;
import org.eclipse.rse.services.dstore.IDStoreService;
/**
* Handles configuration of the RemoteCIndexSubsystem
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as
* part of a work in progress. There is no guarantee that this API will work or
* that it will remain the same. Please do not use this API without consulting
* with the RDT team.
*
* @author crecoskie
*
*/
public class RemoteCIndexSubsystemConfiguration extends SubSystemConfiguration
implements ISubSystemConfiguration {
/**
*
*/
public RemoteCIndexSubsystemConfiguration() {
// TODO Auto-generated constructor stub
}
/* (non-Javadoc)
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#createSubSystemInternal(org.eclipse.rse.core.model.IHost)
*/
@Override
public ISubSystem createSubSystemInternal(IHost conn) {
return new RemoteCIndexSubsystem(conn, getConnectorService(conn));
}
/* (non-Javadoc)
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#getConnectorService(org.eclipse.rse.core.model.IHost)
*/
@Override
public IConnectorService getConnectorService(IHost host)
{
return DStoreConnectorServiceManager.getInstance().getConnectorService(host, getServiceImplType());
}
/* (non-Javadoc)
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#getServiceImplType()
*/
public Class<IDStoreService> getServiceImplType()
{
return IDStoreService.class;
}
}