Add toString() to Chunk*

This commit is contained in:
dsyer
2008-06-25 13:08:16 +00:00
parent 132f32b426
commit 3823d1b48d
3 changed files with 56 additions and 4 deletions

View File

@@ -22,8 +22,8 @@
</activation>
<build>
<plugins>
<!-- run tests during the integration-test phase, not
the normal test phase -->
<!-- run tests during the integration-test phase, not
the normal test phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -38,8 +38,8 @@
<id>test</id>
<build>
<plugins>
<!-- run tests during the integration-test phase, not
the normal test phase -->
<!-- run tests during the integration-test phase, not
the normal test phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -74,12 +74,48 @@
<artifactId>org.springframework.integration</artifactId>
<version>${spring.integration.version}</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.context</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.aop</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>org.springframework.integration.adapter</artifactId>
<version>${spring.integration.version}</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.web</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.aop</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.context</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.context.support</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.jms</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.transaction</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>

View File

@@ -26,5 +26,13 @@ public class ChunkRequest implements Serializable {
public Collection<Object> getItems() {
return items;
}
/**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return getClass().getSimpleName()+": jobId="+jobId+", skipCount="+skipCount+", item count="+items.size();
}
}

View File

@@ -28,4 +28,12 @@ public class ChunkResponse implements Serializable {
return exitStatus;
}
/**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return getClass().getSimpleName()+": jobId="+jobId+", skipCount="+skipCount+", status="+exitStatus;
}
}