public static void main(String[] args) throws IOException { System.out.println(Version.of(Version.class).getVersion()); } }
public CellVersion(Version version) { this(version.getVersion(), version.getBuild()); }
public LocationMgrTunnel(String cellName, StreamEngine engine, Args args) { super(cellName, "System", args); _nucleus = getNucleus(); _socket = engine.getSocket(); _rawOut = new BufferedOutputStream(engine.getOutputStream()); _rawIn = new BufferedInputStream(engine.getInputStream()); CellDomainRole role = args.hasOption("role") ? CellDomainRole.valueOf( args.getOption("role").toUpperCase()) : CellDomainRole.SATELLITE; _localDomainInfo = new CellDomainInfo(_nucleus.getCellDomainName(), Version.of(LocationMgrTunnel.class).getVersion(), role); }
/** * Constructs client and connects it to the remote server. * * @param host remote server host * @param port remote server port */ public GridFTPClient(String host, int port) throws IOException, ServerException { gSession = new GridFTPSession(); session = gSession; expectedHostName = host; controlChannel = new FTPControlChannel(host, port); controlChannel.open(); gLocalServer = new GridFTPServerFacade(controlChannel); localServer = gLocalServer; gLocalServer.authorize(); this.useAllo = true; setUsageInformation("dCache", VERSION.getVersion()); }