WebServiceEndpointMdlpublic abstract class WebServiceEndpointMdl extends J2EEManagedObjectMdl WebServiceEndpoint rutime MBean. This MBean acts as base class for
ServletWebServiceEndpoint and EJBWebServiceEndpoint.
Please use either ServletWebServiceEndpoint or EJBWebServiceEndpoint, inorder
to instantiate runtime mbean of type WebServiceEndpoint. |
Fields Summary |
---|
private static final String | MANAGED_OBJECT_TYPE | protected static final String | WEB_MBEAN | protected static final String | EJB_MBEAN | private final String | moduleName | private final String | registrationName | private final String | applicationName | private final String | epName | private final boolean | isEjb | private final boolean | isStandAlone | private String | mbeanName |
Constructors Summary |
---|
WebServiceEndpointMdl(String name, String mName, String regName, boolean isVirtual, boolean isejb)constructor.
super(name,false, false, false);
this.moduleName = mName;
this.applicationName = regName;
this.registrationName = regName;
this.isStandAlone = isVirtual;
this.epName = name;
this.isEjb = isejb;
if (isejb == true) {
mbeanName = EJB_MBEAN;
} else {
mbeanName = WEB_MBEAN;
}
| WebServiceEndpointMdl(String name, String moduleName, String regName, String serverName, boolean isVirtual, boolean isejb)constructor.
super(name, serverName, false, false, false);
this.moduleName = moduleName;
this.applicationName = regName;
this.registrationName = regName;
this.epName = name;
this.isEjb = isejb;
if (isejb == true) {
mbeanName = EJB_MBEAN;
} else {
mbeanName = WEB_MBEAN;
}
this.isStandAlone = isVirtual;
|
Methods Summary |
---|
public java.lang.String | getImplementationType()This returns the underlying implementation Servlet or EJB' type
It could be J2EETypes.SERVLET or J2EETypes.EJB.
if (isEjb) {
return "EJB";
} else {
return "SERVLET";
}
| public java.lang.String | getJ2EEApplication()Accessor method for the J2EE Application key
return this.applicationName;
| public long | getLastResetTime()Returns the last reset time stamp in milliseconds.
long resetTime = 0;
WebServiceEndpointStatsProvider provider = getWSProvider();
if (provider != null) {
resetTime = provider.getLastResetTime();
}
return resetTime;
| public abstract java.lang.String | getMBeanName()The MBean name of the J2EEManagedObject as specified in
runtime-mbeans-descriptors.xml. This value is used in registering the
MBean.
| public java.util.Map[] | getMessagesInHistory()Returns last N message content and info collected for this web service.
String partialEpName = null;
if (isStandAlone) {
// standalone module
partialEpName = this.epName;
} else {
partialEpName = this.moduleName+ "#" + this.epName;
}
Map<String,Serializable>[] maps = null;
MessageTrace[] result =
MessageTraceMgr.getInstance().getMessages(this.registrationName,
partialEpName);
if ( result == null) {
return null;
}
if ( result.length > 0 ) {
maps = new Map[result.length];
for ( int idx =0; idx < result.length; idx++) {
maps[idx] = result[idx].asMap();
TypeCast.checkSerializable( maps[ idx] );
}
}
return maps;
| public java.lang.String | getModule()Accessor method for the module name key
return this.moduleName;
| private com.sun.enterprise.admin.wsmgmt.stats.spi.WebServiceEndpointStatsProvider | getWSProvider()Returns the stats provider for this web service endpoint.
final String NS = "#";
StatsProviderManager spMgr = StatsProviderManager.getInstance();
String fqName = null;
if (isStandAlone == false) {
fqName = registrationName + NS + moduleName + NS + epName;
} else {
fqName = registrationName + NS + epName;
}
WebServiceEndpointStatsProvider provider =
spMgr.getEndpointStatsProvider(fqName);
return provider;
| public java.lang.String | getj2eeType()The type of the J2EEManagedObject as specified by JSR77. The class that
implements a specific type must override this method and return the
appropriate type string.
return MANAGED_OBJECT_TYPE;
| public void | resetStats()Resets the statistics.
WebServiceEndpointStatsProvider provider = getWSProvider();
if (provider != null) {
provider.reset();
}
|
|