Author: mheath
Date: Sat Jan 27 11:16:49 2007
New Revision: 500593
URL: http://svn.apache.org/viewvc?view=rev&rev=500593
Log:
Added placeholders for Linux specific and Solaris specific afc providers.
Added:
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/linux/
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/linux/LinuxAsynchronousFileChannelProvider.java
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/solaris/
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/solaris/SolarisAsynchronousFileChannelProvider.java
Added:
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/linux/LinuxAsynchronousFileChannelProvider.java
URL:
http://svn.apache.org/viewvc/mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/linux/LinuxAsynchronousFileChannelProvider.java?view=auto&rev=500593
==============================================================================
---
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/linux/LinuxAsynchronousFileChannelProvider.java
(added)
+++
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/linux/LinuxAsynchronousFileChannelProvider.java
Sat Jan 27 11:16:49 2007
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.aio.linux;
+
+import java.io.File;
+import java.util.Properties;
+import java.util.concurrent.ExecutorService;
+
+import org.apache.aio.AioFuture;
+import org.apache.aio.AsynchronousFileChannel;
+import org.apache.aio.AsynchronousFileChannelProvider;
+import org.apache.aio.Modes;
+
+/**
+ * Creates an AsynchronousFileChannel that uses the Linux io_submit(2) system
call. This method should be faster than
+ * POSIX AIO on the Linux platform.
+ *
+ * @author mheath
+ */
+public class LinuxAsynchronousFileChannelProvider implements
AsynchronousFileChannelProvider {
+
+ public AioFuture<AsynchronousFileChannel> open(File fileName, Modes mode,
ExecutorService executorService, Properties properties) {
+ return null;
+ }
+}
Added:
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/solaris/SolarisAsynchronousFileChannelProvider.java
URL:
http://svn.apache.org/viewvc/mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/solaris/SolarisAsynchronousFileChannelProvider.java?view=auto&rev=500593
==============================================================================
---
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/solaris/SolarisAsynchronousFileChannelProvider.java
(added)
+++
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/solaris/SolarisAsynchronousFileChannelProvider.java
Sat Jan 27 11:16:49 2007
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.aio.solaris;
+
+import java.io.File;
+import java.util.Properties;
+import java.util.concurrent.ExecutorService;
+
+import org.apache.aio.AioFuture;
+import org.apache.aio.AsynchronousFileChannel;
+import org.apache.aio.AsynchronousFileChannelProvider;
+import org.apache.aio.Modes;
+
+/**
+ * Creates an [EMAIL PROTECTED] AsynchronousFileChannel} that uses the native
Solaris AIO calls.
+ *
+ * @author mheath
+ */
+public class SolarisAsynchronousFileChannelProvider implements
AsynchronousFileChannelProvider {
+ public AioFuture<AsynchronousFileChannel> open(File fileName, Modes mode,
ExecutorService executorService, Properties properties) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+}