blob: c8cf8e9e3ec01a7c2ee3d0d6441e50bc5f68999c [file] [log] [blame]
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed 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 org.apache.kandula.participant;
import org.apache.axis2.addressing.EndpointReference;
/**
* @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a> <p/>
* Used to store the details about the participant & to store the
* runtime status of Participants
*/
//TODO see whether we can avoid this class
public class Participant {
private EndpointReference epr;
private String protocol;
private int status;
private String enlistmentId;
/**
* @param epr
* @param protocol
* @param enlistmentId
*/
public Participant(EndpointReference epr, String protocol,
String enlistmentId) {
super();
this.epr = epr;
this.protocol = protocol;
this.enlistmentId = enlistmentId;
}
/**
* @return Returns the enlistmentId.
*/
public String getEnlistmentId() {
return enlistmentId;
}
/**
* @return Returns the epr.
*/
public EndpointReference getEpr() {
return epr;
}
/**
* @param epr -
* The epr to set.
*/
public void setEpr(EndpointReference epr) {
this.epr = epr;
}
/**
* @return Returns the status.
*/
public int getStatus() {
return status;
}
/**
* @param status -
* The status to set.
*/
public void setStatus(int status) {
this.status = status;
}
/**
* @return Returns the protocol.
*/
public String getProtocol() {
return protocol;
}
}