mirror of https://github.com/apache/cloudstack.git
72 lines
2.0 KiB
Java
72 lines
2.0 KiB
Java
// Licensed to the Apache Software Foundation (ASF) under one
|
|
// or more contributor license agreements. See the NOTICE file
|
|
// distributed with this work for additional information
|
|
// regarding copyright ownership. The ASF licenses this file
|
|
// to you under the Apache License, Version 2.0 (the
|
|
// "License"); you may not use this file except in compliance
|
|
// with the License. You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing,
|
|
// software distributed under the License is distributed on an
|
|
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
// KIND, either express or implied. See the License for the
|
|
// specific language governing permissions and limitations
|
|
// under the License.
|
|
package com.cloud.consoleproxy;
|
|
|
|
import com.cloud.utils.events.EventArgs;
|
|
import com.cloud.vm.ConsoleProxyVO;
|
|
|
|
public class ConsoleProxyAlertEventArgs extends EventArgs {
|
|
|
|
private static final long serialVersionUID = 23773987551479885L;
|
|
|
|
public static final int PROXY_CREATED = 1;
|
|
public static final int PROXY_UP = 2;
|
|
public static final int PROXY_DOWN = 3;
|
|
public static final int PROXY_CREATE_FAILURE = 4;
|
|
public static final int PROXY_START_FAILURE = 5;
|
|
public static final int PROXY_FIREWALL_ALERT = 6;
|
|
public static final int PROXY_STORAGE_ALERT = 7;
|
|
public static final int PROXY_REBOOTED = 8;
|
|
|
|
private int type;
|
|
private long zoneId;
|
|
private long proxyId;
|
|
private ConsoleProxyVO proxy;
|
|
private String message;
|
|
|
|
public ConsoleProxyAlertEventArgs(int type, long zoneId,
|
|
long proxyId, ConsoleProxyVO proxy, String message) {
|
|
|
|
super(ConsoleProxyManager.ALERT_SUBJECT);
|
|
this.type = type;
|
|
this.zoneId = zoneId;
|
|
this.proxyId = proxyId;
|
|
this.proxy = proxy;
|
|
this.message = message;
|
|
}
|
|
|
|
public int getType() {
|
|
return type;
|
|
}
|
|
|
|
public long getZoneId() {
|
|
return zoneId;
|
|
}
|
|
|
|
public long getProxyId() {
|
|
return proxyId;
|
|
}
|
|
|
|
public ConsoleProxyVO getProxy() {
|
|
return proxy;
|
|
}
|
|
|
|
public String getMessage() {
|
|
return message;
|
|
}
|
|
}
|