Skip to content

Commit

Permalink
Merge pull request #1160 from Marketcetera/master
Browse files Browse the repository at this point in the history
Re-merge master to unit_tests branch
  • Loading branch information
colinduplantis committed Apr 24, 2023
2 parents 63896f6 + 9784fe7 commit 53455ca
Show file tree
Hide file tree
Showing 394 changed files with 4,224 additions and 2,343 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ hs_err_pid*

# Maven files
target
target-ide

# Eclipse files
.classpath
Expand Down
1 change: 1 addition & 0 deletions admin/admin-api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public interface AdminClient
*
* @param inNewUser a <code>User</code> value
* @param inPassword a <code>String</code> value
* @return a <code>User</code> value
*/
User createUser(User inNewUser,
String inPassword);
Expand Down Expand Up @@ -128,7 +129,7 @@ Permission updatePermission(String inPermissionName,
/**
* Read roles.
*
* @return a <code>List&lt;Role&gt</code> value
* @return a <code>List&lt;Role&gt;</code> value
*/
List<Role> readRoles();
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.marketcetera.admin;

/* $License$ */

/**
* Tagging interface that provides the current user, whatever that means in a given context.
*
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a>
* @version $Id$
* @since $Release$
*/
public interface HasCurrentUser
extends HasUser
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface MutableUserAttributeFactory
*
* @param inUser a <code>User</code> value
* @param inType a <code>UserAttributeType</code> value
* @param inAttribute a <code>String<code> value
* @param inAttribute a <code>String</code> value
* @return a <code>UserAttribute</code> value
*/
MutableUserAttribute create(User inUser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface UserAttributeFactory
*
* @param inUser a <code>User</code> value
* @param inType a <code>UserAttributeType</code> value
* @param inAttribute a <code>String<code> value
* @param inAttribute a <code>String</code> value
* @return a <code>UserAttribute</code> value
*/
UserAttribute create(User inUser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface PasswordService
/**
* Get the hash of the given value.
*
* @param inValue a <code>char[][]</code> value
* @param inValues a <code>char[][]</code> value
* @return a <code>String</code> value
*/
String getHash(char[]...inValues);
Expand Down
1 change: 1 addition & 0 deletions admin/admin-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
1 change: 1 addition & 0 deletions admin/admin-rest-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
1 change: 1 addition & 0 deletions admin/admin-rpc-client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
1 change: 1 addition & 0 deletions admin/admin-rpc-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void testGetRpcRole()
rpcRole);
}
/**
* Test {@link AdminRpcUtil#getRole(com.marketcetera.admin.AdminRpc.Role, RoleFactory)}.
* Test <code>getRole</code>.
*
* @throws Exception if an unexpected error occurs
*/
Expand Down Expand Up @@ -170,7 +170,7 @@ public void testGetRpcPermission()
rpcPermission);
}
/**
* Test {@link AdminRpcUtil#getUserAttribute(com.marketcetera.admin.AdminRpc.UserAttribute)}.
* Test <code>getUserAttribute</code>.
*
* @throws Exception if an unexpected error occurs
*/
Expand Down
1 change: 1 addition & 0 deletions admin/admin-rpc-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
1 change: 1 addition & 0 deletions admin/admin-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
*/
public class AddUserToRoleAction
{
/**
* Validate and start the object.
*/
@PostConstruct
public void start()
{
Expand Down Expand Up @@ -56,7 +59,7 @@ public String getUsername()
/**
* Sets the username value.
*
* @param a <code>String</code> value
* @param inUsername a <code>String</code> value
*/
public void setUsername(String inUsername)
{
Expand All @@ -74,18 +77,18 @@ public String getRoleName()
/**
* Sets the roleName value.
*
* @param a <code>String</code> value
* @param inRoleName a <code>String</code> value
*/
public void setRoleName(String inRoleName)
{
roleName = inRoleName;
}
/**
*
* username value
*/
private String username;
/**
*
* role name value
*/
private String roleName;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
*/
public class AddUserToSupervisorRoleAction
{
/**
* Validate and start the object.
*/
@PostConstruct
public void start()
{
Expand Down Expand Up @@ -56,7 +59,7 @@ public String getSubjectUsername()
/**
* Sets the subjectUsername value.
*
* @param a <code>String</code> value
* @param inSubjectUsername a <code>String</code> value
*/
public void setSubjectUsername(String inSubjectUsername)
{
Expand All @@ -74,18 +77,18 @@ public String getSupervisorPermissionName()
/**
* Sets the supervisorPermissionName value.
*
* @param a <code>String</code> value
* @param inSupervisorPermissionName a <code>String</code> value
*/
public void setSupervisorPermissionName(String inSupervisorPermissionName)
{
supervisorPermissionName = inSupervisorPermissionName;
}
/**
*
* subject username value
*/
private String subjectUsername;
/**
*
* supervisor username value
*/
private String supervisorPermissionName;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public long getPollingInterval()
/**
* Sets the pollingInterval value.
*
* @param a <code>long</code> value
* @param inPollingInterval a <code>long</code> value
*/
public void setPollingInterval(long inPollingInterval)
{
Expand All @@ -129,7 +129,7 @@ public String getProvisioningDirectory()
/**
* Sets the provisioningDirectory value.
*
* @param a <code>String</code> value
* @param inProvisioningDirectory a <code>String</code> value
*/
public void setProvisioningDirectory(String inProvisioningDirectory)
{
Expand All @@ -147,7 +147,7 @@ public ClusterService getClusterService()
/**
* Sets the clusterService value.
*
* @param a <code>ClusterService</code> value
* @param inClusterService a <code>ClusterService</code> value
*/
public void setClusterService(ClusterService inClusterService)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ public void setPassword(char[] password)
* {@link #validatePassword(char[]) validating} the supplied password.
* @param originalPassword the original password. This password should
* match the currently configured password.
* <p>
* The new password is not saved to the database. To save
* the new password to the database, invoke {@link #save()}
*
* @param newPassword the new password, cannot be empty.
*
Expand Down
1 change: 1 addition & 0 deletions cluster/cluster-api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void setAttribute(String inKey,
/**
* Get the attribute with the given key for the local cluster member.
*
* @param inKey a <code>String<code> value
* @param inKey a <code>String</code> value
* @return a <code>String</code> value or <code>null</code>
*/
String getAttribute(String inKey);
Expand All @@ -125,7 +125,7 @@ void setAttribute(String inKey,
/**
* Get the attributes for all cluster members.
*
* @return a <code>Map&lt;String,Map&l;String,String&gt;&gt;</code> value
* @return a <code>Map&lt;String,Map&lt;String,String&gt;&gt;</code> value
*/
Map<String,Map<String,String>> getAttributes();
/**
Expand Down
1 change: 1 addition & 0 deletions cluster/cluster-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public String getWorkUnitUid()
/**
* Sets the workUnitUid value.
*
* @param a <code>String</code> value
* @param inWorkUnitUid a <code>String</code> value
*/
public void setWorkUnitUid(String inWorkUnitUid)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,6 @@ protected Set<ClusterWorkUnitDescriptor> getActiveWorkUnitSpecs(ClusterWorkUnitS
}
/**
* Establishes the set of work unit specs for the cluster.
*
* @throws InterruptedException if the appropriate cluster lock cannot be established
*/
protected void establishWorkUnitSpecs()
{
Expand Down
1 change: 1 addition & 0 deletions cluster/cluster-rpc-client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
1 change: 1 addition & 0 deletions cluster/cluster-rpc-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
1 change: 1 addition & 0 deletions cluster/cluster-rpc-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
1 change: 1 addition & 0 deletions cluster/cluster-simple/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
1 change: 1 addition & 0 deletions core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target-ide/
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public String getDefaultValue()
/**
* Sets the defaultValue value.
*
* @param a <code>String</code> value
* @param inDefaultValue a <code>String</code> value
*/
public void setDefaultValue(String inDefaultValue)
{
Expand All @@ -205,7 +205,7 @@ public boolean isReadOnly()
/**
* Sets the isReadOnly value.
*
* @param a <code>boolean</code> value
* @param inIsReadOnly a <code>boolean</code> value
*/
public void setIsReadOnly(boolean inIsReadOnly)
{
Expand All @@ -223,7 +223,7 @@ public String getAdvice()
/**
* Sets the advice value.
*
* @param a <code>String</code> value
* @param inAdvice a <code>String</code> value
*/
public void setAdvice(String inAdvice)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ApplicationContext getApplicationContext()
/**
* Sets the applicationContext value.
*
* @param an <code>ApplicationContext</code> value
* @param inApplicationContext an <code>ApplicationContext</code> value
*/
public void setApplicationContext(ApplicationContext inApplicationContext)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ContextClassProvider getContextClassProvider()
/**
* Sets the contextClassProvider value.
*
* @param a <code>ContextClassProvider</code> value
* @param inContextClassProvider a <code>ContextClassProvider</code> value
*/
public void setContextClassProvider(ContextClassProvider inContextClassProvider)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public BatchQueueProcessor(String inThreadDescription)
/**
* Create a new BatchQueueProcessor instance.
*
* @param inThreadDescription a <code>String</code> value
* @param inThreadDescriptor a <code>String</code> value
* @param inQueue a <code>BlockingQueue&lt;Clazz&gt;</code> value
*/
public BatchQueueProcessor(String inThreadDescriptor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.Closeable;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;

import org.apache.commons.lang.Validate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected void processData(Clazz inData)
* <p>Subclasses may override this value to customize the batch size.
* The default value is {@link Integer#MAX_VALUE}.
*
* @return an <code>int</cod> value
* @return an <code>int</code> value
*/
protected int getBatchSize()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public long getMonitorInterval()
/**
* Sets the monitorInterval value.
*
* @param a <code>long</code> value
* @param inMonitorInterval a <code>long</code> value
*/
public void setMonitorInterval(long inMonitorInterval)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
package org.marketcetera.core.file;

import java.io.File;

/* $License$ */

/**
* Watches the given directories for files to be added or modified.
*
* <p>Instantiate a <code>DirectoryWatcher</code> implementer and {@link #setDirectoriesToWatch(File...) add} directories
* to watch. {@link DirectoryWatcher#addWatcher(DirectoryWatcherSubscriber) Subscribe} to notifications and {@link #start() start} the
* <p>Instantiate a <code>DirectoryWatcher</code> implementer and add directories
* to watch. {@link DirectoryWatcher#addWatcher(DirectoryWatcherSubscriber) Subscribe} to notifications and start the
* watcher.</p>
*
* <p>The <code>DirectoryWatcher</code> contract directs that watchers will be notified in the order they subscribed for
* each file that:
* <ul>
* <li>exists in the directory upon the call to {@link #start start}</li>
* <li>exists in the directory upon the call to start</li>
* <li>is added to the directory after start</li>
* </ul>
*
* <p>Watchers are notified for each file once and only once. Watcher notifications
* are guaranteed to occur no more frequently than the interval {@link #setPollingInterval(long) set}.</p>
* are guaranteed to occur no more frequently than the interval set.</p>
*
* <p>Implementers are guaranteed by contract to provide a thread-safe implementation.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
* from a FIX message.
* <p>
* Typical usage is
* <pre>
* quickfix.Message message =...
* {@link InstrumentFromMessage}.{@link #SELECTOR}.{@link DynamicInstrumentFunctionSelector#forValue(Object) forValue}(message).{@link #extract(quickfix.Message) extract}(message);
* </pre>
* <pre>Instrument instrument = InstrumentFromMessage.SELECTOR.forValue(quickfix.Message).extract(quickfix.Message);</pre>
*
* @author anshul@marketcetera.com
* @version $Id$
Expand Down
Loading

0 comments on commit 53455ca

Please sign in to comment.