1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-30 03:33:37 +02:00

[cleanup] Add API "since" Javadoc tags

This commit is contained in:
Martin Oberhuber 2008-03-28 18:06:39 +00:00
parent b91376bf09
commit 7cb6301408
4 changed files with 89 additions and 79 deletions

View file

@ -20,9 +20,15 @@
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand>
<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.pde.PluginNature</nature> <nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures> </natures>
</projectDescription> </projectDescription>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<component id="org.eclipse.dstore.core" version="1">
<resource path="src/org/eclipse/dstore/core/model/DataStoreAttributes.java">
<filter id="388190292"/>
</resource>
</component>

View file

@ -12,8 +12,8 @@
* 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.
* Martin Oberhuber (Wind River) - [219260][dstore][regression] Cannot connect to dstore daemon * Martin Oberhuber (Wind River) - [219260][dstore][regression] Cannot connect to dstore daemon
* David McKnight (IBM) [220123][dstore] Configurable timeout on irresponsiveness * David McKnight (IBM) [220123][dstore] Configurable timeout on irresponsiveness
* 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
@ -76,13 +76,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>
*
*
*/ */
public class ClientConnection public class ClientConnection
{ {
private ClientAttributes _clientAttributes; private ClientAttributes _clientAttributes;
private Socket _theSocket; private Socket _theSocket;
@ -323,9 +319,9 @@ public class ClientConnection
if (_isRemote) if (_isRemote)
{ {
_commandHandler.command( _commandHandler.command(
_dataStore.find(_dataStore.getRoot(), DE.A_NAME, "Exit"), //$NON-NLS-1$ _dataStore.find(_dataStore.getRoot(), DE.A_NAME, "Exit"), //$NON-NLS-1$
_dataStore.getHostRoot(), _dataStore.getHostRoot(),
false); false);
_receiver.finish(); _receiver.finish();
} }
@ -378,11 +374,11 @@ public class ClientConnection
((ServerCommandHandler) _commandHandler).loadMiners(); ((ServerCommandHandler) _commandHandler).loadMiners();
_clientAttributes.setAttribute( _clientAttributes.setAttribute(
DataStoreAttributes.A_LOCAL_NAME, DataStoreAttributes.A_LOCAL_NAME,
_clientAttributes.getAttribute(DataStoreAttributes.A_HOST_NAME)); _clientAttributes.getAttribute(DataStoreAttributes.A_HOST_NAME));
_clientAttributes.setAttribute( _clientAttributes.setAttribute(
DataStoreAttributes.A_LOCAL_PATH, DataStoreAttributes.A_LOCAL_PATH,
_clientAttributes.getAttribute(DataStoreAttributes.A_HOST_PATH)); _clientAttributes.getAttribute(DataStoreAttributes.A_HOST_PATH));
_isConnected = true; _isConnected = true;
@ -881,10 +877,10 @@ public class ClientConnection
public boolean isKnownStatus(String status) public boolean isKnownStatus(String status)
{ {
return status.equals(IDataStoreConstants.CONNECTED) || return status.equals(IDataStoreConstants.CONNECTED) ||
status.equals(IDataStoreConstants.AUTHENTICATION_FAILED) || status.equals(IDataStoreConstants.AUTHENTICATION_FAILED) ||
status.equals(IDataStoreConstants.UNKNOWN_PROBLEM) || status.equals(IDataStoreConstants.UNKNOWN_PROBLEM) ||
status.startsWith(IDataStoreConstants.SERVER_FAILURE) || status.startsWith(IDataStoreConstants.SERVER_FAILURE) ||
status.equals(IDataStoreConstants.PASSWORD_EXPIRED) || status.equals(IDataStoreConstants.PASSWORD_EXPIRED) ||
status.equals(IDataStoreConstants.NEW_PASSWORD_INVALID); status.equals(IDataStoreConstants.NEW_PASSWORD_INVALID);
} }
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************** /********************************************************************************
* Copyright (c) 2006, 2007 IBM Corporation. All rights reserved. * Copyright (c) 2006, 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
@ -13,19 +13,21 @@
* Contributors: * Contributors:
* David McKnight (IBM) - update version to 9.0.0 * David McKnight (IBM) - update version to 9.0.0
* David McKnight (IBM) - [220892] version back to 8.1.0 since protocol hasn't changed * David McKnight (IBM) - [220892] version back to 8.1.0 since protocol hasn't changed
* Martin Oberhuber (Wind River) - [cleanup] Add API "since" Javadoc tags
********************************************************************************/ ********************************************************************************/
package org.eclipse.dstore.core.model; package org.eclipse.dstore.core.model;
/** /**
* This class is used to store attributes that are required * This class is used to store attributes that are required for configuring a
* for configurating a remote connection. * remote connection.
*/ */
public class DataStoreAttributes public class DataStoreAttributes
{ {
/**
* Datastore Protocol Version. Current value = "DataStore.8.0.0". Will be
* changed with protocol updates (which are only rarely necessary).
*/
public static final String DATASTORE_VERSION = "DataStore.8.0.0"; //$NON-NLS-1$ public static final String DATASTORE_VERSION = "DataStore.8.0.0"; //$NON-NLS-1$
public static final int A_PLUGIN_PATH = 0; public static final int A_PLUGIN_PATH = 0;