Object parsing can be private now
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / DefaultPCEPSessionNegotiator.java
index 13ca7cdd4efc2be1a31f60e403ac70ede11146ee..b64e3be9be7981c67f7622e476dc33e3f4fae143 100644 (file)
@@ -12,8 +12,8 @@ import io.netty.util.Timer;
 import io.netty.util.concurrent.Promise;
 
 import org.opendaylight.protocol.pcep.PCEPSessionListener;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.OpenObject;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.message.open.message.OpenBuilder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.OpenBuilder;
 
 import com.google.common.base.Preconditions;
 
@@ -22,7 +22,7 @@ public final class DefaultPCEPSessionNegotiator extends AbstractPCEPSessionNegot
        private final int maxUnknownMessages;
 
        public DefaultPCEPSessionNegotiator(final Timer timer, final Promise<PCEPSessionImpl> promise, final Channel channel,
-                       final PCEPSessionListener listener, final short sessionId, final int maxUnknownMessages, final OpenObject localPrefs) {
+                       final PCEPSessionListener listener, final short sessionId, final int maxUnknownMessages, final Open localPrefs) {
                super(timer, promise, channel);
                this.maxUnknownMessages = maxUnknownMessages;
                this.myLocalPrefs = new OpenBuilder().setKeepalive(localPrefs.getKeepalive()).setDeadTimer(localPrefs.getDeadTimer()).setSessionId(
@@ -30,31 +30,30 @@ public final class DefaultPCEPSessionNegotiator extends AbstractPCEPSessionNegot
                this.listener = Preconditions.checkNotNull(listener);
        }
 
-       private final OpenObject myLocalPrefs;
+       private final Open myLocalPrefs;
 
        @Override
-       protected OpenObject getInitialProposal() {
+       protected Open getInitialProposal() {
                return this.myLocalPrefs;
        }
 
        @Override
-       protected PCEPSessionImpl createSession(final Timer timer, final Channel channel, final OpenObject localPrefs,
-                       final OpenObject remotePrefs) {
+       protected PCEPSessionImpl createSession(final Timer timer, final Channel channel, final Open localPrefs, final Open remotePrefs) {
                return new PCEPSessionImpl(timer, this.listener, this.maxUnknownMessages, channel, localPrefs, remotePrefs);
        }
 
        @Override
-       protected boolean isProposalAcceptable(final OpenObject open) {
+       protected boolean isProposalAcceptable(final Open open) {
                return true;
        }
 
        @Override
-       protected OpenObject getCounterProposal(final OpenObject open) {
+       protected Open getCounterProposal(final Open open) {
                return null;
        }
 
        @Override
-       protected OpenObject getRevisedProposal(final OpenObject suggestion) {
+       protected Open getRevisedProposal(final Open suggestion) {
                return this.myLocalPrefs;
        }
 }