com.microsoft.reef.io.network.impl.NetworkServiceParameters Maven / Gradle / Ivy
/**
* Copyright (C) 2013 Microsoft Corporation
*
* Licensed 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 com.microsoft.reef.io.network.impl;
import com.microsoft.reef.io.network.TransportFactory;
import com.microsoft.reef.io.network.util.StringIdentifierFactory;
import com.microsoft.tang.annotations.Name;
import com.microsoft.tang.annotations.NamedParameter;
import com.microsoft.wake.EventHandler;
import com.microsoft.wake.IdentifierFactory;
import com.microsoft.wake.remote.Codec;
public class NetworkServiceParameters {
@NamedParameter
public static class TaskId implements Name {
}
@NamedParameter(doc = "identifier factory for the service", short_name = "factory", default_class = StringIdentifierFactory.class)
public static class NetworkServiceIdentifierFactory implements Name {
}
@NamedParameter(doc = "port for the network service", short_name = "nsport", default_value = "7070")
public static class NetworkServicePort implements Name {
}
@NamedParameter(doc = "codec for the network service", short_name = "nscodec")
public static class NetworkServiceCodec implements Name> {
}
@NamedParameter(doc = "transport factory for the network service", short_name = "nstransportfactory", default_class = MessagingTransportFactory.class)
public static class NetworkServiceTransportFactory implements Name {
}
@NamedParameter(doc = "network receive handler for the network service", short_name = "nshandler")
public static class NetworkServiceHandler implements Name> {
}
@NamedParameter(doc = "network exception handler for the network service", short_name = "exhandler")
public static class NetworkServiceExceptionHandler implements Name> {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy