Sha256: 0115a4773c3389a2a663ce2b3a345862404c02b962b9d00dc5164a02dd7aac33
Contents?: true
Size: 849 Bytes
Versions: 4
Compression:
Stored size: 849 Bytes
Contents
package org.openspaces.webapp; import org.mortbay.jetty.Server; import org.openspaces.core.cluster.ClusterInfo; public class GigaServerConfiguration { private int _instanceId; private int _backupId; private String _schema; private int _serverPort; public GigaServerConfiguration( ) { } public GigaServerConfiguration( ClusterInfo info, Server server ) { _instanceId = info.getInstanceId(); if ( info.getBackupId() != null ) { _backupId = info.getBackupId(); } _schema =info.getSchema(); if ( server.getConnectors() != null ) { _serverPort = server.getConnectors()[0].getPort(); } } public int getServerPort() { return _serverPort; } public int getInstanceId() { return _instanceId; } public int getBackupId() { return _backupId; } public String getSchema() { return _schema; } }
Version data entries
4 entries across 4 versions & 1 rubygems