/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * @since JTS 2.1.1. */ public boolean lock (int lmode) { return lock(lmode, false); }
/** * Sets the port on which the socket based process id implementation will listen. * Should be uniq amongst all instances on the same host. * A value of 0 will result in a random port. * * @param socketProcessIdPort the port number to bind to. */ public void setSocketProcessIdPort(int socketProcessIdPort) { Utility.validatePortRange(socketProcessIdPort); this.socketProcessIdPort = socketProcessIdPort; }
private static final Process getProcess () { if (processHandle == null) { initDefaultProcess(); } return processHandle; }
/** * @return a Uid representing this process. * @since JTS 2.1. */ public static Uid getProcessUid () { if (processUid == null) { initProcessUid(); } return processUid; }
public static synchronized String getDefaultProcessId () { initialise(); return defaultProcessId; }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * Sets the port on which the socket based process id implementation will listen. * Should be uniq amongst all instances on the same host. * A value of 0 will result in a random port. * * @param socketProcessIdPort the port number to bind to. */ public void setSocketProcessIdPort(int socketProcessIdPort) { Utility.validatePortRange(socketProcessIdPort); this.socketProcessIdPort = socketProcessIdPort; }
private static final Process getProcess () { if (processHandle == null) { initDefaultProcess(); } return processHandle; }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * Sets the network port number on which the recovery listener should bind. * * @param recoveryPort the port number for the recovery listener. */ public void setRecoveryPort(int recoveryPort) { Utility.validatePortRange(recoveryPort); this.recoveryPort = recoveryPort; }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }
/** * @return the process id. This had better be unique between processes on * the same machine. If not we're in trouble! * @since JTS 2.1. */ public static final int getpid () { Process handle = getProcess(); return ((handle == null) ? -1 : handle.getpid()); }