SSOServerMonConfig.java revision 0f7c5b88fd04e25bea6113dfc783a05e4e2045f8
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * The contents of this file are subject to the terms
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * of the Common Development and Distribution License
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * (the License). You may not use this file except in
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * compliance with the License.
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * You can obtain a copy of the License at
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * https://opensso.dev.java.net/public/CDDLv1.0.html or
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * See the License for the specific language governing
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * permission and limitations under the License.
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * When distributing Covered Code, include this CDDL
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * Header Notice in each file and include the License file
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * If applicable, add the following below the CDDL Header,
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * with the fields enclosed by brackets [] replaced by
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * your own identifying information:
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * "Portions Copyrighted [year] [name of copyright owner]"
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * $Id: SSOServerMonConfig.java,v 1.2 2009/11/10 01:33:22 bigfatrat Exp $
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna * Portions Copyrighted 2011-2014 ForgeRock AS
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna private SSOServerMonConfig (SSOServerMonInfoBuilder asib) {
f3540824d43864b53b7eb04a99a3a1e9468ea7c0James Phillpotts monRmiPortEnabled = asib.monRmiPortEnabled;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public static class SSOServerMonInfoBuilder {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder(boolean monEnabled) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder htmlPort(int htmlPrt) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder snmpPort (int snmpPrt) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder rmiPort (int rmiPrt) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder monHtmlEnabled (boolean monHtmlEnabled) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder monRmiEnabled (boolean monRmiEnabled) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder monSnmpEnabled (boolean monSnmpEnabled) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder htmlAuthFile (String authFilePath)
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder policyWindowSize (int policyWindowSize) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna public SSOServerMonInfoBuilder sessionWindowSize (int sessionWindowSize) {
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return this;
0f7c5b88fd04e25bea6113dfc783a05e4e2045f8David Luna return new SSOServerMonConfig (this);