All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.razorvine.pyro.Config Maven / Gradle / Ivy

package net.razorvine.pyro;

import java.io.Serializable;

/**
 * Minimalistic holders for Pyro config items.
 *
 * @author Irmen de Jong ([email protected])
 * @version 2.1
 */
public final class Config implements Serializable {
	private static final long serialVersionUID = 198635706890570066L;

	public static byte[] HMAC_KEY = null;
	public static String MSG_TRACE_DIR = null;
    public static int NS_PORT = 9090;
    public static int NS_BCPORT = 9091;

    public final static int PROTOCOL_VERSION = 46;    // Pyro 4.22 and newer. Cannot be changed

	public final static String PYROLITE_VERSION = "2.1";
	
	public enum SerializerType {
		pickle,
		serpent
	}

	public static boolean SERPENT_INDENT = false;
	public static boolean SERPENT_SET_LITERALS = false;     // set to true if talking to Python 3.2 or newer
	public static SerializerType SERIALIZER = SerializerType.serpent;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy