Commit 035053b7 authored by toaster's avatar toaster

[maven-release-plugin] copy for tag ace-1.6

git-svn-id: https://subversion.umiacs.umd.edu/ace/tags/ace-1.6@84 f1b3a171-7291-4a19-a512-95ad0ad9394a
parent 847ff9bf
Installation directions for the ACE Audit Manager.
The ACE AM requires the following software:
- Java 1.6+ (http://java.sun.com)
- Tomcat 6.0+ (http://tomcat.apache.org)
- Mysql 4.0+ (http://www.mysql.org)
- MySQL Connector 5.0.7+ (http://www.mysql.com/products/connector/j/)
------------------------------------------
In this file you should find the following:
- ace-am.sql - SQL installation files
- ace-am.war - webapp ACE Audit Manager
- ace-am.xml - XML configuration file for the ACE Audit Manager
- updates/ - directory containing SQL scripts which may be needed for updates
you can ignore these for new installations
------------------------------------------
Quick Installation:
1. Create the ACE database and user
- Create a new database called aceam and grant permissions to the aceam user.
- As a mysql administrator run the following commands:
create database aceam;
grant all on aceam.* to 'aceam'@'localhost' identified by 'YOUR_PASSWORD';
use aceam;
source ace-am.sql;
2. Install the Tomcat webapp and Mysql JDBC Driver
- drop the ace-am.war into $TOMCAT/webapps
- copy the mysql connector to $TOMCAT/lib
3. Configure ACE database connection.
- drop ace-am.xml into $TOMCAT/conf/Catalina/localhost/ace-am.xml
- Edit $TOMCAT/conf/Catalina/localhost/ace-am.xml
- Change the following entries in the Resource Section:
- username - username you set in step 1 (aceam)
- password - password you set in step 1 (YOUR_PASSWORD)
- url - url of your database (jdbc:mysql://localhost/aceam)
4. Start up tomcat (startup.sh or startup.bat)
- Connect to http://localhost:8080/ace-am
- Look at /tmp/aceam.log for error messages
------------------------------------------
Detailed Installation
1. Create ACE database and user
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.20
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database aceam;
Query OK, 1 row affected (0.01 sec)
mysql> grant all on aceam.* to 'aceam'@'localhost' identified by 'YOUR_PASSWORD';
Query OK, 0 rows affected (0.00 sec)
mysql> use aceam;
Database changed
mysql> source ace.sql;
ERROR 1146 (42S02): Table 'aceam.ACTIVITY_LOG_ENTRY' doesn't exist
ERROR 1146 (42S02): Table 'aceam.ACTIVITY_LOG_ENTRY' doesn't exist
...
...
Query OK, 0 rows affected (0.00 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql> exit
Bye
-----
2. Install the Tomcat webapp and Mysql JDBC Driver
- drop the ace-am.war into $TOMCAT/webapps
- copy the mysql connector to $TOMCAT/lib
$ cp ace-am.war apache-tomcat-6.0.14/webapps
$ cp mysql-connector-java-5.0.7-bin.jar apache-tomcat-6.0.14/lib
-----
3. Configure ACE database connection.
- drop ace-am.xml into $TOMCAT/conf/Catalina/localhost/ace-am.xml
- Edit $TOMCAT/conf/Catalina/localhost/ace-am.xml
- Change the following entries in the Resource Section:
- username - username you set in step 1 (aceam)
- password - password you set in step 1 (YOUR_PASSWORD)
- url - url of your database (jdbc:mysql://localhost/aceam)
$ mkdir -p apache-tomcat-6.0.14/conf/Catalina/localhost
$ cp ace-am.xml apache-tomcat-6.0.14/conf/Catalina/localhost
Edit apache-tomcat-6.0.14/conf/Catalina/localhost/ace-am.xml and set:
<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver"
maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/aceamdb"
password="YOUR_PASSWORD" testOnBorrow="true" type="javax.sql.DataSource"
url="jdbc:mysql://localhost/aceam" username="aceam"
validationQuery="SELECT 1"/>
4. Start up tomcat (startup.sh or startup.bat)
- Connect to http://localhost:8080/ace-am
- Look at /tmp/aceam.log for error messages
$ setenv JAVA_HOME /opt/jdk1.6.0
$ cd apache-tomcat-6.0.14
$ bin/startup.sh
$ bin/startup.sh
Using CATALINA_BASE: /home/user/apache-tomcat-6.0.14
Using CATALINA_HOME: /home/user/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: /home/user/apache-tomcat-6.0.14/temp
Using JRE_HOME: /opt/jdk1.6.0
Please see Licenses/* for a complete list of all licenses affecting this code.
All components and source code, unless otherwise noted, are licensed under the
BSD license listed at Licenses/license-ace.txt
/*
* Copyright (c) 2007-2010, University of Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions
* and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
* and the following disclaimer in the documentation and/or other materials provided with the
* distribution.
*
* Neither the name of the University of Maryland nor the names of its contributors may be used to
* endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* ACE Components were written in the ADAPT Project at the University of
* Maryland Institute for Advanced Computer Study.
*/
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
ACE Components were written in the ADAPT Project at the University of
Maryland Institute for Advanced Computer Study.
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>ace</artifactId>
<groupId>edu.umiacs.ace</groupId>
<version>1.6</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-am</artifactId>
<name>ace-am</name>
<packaging>war</packaging>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
</properties>
<dependencies>
<!-- local ace deps -->
<dependency>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-ims-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<!-- for persistence -->
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.1</version>
</dependency>
<!-- for json -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.0.1</version>
</dependency>
<!-- for Jstl / webapp stuff-->
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>quartz</groupId>
<artifactId>quartz</artifactId>
<version>1.5.2</version>
</dependency>
<!-- local ones -->
<dependency>
<groupId>edu.umiacs</groupId>
<artifactId>jargon</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>edu.umiacs</groupId>
<artifactId>swap</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.apache.mina</groupId>
<artifactId>mina-core</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>edu.umiacs</groupId>
<artifactId>adapt-srb</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>edu.umiacs</groupId>
<artifactId>irods-api</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path=""/>
/*
* Copyright (c) 2007-2010, University of Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions
* and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
* and the following disclaimer in the documentation and/or other materials provided with the
* distribution.
*
* Neither the name of the University of Maryland nor the names of its contributors may be used to
* endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* ACE Components were written in the ADAPT Project at the University of
* Maryland Institute for Advanced Computer Study.
*/
// $Id$
package edu.umiacs.ace.driver;
/**
*
* @author toaster
*/
public interface AuditIterable<T> extends Iterable<T> {
public DriverStateBean[] getState();
public void cancel();
}
/*
* Copyright (c) 2007-@year@, University of Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions
* and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
* and the following disclaimer in the documentation and/or other materials provided with the
* distribution.
*
* Neither the name of the University of Maryland nor the names of its contributors may be used to
* endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* ACE Components were written in the ADAPT Project at the University of
* Maryland Institute for Advanced Computer Study.
*/
package edu.umiacs.ace.driver;
/**
*
* @author toaster
*/
public class DriverStateBean {
private Thread runningThread;
private State state;
private String file;
private long read;
private long totalSize;
private long lastChange;
public DriverStateBean() {
state = State.UNKNOWN;
}
public void clear() {
//state = State.UNKNOWN;
file = null;
read = -1;
totalSize = -1;
lastChange = System.currentTimeMillis();
}
public void setRunningThread( Thread runningThread ) {
this.runningThread = runningThread;
}
public Thread getRunningThread() {
return runningThread;
}
public long getIdle() {
return System.currentTimeMillis() - lastChange;
}
/**
* @return the state
*/
public State getState() {
return state;
}
/**
* @param state the state to set, this will also clear all other values
*/
public void setStateAndReset( State state ) {
this.state = state;
clear();
}
public void setState( State state ) {
this.state = state;
}
/**
* @return the file
*/
public String getFile() {
return file;
}
/**
* @param file the file to set
*/
public void setFile( String file ) {
this.file = file;
}
/**
* @return the read
*/
public long getRead() {
return read;
}
/**
* @param read the read to set
*/
public void setRead( long read ) {
this.read = read;
}
/**
* @return the totalSize
*/
public long getTotalSize() {
return totalSize;
}
/**
* @param totalSize the totalSize to set
*/
public void setTotalSize( long totalSize ) {
this.totalSize = totalSize;
}
/**
* @return the lastChange
*/
public long getLastChange() {
return lastChange;
}
public void updateLastChange() {
lastChange = System.currentTimeMillis();
}
/**
* @param lastChange the lastChange to set
*/
public void setLastChange( long lastChange ) {
this.lastChange = lastChange;
}
public enum State {
IDLE,
READING,
LISTING,
THROTTLE_WAIT,
UNKNOWN,
WAITING_ON_FILE,
OPENING_FILE
}
}
/*
* Copyright (c) 2007-2010, University of Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions
* and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
* and the following disclaimer in the documentation and/or other materials provided with the
* distribution.
*
* Neither the name of the University of Maryland nor the names of its contributors may be used to
* endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR