GigaSpaces - Open Spaces

org.openspaces.pu.container.servicegrid
Class JeePUServiceDetails

java.lang.Object
  extended by org.openspaces.pu.container.servicegrid.JeePUServiceDetails
All Implemented Interfaces:
Externalizable, Serializable, PUServiceDetails

public class JeePUServiceDetails
extends Object
implements PUServiceDetails, Externalizable

A service that holds a jee container (such as jetty).

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
JeePUServiceDetails()
           
JeePUServiceDetails(String host, int port, int sslPort, String contextPath, boolean shared, String type)
           
 
Method Summary
 String getContextPath()
          Returns the context path of the web application.
 String getDescription()
          Returns the description of the service.
 String getHost()
          Returns the host of where the service is running on.
 String getLongDescription()
          Same as getDescription().
 int getPort()
          Returns the port of where the service is running on.
 String getServiceType()
          The service type.
 int getSslPort()
          Returns the ssl port of where the service is running on.
 String getType()
          The type of the web container used.
 boolean isShared()
          Returns true if this web service is running on a shared instance of a web container.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JeePUServiceDetails

public JeePUServiceDetails()

JeePUServiceDetails

public JeePUServiceDetails(String host,
                           int port,
                           int sslPort,
                           String contextPath,
                           boolean shared,
                           String type)
Method Detail

getServiceType

public String getServiceType()
The service type. Returns a constant value of jee-container.

Specified by:
getServiceType in interface PUServiceDetails

getDescription

public String getDescription()
Returns the description of the service. The value is host:port/contextpath.

Specified by:
getDescription in interface PUServiceDetails

getLongDescription

public String getLongDescription()
Same as getDescription().

Specified by:
getLongDescription in interface PUServiceDetails

getHost

public String getHost()
Returns the host of where the service is running on.


getPort

public int getPort()
Returns the port of where the service is running on.


getSslPort

public int getSslPort()
Returns the ssl port of where the service is running on.


getContextPath

public String getContextPath()
Returns the context path of the web application.


isShared

public boolean isShared()
Returns true if this web service is running on a shared instance of a web container. false if the web application instance is running on its own dedicated web container.


getType

public String getType()
The type of the web container used. For example, jetty.

Specified by:
getType in interface PUServiceDetails

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

GigaSpaces - Open Spaces

Copyright © GigaSpaces.