1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-19 14:15:50 +02:00

[releng][cleanup] Fix @since tags according to API Tooling

This commit is contained in:
Martin Oberhuber 2008-06-04 09:13:57 +00:00
parent ab9d7e283b
commit c607dc0f72
8 changed files with 96 additions and 61 deletions

View file

@ -10,7 +10,7 @@
* component that contains this file: David McKnight, Kushal Munir, * component that contains this file: David McKnight, Kushal Munir,
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
* *
* Contributors: * Contributors:
* David McKnight (IBM) - [205986] daemon handshake needs a timeout * David McKnight (IBM) - [205986] daemon handshake needs a timeout
* David McKnight (IBM) - [218685] [dstore] Unable to connect when using SSL. * David McKnight (IBM) - [218685] [dstore] Unable to connect when using SSL.
@ -73,7 +73,7 @@ import org.eclipse.dstore.internal.extra.DomainNotifier;
* If a connection is local, then a DataStore is instantiated * If a connection is local, then a DataStore is instantiated
* in the same process to be used by the client to communicate with miners (tools). * in the same process to be used by the client to communicate with miners (tools).
* </li> * </li>
* *
* <li> * <li>
* If a connection is not local, then a virtual DataStore is instantiated in the * If a connection is not local, then a virtual DataStore is instantiated in the
* current process to communicate with the remote DataStore. If the client wishes * current process to communicate with the remote DataStore. If the client wishes
@ -82,9 +82,9 @@ import org.eclipse.dstore.internal.extra.DomainNotifier;
* newly launched DataStore. Otherwise, a DataStore is expected to be running on * newly launched DataStore. Otherwise, a DataStore is expected to be running on
* the remote machine under the same port that the client tries to connect to. * the remote machine under the same port that the client tries to connect to.
* </li> * </li>
* *
* @noextend This class is not intended to be subclassed by clients. * @noextend This class is not intended to be subclassed by clients.
* *
*/ */
public class ClientConnection public class ClientConnection
{ {
@ -151,7 +151,9 @@ public class ClientConnection
* Creates a new ClientConnection instance * Creates a new ClientConnection instance
* *
* @param name an identifier for this connection * @param name an identifier for this connection
* @param notifier the notifier used to keep the user interface in synch with the DataStore * @param notifier the notifier used to keep the user interface in synch
* with the DataStore
* @since 3.0 changed DomainNotifier into IDomainNotifier
*/ */
public ClientConnection(String name, IDomainNotifier notifier) public ClientConnection(String name, IDomainNotifier notifier)
{ {
@ -164,8 +166,10 @@ public class ClientConnection
* Creates a new ClientConnection instance * Creates a new ClientConnection instance
* *
* @param name an identifier for this connection * @param name an identifier for this connection
* @param notifier the notifier used to keep the user interface in synch with the DataStore * @param notifier the notifier used to keep the user interface in synch
* with the DataStore
* @param initialSize the number of elements to preallocate in the DataStore * @param initialSize the number of elements to preallocate in the DataStore
* @since 3.0 changed DomainNotifier into IDomainNotifier
*/ */
public ClientConnection(String name, IDomainNotifier notifier, int initialSize) public ClientConnection(String name, IDomainNotifier notifier, int initialSize)
{ {
@ -200,10 +204,18 @@ public class ClientConnection
_dataStore.setSSLProperties(properties); _dataStore.setSSLProperties(properties);
} }
/**
* @since 3.0 changed DataStoreCompatibilityHandler into
* IDataStoreCompatibilityHandler
*/
public void setCompatibilityHandler(IDataStoreCompatibilityHandler handler){ public void setCompatibilityHandler(IDataStoreCompatibilityHandler handler){
_dataStore.setCompatibilityHandler(handler); _dataStore.setCompatibilityHandler(handler);
} }
/**
* @since 3.0 changed DataStoreCompatibilityHandler into
* IDataStoreCompatibilityHandler
*/
public IDataStoreCompatibilityHandler getCompatibilityHandler(){ public IDataStoreCompatibilityHandler getCompatibilityHandler(){
return _dataStore.getCompatibilityHandler(); return _dataStore.getCompatibilityHandler();
} }
@ -222,6 +234,7 @@ public class ClientConnection
* Adds a loader to be used to instantiate the miners * Adds a loader to be used to instantiate the miners
* *
* @param loader the loader * @param loader the loader
* @since 3.0 changed ExternalLoader into IExternalLoader
*/ */
public void addLoader(IExternalLoader loader) public void addLoader(IExternalLoader loader)
{ {
@ -429,6 +442,9 @@ public class ClientConnection
return connect(launchStatus.getTicket()); return connect(launchStatus.getTicket());
} }
/**
* @since 3.0 changed DataStoreTrustManager into IDataStoreTrustManager
*/
public IDataStoreTrustManager getTrustManager() public IDataStoreTrustManager getTrustManager()
{ {
if (_trustManager == null) if (_trustManager == null)
@ -725,7 +741,7 @@ public class ClientConnection
/** /**
* Connect to a remote daemon * Connect to a remote daemon
* *
* @param daemonPort the port of the daemon * @param daemonPort the port of the daemon
* @return the status of the connection * @return the status of the connection
* @since 3.0 * @since 3.0
@ -811,7 +827,7 @@ public class ClientConnection
/** /**
* Reeturns the launch socket * Reeturns the launch socket
* *
* @return the launch socket * @return the launch socket
*/ */
public Socket getLaunchSocket() { public Socket getLaunchSocket() {

View file

@ -7,21 +7,21 @@
* *
* Initial Contributors: * Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer * The following IBM employees contributed to the Remote System Explorer
* component that contains this file: David McKnight, Kushal Munir, * component that contains this file: David McKnight, Kushal Munir,
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
* *
* Contributors: * Contributors:
* Noriaki Takatsu (IBM) [220126] [dstore][api][breaking] Single process server for multiple clients * Noriaki Takatsu (IBM) [220126] [dstore][api][breaking] Single process server for multiple clients
*******************************************************************************/ *******************************************************************************/
package org.eclipse.dstore.core.miners; package org.eclipse.dstore.core.miners;
import org.eclipse.dstore.core.server.SecuredThread;
import org.eclipse.dstore.core.model.DataStore; import org.eclipse.dstore.core.model.DataStore;
import org.eclipse.dstore.core.server.SecuredThread;
/** /**
* MinerThread is a utility class used for doing threaded operations in a miner. * MinerThread is a utility class used for doing threaded operations in a miner.
*/ */
public abstract class MinerThread extends SecuredThread public abstract class MinerThread extends SecuredThread
{ {
@ -36,9 +36,12 @@ public abstract class MinerThread extends SecuredThread
{ {
_isCancelled = false; _isCancelled = false;
} }
/** /**
* Constructor with dataStore * Constructor with dataStore.
*
* @since 3.0
*/ */
public MinerThread(DataStore dataStore) public MinerThread(DataStore dataStore)
{ {
@ -85,7 +88,7 @@ public abstract class MinerThread extends SecuredThread
{ {
try try
{ {
sleep(100); sleep(100);
// yield(); // yield();
} }
catch (InterruptedException e) catch (InterruptedException e)
@ -119,14 +122,14 @@ public abstract class MinerThread extends SecuredThread
/** /**
* Implement this method to provide the work implementation of this thread. * Implement this method to provide the work implementation of this thread.
* This method gets called periodically by the miner thread so te work done * This method gets called periodically by the miner thread so te work done
* here must be atomic. Each time this is called a incremental unit of * here must be atomic. Each time this is called a incremental unit of
* work should be done. Once all the work is done, <b>true</b> should be * work should be done. Once all the work is done, <b>true</b> should be
* returned. * returned.
* *
* @return <b>true</b> if all the work is done. * @return <b>true</b> if all the work is done.
*/ */
public abstract boolean doThreadedWork(); public abstract boolean doThreadedWork();
/** /**
* Implement this method to provide any cleanup that is required after * Implement this method to provide any cleanup that is required after
* all the work is done. * all the work is done.

View file

@ -8,7 +8,7 @@
* Initial Contributors: * Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer * The following IBM employees contributed to the Remote System Explorer
* component that contains this file: Noriaki Takatsu and Masao Nishimoto * component that contains this file: Noriaki Takatsu and Masao Nishimoto
* *
* Contributors: * Contributors:
* Noriaki Takatsu (IBM) [220126] [dstore][api][breaking] Single process server for multiple clients * Noriaki Takatsu (IBM) [220126] [dstore][api][breaking] Single process server for multiple clients
* Jacob Garcowski (IBM) [225175] [dstore] [dstore] error handling change for Client * Jacob Garcowski (IBM) [225175] [dstore] [dstore] error handling change for Client
@ -22,45 +22,48 @@ import org.eclipse.dstore.core.server.IServerLogger;
import org.eclipse.dstore.core.server.ServerReceiver; import org.eclipse.dstore.core.server.ServerReceiver;
/** /**
* A DStore Client representing a user's connection in the multi-process
* dstore server.
* @noextend This class is not intended to be subclassed by clients. * @noextend This class is not intended to be subclassed by clients.
* @since 3.0
*/ */
public class Client public class Client
{ {
public String _userid; public String _userid;
private IServerLogger _logger; private IServerLogger _logger;
protected ServerReceiver _receiver; protected ServerReceiver _receiver;
public void setUserid(String userid) public void setUserid(String userid)
{ {
_userid = userid; _userid = userid;
} }
public String getUserid() public String getUserid()
{ {
return _userid; return _userid;
} }
public void setLogger(IServerLogger logger) public void setLogger(IServerLogger logger)
{ {
_logger = logger; _logger = logger;
} }
public IServerLogger getLogger() public IServerLogger getLogger()
{ {
return _logger; return _logger;
} }
public String getProperty(String key) public String getProperty(String key)
{ {
return System.getProperty(key); return System.getProperty(key);
} }
public void disconnectServerReceiver() public void disconnectServerReceiver()
{ {
if (_receiver != null) if (_receiver != null)
_receiver.finish(); _receiver.finish();
} }
public void setServerReceiver(ServerReceiver receiver) public void setServerReceiver(ServerReceiver receiver)
{ {
_receiver = receiver; _receiver = receiver;

View file

@ -206,6 +206,9 @@ public abstract class CommandHandler extends Handler
_commands.clear(); _commands.clear();
} }
/**
* @since 3.0 CommandGenerator moved from "internal" to API
*/
public CommandGenerator getCommandGenerator() public CommandGenerator getCommandGenerator()
{ {
return _commandGenerator; return _commandGenerator;

View file

@ -1,35 +1,37 @@
/******************************************************************************** /********************************************************************************
* Copyright (c) 2008 IBM Corporation. All rights reserved. * Copyright (c) 2008 IBM Corporation. All rights reserved.
* This program and the accompanying materials are made available under the terms * 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 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html * available at http://www.eclipse.org/legal/epl-v10.html
* *
* Initial Contributors: * Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer * The following IBM employees contributed to the Remote System Explorer
* component that contains this file: David McKnight. * component that contains this file: David McKnight.
* *
* Contributors: * Contributors:
* David McKnight (IBM) - [220892][dstore] Backward compatibility: Server and Daemon should support old clients * David McKnight (IBM) - [220892][dstore] Backward compatibility: Server and Daemon should support old clients
********************************************************************************/ ********************************************************************************/
package org.eclipse.dstore.core.model; package org.eclipse.dstore.core.model;
/**
* @since 3.0
*/
public class DefaultDataStoreCompatibilityHandler implements public class DefaultDataStoreCompatibilityHandler implements
IDataStoreCompatibilityHandler { IDataStoreCompatibilityHandler {
private DataStore _dataStore; private DataStore _dataStore;
public DefaultDataStoreCompatibilityHandler(DataStore dataStore){ public DefaultDataStoreCompatibilityHandler(DataStore dataStore){
_dataStore = dataStore; _dataStore = dataStore;
} }
public int checkCompatibility(String handshake){ public int checkCompatibility(String handshake){
String[] clientVersionStr = DataStoreAttributes.DATASTORE_VERSION.split("\\."); //$NON-NLS-1$ String[] clientVersionStr = DataStoreAttributes.DATASTORE_VERSION.split("\\."); //$NON-NLS-1$
String[] serverVersionStr = handshake.split("\\."); //$NON-NLS-1$ String[] serverVersionStr = handshake.split("\\."); //$NON-NLS-1$
int clientVersion = Integer.parseInt(clientVersionStr[VERSION_INDEX_VERSION]); int clientVersion = Integer.parseInt(clientVersionStr[VERSION_INDEX_VERSION]);
int serverVersion = Integer.parseInt(serverVersionStr[VERSION_INDEX_VERSION]); int serverVersion = Integer.parseInt(serverVersionStr[VERSION_INDEX_VERSION]);
if (handshake.equals(DataStoreAttributes.DATASTORE_VERSION)) if (handshake.equals(DataStoreAttributes.DATASTORE_VERSION))
{ {
return HANDSHAKE_CORRECT; return HANDSHAKE_CORRECT;
@ -75,7 +77,7 @@ public class DefaultDataStoreCompatibilityHandler implements
return HANDSHAKE_SERVER_RECENT_OLDER; return HANDSHAKE_SERVER_RECENT_OLDER;
} }
else else
{ {
return HANDSHAKE_SERVER_OLDER; return HANDSHAKE_SERVER_OLDER;
} }
} }
@ -87,7 +89,7 @@ public class DefaultDataStoreCompatibilityHandler implements
} }
} }
} }
public void handleMissingCommand(DataElement descriptor, String keyName){ public void handleMissingCommand(DataElement descriptor, String keyName){
// default does nothing in this situation // default does nothing in this situation
// System.out.println("missing command:"+keyName); // System.out.println("missing command:"+keyName);

View file

@ -1,19 +1,22 @@
/******************************************************************************** /********************************************************************************
* Copyright (c) 2008 IBM Corporation. All rights reserved. * Copyright (c) 2008 IBM Corporation. All rights reserved.
* This program and the accompanying materials are made available under the terms * 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 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html * available at http://www.eclipse.org/legal/epl-v10.html
* *
* Initial Contributors: * Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer * The following IBM employees contributed to the Remote System Explorer
* component that contains this file: David McKnight. * component that contains this file: David McKnight.
* *
* Contributors: * Contributors:
* David McKnight (IBM) - [220892][dstore] Backward compatibility: Server and Daemon should support old clients * David McKnight (IBM) - [220892][dstore] Backward compatibility: Server and Daemon should support old clients
********************************************************************************/ ********************************************************************************/
package org.eclipse.dstore.core.model; package org.eclipse.dstore.core.model;
/**
* @since 3.0
*/
public interface IDataStoreCompatibilityHandler { public interface IDataStoreCompatibilityHandler {
public static final int HANDSHAKE_INCORRECT = 0; public static final int HANDSHAKE_INCORRECT = 0;
public static final int HANDSHAKE_SERVER_OLDER = 1; public static final int HANDSHAKE_SERVER_OLDER = 1;
@ -23,22 +26,22 @@ public interface IDataStoreCompatibilityHandler {
public static final int HANDSHAKE_SERVER_RECENT_OLDER = 5; public static final int HANDSHAKE_SERVER_RECENT_OLDER = 5;
public static final int HANDSHAKE_SERVER_RECENT_NEWER = 6; public static final int HANDSHAKE_SERVER_RECENT_NEWER = 6;
public static final int HANDSHAKE_TIMEOUT = 7; public static final int HANDSHAKE_TIMEOUT = 7;
public static final int VERSION_INDEX_PROTOCOL = 0; public static final int VERSION_INDEX_PROTOCOL = 0;
public static final int VERSION_INDEX_VERSION = 1; public static final int VERSION_INDEX_VERSION = 1;
public static final int VERSION_INDEX_MINOR = 2; public static final int VERSION_INDEX_MINOR = 2;
/** /**
* Checks whether a server is compatible with the current client * Checks whether a server is compatible with the current client
* @param handshake the server handshake string in the form <version>.<major>.<miner> * @param handshake the server handshake string in the form <version>.<major>.<miner>
* @return whether this is considered compatible with the client datastore version * @return whether this is considered compatible with the client datastore version
*/ */
public int checkCompatibility(String handshake); public int checkCompatibility(String handshake);
/** /**
* This method is called to notify the compatibility handler that a call * This method is called to notify the compatibility handler that a call
* to localDescriptorQuery() failed to return a result. * to localDescriptorQuery() failed to return a result.
* *
* @param descriptor the object descriptor that the command was looked for under * @param descriptor the object descriptor that the command was looked for under
* @param keyName the value of the command descriptor to look for * @param keyName the value of the command descriptor to look for
*/ */

View file

@ -1,24 +1,26 @@
/******************************************************************************** /********************************************************************************
* Copyright (c) 2008 IBM Corporation. All rights reserved. * Copyright (c) 2008 IBM Corporation. All rights reserved.
* This program and the accompanying materials are made available under the terms * 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 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html * available at http://www.eclipse.org/legal/epl-v10.html
* *
* Initial Contributors: * Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer * The following IBM employees contributed to the Remote System Explorer
* component that contains this file: David McKnight. * component that contains this file: David McKnight.
* *
* Contributors: * Contributors:
* David McKnight (IBM) [220123][dstore] Configurable timeout on irresponsiveness * David McKnight (IBM) [220123][dstore] Configurable timeout on irresponsiveness
********************************************************************************/ ********************************************************************************/
package org.eclipse.dstore.core.model; package org.eclipse.dstore.core.model;
/** /**
* Classes that implement this and add themselves to the DataStore preference listeners * Classes that implement this and add themselves to the DataStore preference
* get called each time a preference is changed. * listeners get called each time a preference is changed.
*
* @since 3.0
*/ */
public interface IDataStorePreferenceListener { public interface IDataStorePreferenceListener {
/** /**
* A DataStore preference has changed * A DataStore preference has changed
* @param property the property that has changed * @param property the property that has changed

View file

@ -15,33 +15,36 @@
package org.eclipse.dstore.core.server; package org.eclipse.dstore.core.server;
public interface IServerLogger /**
* @since 3.0
*/
public interface IServerLogger
{ {
/** /**
* logInfo * logInfo
* *
* @param minerName * @param minerName
* @param message Message text to be logged. * @param message Message text to be logged.
*/ */
public void logInfo(String minerName, String message); public void logInfo(String minerName, String message);
/** /**
* logWarning * logWarning
* *
* @param minerName * @param minerName
* @param message Message text to be logged. * @param message Message text to be logged.
*/ */
public void logWarning(String minerName, String message); public void logWarning(String minerName, String message);
/** /**
* logError * logError
* *
* @param minerName * @param minerName
* @param message Message text to be logged. * @param message Message text to be logged.
* @param exception Exception that generated the error. Used to print a stack trace. * @param exception Exception that generated the error. Used to print a stack trace.
*/ */
public void logError(String minerName, String message, Throwable exception); public void logError(String minerName, String message, Throwable exception);
/** /**
* logDebugMessage * logDebugMessage
* @param minerName * @param minerName