Thomas Vachuska

Fixing javadocs and adding missing package javadocs.

Also marked a few packages and classes as deprecated.

Change-Id: I8629ad001f218f92c35721daa3b7c0ebe0916c27
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
15 */ 15 */
16 16
17 /** 17 /**
18 - * Trivial application that provides simple form of reactive forwarding. 18 + * Sample application that provides simple form of reactive forwarding.
19 */ 19 */
20 package org.onlab.onos.fwd; 20 package org.onlab.onos.fwd;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 */ 15 */
16 16
17 /** 17 /**
18 - * Trivial application that provides simple form of reactive forwarding 18 + * Sample application that provides simple form of reactive forwarding
19 * using the intent service. 19 * using the intent service.
20 */ 20 */
21 package org.onlab.onos.ifwd; 21 package org.onlab.onos.ifwd;
......
1 +/*
2 + * Copyright 2014 Open Networking Laboratory
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License");
5 + * you may not use this file except in compliance with the License.
6 + * You may obtain a copy of the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS,
12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + * See the License for the specific language governing permissions and
14 + * limitations under the License.
15 + */
16 +
17 +/**
18 + * Intent metrics command-line handlers.
19 + */
20 +package org.onlab.onos.metrics.intent.cli;
...\ No newline at end of file ...\ No newline at end of file
1 +/*
2 + * Copyright 2014 Open Networking Laboratory
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License");
5 + * you may not use this file except in compliance with the License.
6 + * You may obtain a copy of the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS,
12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + * See the License for the specific language governing permissions and
14 + * limitations under the License.
15 + */
16 +
17 +/**
18 + * Topology metrics command-line handlers.
19 + */
20 +package org.onlab.onos.metrics.topology.cli;
...\ No newline at end of file ...\ No newline at end of file
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
15 */ 15 */
16 16
17 /** 17 /**
18 - * Trivial application that provides simple form of reactive forwarding. 18 + * Sample application that provides simple form of end-station host mobility.
19 */ 19 */
20 package org.onlab.onos.mobility; 20 package org.onlab.onos.mobility;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onlab.onos.optical.provisioner; 16 +package org.onlab.onos.optical;
17 17
18 import java.util.ArrayList; 18 import java.util.ArrayList;
19 import java.util.HashMap; 19 import java.util.HashMap;
......
...@@ -58,7 +58,7 @@ import static org.onlab.onos.net.DeviceId.deviceId; ...@@ -58,7 +58,7 @@ import static org.onlab.onos.net.DeviceId.deviceId;
58 * operations. 58 * operations.
59 * 59 *
60 */ 60 */
61 - 61 +@Deprecated
62 @JsonIgnoreProperties(ignoreUnknown = true) 62 @JsonIgnoreProperties(ignoreUnknown = true)
63 //@Component(immediate = true) 63 //@Component(immediate = true)
64 public class OpticalConfigProvider extends AbstractProvider implements DeviceProvider, LinkProvider { 64 public class OpticalConfigProvider extends AbstractProvider implements DeviceProvider, LinkProvider {
......
...@@ -22,6 +22,7 @@ import org.onlab.util.HexString; ...@@ -22,6 +22,7 @@ import org.onlab.util.HexString;
22 /** 22 /**
23 * Public class corresponding to JSON described data model. 23 * Public class corresponding to JSON described data model.
24 */ 24 */
25 +@Deprecated
25 public class OpticalLinkDescription { 26 public class OpticalLinkDescription {
26 protected String type; 27 protected String type;
27 protected Boolean allowed; 28 protected Boolean allowed;
......
...@@ -24,6 +24,7 @@ import org.slf4j.LoggerFactory; ...@@ -24,6 +24,7 @@ import org.slf4j.LoggerFactory;
24 /** 24 /**
25 * Public class corresponding to JSON described data model. 25 * Public class corresponding to JSON described data model.
26 */ 26 */
27 +@Deprecated
27 public class OpticalNetworkConfig { 28 public class OpticalNetworkConfig {
28 protected static final Logger log = LoggerFactory.getLogger(OpticalNetworkConfig.class); 29 protected static final Logger log = LoggerFactory.getLogger(OpticalNetworkConfig.class);
29 30
......
...@@ -23,6 +23,7 @@ import org.onlab.util.HexString; ...@@ -23,6 +23,7 @@ import org.onlab.util.HexString;
23 /** 23 /**
24 * Public class corresponding to JSON described data model. 24 * Public class corresponding to JSON described data model.
25 */ 25 */
26 +@Deprecated
26 public class OpticalSwitchDescription { 27 public class OpticalSwitchDescription {
27 protected String name; 28 protected String name;
28 protected long dpid; 29 protected long dpid;
......
...@@ -18,6 +18,7 @@ package org.onlab.onos.optical.cfg; ...@@ -18,6 +18,7 @@ package org.onlab.onos.optical.cfg;
18 /** 18 /**
19 * Packet-optical link Java data object. 19 * Packet-optical link Java data object.
20 */ 20 */
21 +@Deprecated
21 class PktOptLink { 22 class PktOptLink {
22 private String srcNodeName; 23 private String srcNodeName;
23 private String snkNodeName; 24 private String snkNodeName;
......
...@@ -18,6 +18,7 @@ package org.onlab.onos.optical.cfg; ...@@ -18,6 +18,7 @@ package org.onlab.onos.optical.cfg;
18 /** 18 /**
19 * ROADM java data object converted from a JSON file. 19 * ROADM java data object converted from a JSON file.
20 */ 20 */
21 +@Deprecated
21 class Roadm { 22 class Roadm {
22 private String name; 23 private String name;
23 private String nodeID; 24 private String nodeID;
......
...@@ -18,6 +18,7 @@ package org.onlab.onos.optical.cfg; ...@@ -18,6 +18,7 @@ package org.onlab.onos.optical.cfg;
18 /** 18 /**
19 * WDM Link Java data object converted from a JSON file. 19 * WDM Link Java data object converted from a JSON file.
20 */ 20 */
21 +@Deprecated
21 class WdmLink { 22 class WdmLink {
22 private String srcNodeName; 23 private String srcNodeName;
23 private String snkNodeName; 24 private String snkNodeName;
......
1 +/*
2 + * Copyright 2014 Open Networking Laboratory
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License");
5 + * you may not use this file except in compliance with the License.
6 + * You may obtain a copy of the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS,
12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + * See the License for the specific language governing permissions and
14 + * limitations under the License.
15 + */
16 +
17 +/**
18 + * Packet/Optical configuration.
19 + */
20 +@Deprecated
21 +package org.onlab.onos.optical.cfg;
...\ No newline at end of file ...\ No newline at end of file
1 +/*
2 + * Copyright 2014 Open Networking Laboratory
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License");
5 + * you may not use this file except in compliance with the License.
6 + * You may obtain a copy of the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS,
12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + * See the License for the specific language governing permissions and
14 + * limitations under the License.
15 + */
16 +
17 +/**
18 + * Packet/Optical application.
19 + */
20 +package org.onlab.onos.optical;
...\ No newline at end of file ...\ No newline at end of file
1 +/*
2 + * Copyright 2014 Open Networking Laboratory
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License");
5 + * you may not use this file except in compliance with the License.
6 + * You may obtain a copy of the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS,
12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + * See the License for the specific language governing permissions and
14 + * limitations under the License.
15 + */
16 +
17 +/**
18 + * Packet/Optical sample forwarding applications.
19 + */
20 +package org.onlab.onos.optical.testapp;
...\ No newline at end of file ...\ No newline at end of file
1 +/*
2 + * Copyright 2014 Open Networking Laboratory
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License");
5 + * you may not use this file except in compliance with the License.
6 + * You may obtain a copy of the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS,
12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + * See the License for the specific language governing permissions and
14 + * limitations under the License.
15 + */
16 +
17 +/**
18 + * SDN-IP command-line handlers.
19 + */
20 +package org.onlab.onos.sdnip.cli;
...\ No newline at end of file ...\ No newline at end of file
...@@ -94,13 +94,15 @@ public interface Link extends Annotated, Provided, NetworkResource { ...@@ -94,13 +94,15 @@ public interface Link extends Annotated, Provided, NetworkResource {
94 94
95 /** 95 /**
96 * Returns the link state. 96 * Returns the link state.
97 + *
98 + * @return link state
97 */ 99 */
98 State state(); 100 State state();
99 101
100 /** 102 /**
101 * Indicates if the link is to be considered durable. 103 * Indicates if the link is to be considered durable.
102 * 104 *
103 - * @return link state 105 + * @return true if the link is durable
104 */ 106 */
105 boolean isDurable(); 107 boolean isDurable();
106 108
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
92 <group> 92 <group>
93 <title>Sample Applications</title> 93 <title>Sample Applications</title>
94 <packages> 94 <packages>
95 - org.onlab.onos.tvue:org.onlab.onos.fwd:org.onlab.onos.ifwd:org.onlab.onos.mobility:org.onlab.onos.proxyarp:org.onlab.onos.foo:org.onlab.onos.calendar:org.onlab.onos.optical.*:org.onlab.onos.sdnip:org.onlab.onos.sdnip.*:org.onlab.onos.config 95 + org.onlab.onos.tvue:org.onlab.onos.fwd:org.onlab.onos.ifwd:org.onlab.onos.mobility:org.onlab.onos.proxyarp:org.onlab.onos.foo:org.onlab.onos.calendar:org.onlab.onos.optical:org.onlab.onos.optical.*:org.onlab.onos.sdnip:org.onlab.onos.sdnip.*:org.onlab.onos.config
96 </packages> 96 </packages>
97 </group> 97 </group>
98 <group> 98 <group>
......