Add missing license headers to packetcable-driver concurrent 44/31444/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 16 Dec 2015 15:21:00 +0000 (10:21 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 16 Dec 2015 15:25:50 +0000 (10:25 -0500)
Change-Id: I164d0844e27149b9738909c5dc85fba95b3fa9c9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
packetcable-driver/src/main/java/org/pcmm/concurrent/IWorker.java
packetcable-driver/src/main/java/org/pcmm/concurrent/IWorkerPool.java
packetcable-driver/src/main/java/org/pcmm/concurrent/impl/Worker.java
packetcable-driver/src/main/java/org/pcmm/concurrent/impl/WorkerPool.java

index 1a89605b4bab31b38bd4781350ed646e047c49ed..48f0dfd53c615d76e1e5c93b8d1a581ef431198c 100644 (file)
@@ -1,21 +1,29 @@
+/*
+ * Copyright (c) 2014 Cable Television Laboratories, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
 package org.pcmm.concurrent;
 
 import java.util.concurrent.Callable;
 /**
- * 
+ *
  */
 public interface IWorker extends Runnable {
 
        /**
         * defines the task to be performed by this worker
-        * 
+        *
         * @param c
         */
        void task(Callable<?> c);
 
        /**
         * defines wait time before start working on the task
-        * 
+        *
         * @param t
         */
        void shouldWait(int t);
index e97cc21e122775d27836f6b4a8bc9ac7d7cd604f..480ec8e5b89318ae6b7a6e6e034d31c41237770a 100644 (file)
@@ -1,12 +1,17 @@
-/**
- * 
+/*
+ * Copyright (c) 2014 Cable Television Laboratories, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.pcmm.concurrent;
 
 import org.pcmm.base.IAdapter;
 
 /**
- * 
+ *
  */
 public interface IWorkerPool extends IAdapter<IWorker> {
        // handles 32 workers
@@ -14,7 +19,7 @@ public interface IWorkerPool extends IAdapter<IWorker> {
 
        /**
         * schedules a worker for beginning its task after t milliseconds.
-        * 
+        *
         * @param worker
         *            : the worker
         * @param t
@@ -26,7 +31,7 @@ public interface IWorkerPool extends IAdapter<IWorker> {
 
        /**
         * schedules a worker for immediate execution.
-        * 
+        *
         * @param worker
         *            : the worker
         * @return the id of the worker (PID) to be used for killing the worker if
@@ -36,7 +41,7 @@ public interface IWorkerPool extends IAdapter<IWorker> {
 
        /**
         * kills the worker with the specified pid
-        * 
+        *
         * @param pid
         */
        void sendKillSignal(int pid);
index 10806922610c8c89a2c187432fd5ea29198df4d1..00850bac82a0cae3c4af2f727ef591bb6df33978 100644 (file)
@@ -1,6 +1,11 @@
-/**
- * 
+/*
+ * Copyright (c) 2014 Cable Television Laboratories, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.pcmm.concurrent.impl;
 
 import java.util.concurrent.Callable;
@@ -10,7 +15,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * 
+ *
  */
 public class Worker implements IWorker {
 
@@ -29,7 +34,7 @@ public class Worker implements IWorker {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see java.lang.Runnable#run()
         */
        @Override
@@ -45,7 +50,7 @@ public class Worker implements IWorker {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see org.pcmm.threading.IWorker#task(java.util.concurrent.Callable)
         */
        @Override
@@ -56,7 +61,7 @@ public class Worker implements IWorker {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see org.pcmm.threading.IWorker#shouldWait(int)
         */
        @Override
@@ -67,7 +72,7 @@ public class Worker implements IWorker {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see org.pcmm.threading.IWorker#done()
         */
        @Override
index b6fb4290cf0c4cff57744de1d871d9d61bd4f5ad..9074303c6b407d41bd1e86e188ad7cd75ad32d58 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2014 Cable Television Laboratories, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
 package org.pcmm.concurrent.impl;
 
 import java.lang.ref.WeakReference;
@@ -19,7 +27,7 @@ import org.slf4j.LoggerFactory;
 public class WorkerPool implements IWorkerPool {
 
        /**
-        * 
+        *
         */
        private Map<Integer, WeakReference<IWorker>> workersMap;
 
@@ -38,7 +46,7 @@ public class WorkerPool implements IWorkerPool {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see org.pcmm.threading.IWorkerPool#schedule(org.pcmm.threading.IWorker,
         * int)
         */
@@ -57,7 +65,7 @@ public class WorkerPool implements IWorkerPool {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see
         * org.pcmm.concurrent.IWorkerPool#schedule(org.pcmm.concurrent.IWorker)
         */
@@ -68,7 +76,7 @@ public class WorkerPool implements IWorkerPool {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see org.pcmm.concurrent.IWorkerPool#sendKillSignal(int)
         */
        @Override
@@ -90,7 +98,7 @@ public class WorkerPool implements IWorkerPool {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see org.pcmm.threading.IWorkerPool#killAll()
         */
        @Override
@@ -109,7 +117,7 @@ public class WorkerPool implements IWorkerPool {
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see org.pcmm.threading.IWorkerPool#recycle()
         */
        @Override