1 28 package org.objectweb.carol.rmi.jrmp.interceptor; 29 30 import java.net.InetAddress ; 32 import java.rmi.server.UID ; 33 34 40 public abstract class JInterceptorHelper { 41 42 protected static final int NO_CTX = 0; 44 45 protected static final int REMOTE_CTX = 1; 46 47 protected static final int LOCAL_CTX = 2; 48 49 52 protected static byte[] ia = null; 53 54 57 protected static UID spaceID = null; 58 59 static { 60 try { 61 spaceID = new UID (); 62 ia = InetAddress.getLocalHost().getAddress(); 63 } catch (Exception e) { 64 e.printStackTrace(); 65 } 66 } 67 68 71 public static byte[] getInetAddress() { 72 return ia; 73 } 74 75 78 public static UID getSpaceID() { 79 return spaceID; 80 } 81 } | Popular Tags |