This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am lmeadors on github. | |
* I am larrymeadors (https://keybase.io/larrymeadors) on keybase. | |
* I have a public key whose fingerprint is 76C5 6671 F3CF A9AB 06BD 8B47 F21A 1C19 3A78 C833 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alexandria.www.stripes; | |
import com.alexandria.www.bean.*; | |
import com.alexandria.www.enums.KindName; | |
import com.alexandria.www.enums.RatingSystemName; | |
import com.alexandria.www.service.*; | |
import com.alexandria.www.stripes.extensions.PatronActionBeanContext; | |
import org.junit.Test; | |
import java.util.ArrayList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void should_update_expaned_comic_to_s3() throws Exception { | |
final String comicFile = "test.cbz"; | |
final EncodingStatus comicStatus = comicStatusService.create(comicFile); | |
comicStatus.setStatus(Status.UPLOAD); | |
when(directoryListProcessor.process(any(ExecResult.class))).thenReturn(new ArrayList<String>() {{ | |
add("mediaKey/0001.jpeg"); | |
add("mediaKey/0002.jpeg"); | |
}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-05-13 00:16:33 | |
Full thread dump OpenJDK 64-Bit Server VM (20.0-b12 mixed mode): | |
"Attach Listener" daemon prio=10 tid=0x00007f82e8002000 nid=0x7e97 waiting on condition [0x0000000000000000] | |
java.lang.Thread.State: RUNNABLE | |
"ActiveMQ Transport: tcp:///127.0.0.1:33181@61619" daemon prio=10 tid=0x00007f82e0e15000 nid=0x7e85 runnable [0x00007f82cd0cf000] | |
java.lang.Thread.State: RUNNABLE | |
at java.net.SocketInputStream.socketRead0(Native Method) | |
at java.net.SocketInputStream.read(SocketInputStream.java:146) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>cobertura-maven-plugin</artifactId> | |
<version>2.5.1</version> | |
<configuration> | |
<formats> | |
<format>html</format> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alex.integration.aws; | |
import com.amazonaws.auth.AWSCredentials; | |
import com.amazonaws.auth.AWSCredentialsProvider; | |
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.auth.InstanceProfileCredentialsProvider; | |
import org.apache.commons.lang3.StringUtils; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void deleteTitlesFromCloudSearch(List<AmazonSearchDataFormat> amazonSearchRecords) { | |
logger.debug("Deleting {} titles from CloudSearch", amazonSearchRecords.size()); | |
if (amazonSearchRecords.isEmpty()) return; | |
try { | |
postBatchToCloudSearch(cloudSearchTitlesEndpoint, amazonSearchRecords); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void setBorrowed(final BorrowedListMessage message, final Context context) { | |
App.getInstance().setBorrowed(message); | |
new AsyncTask<Void, Void, Void>(){ | |
@Override | |
protected Void doInBackground(final Void... params) { | |
serializableCache.saveCachedData(message, context.getCacheDir()); | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public BorrowedListMessage getBorrowed(Context context) { | |
final BorrowedListMessage message; | |
final App app = App.getInstance(); | |
if(null == app.getBorrowed()){ | |
message = serializableCache.loadCachedData(BorrowedListMessage.class, context.getCacheDir()); | |
app.setBorrowed(message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected Void doInBackground(Boolean... force) { | |
final boolean forceRefresh; | |
if (force != null && force.length > 0) { | |
forceRefresh = force[0]; | |
} else { | |
forceRefresh = false; | |
} |
NewerOlder