|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.admin.Service
public class Service
This class defines an ArcIMS service.
Field Summary | |
---|---|
static int |
ACCESS_PRIVATE
Defines access level as Private. |
static int |
ACCESS_PUBLIC
Defines access level as Public. |
static int |
IMAGE_BMP
Defines IMAGE_TYPE as BMP. |
static int |
IMAGE_GIF
Defines IMAGE_TYPE as GIF. |
static int |
IMAGE_JPG
Defines IMAGE_TYPE as JPEG. |
static int |
IMAGE_PNG
Defines IMAGE_TYPE as PNG. |
static int |
IMAGE_PNG8
Defines IMAGE_TYPE as PNG8. |
Constructor Summary | |
---|---|
Service()
Constructs an instance of the Service object. |
Method Summary | |
---|---|
boolean |
addService(ConnectionProxy connection)
Adds a new Service using the specified ConnectionProxy object.. |
int |
getAccess()
Returns the access associated with this Service as PUBLIC or PRIVATE. |
static int |
getAccessInt(String access)
Returns the access level defined by the parameter as a static integer. |
String |
getAccessString()
Returns the access of a service as a String. |
String |
getConfigContents()
Return the contents of the configuration file for the newly created image service. |
String |
getConfigFile()
Returns the location of the configuration file as a String. |
String |
getExtension()
|
int |
getImageType()
Returns currently defined image type as integer as set with static variables (IMAGE_JPG, IMAGE_GIF, IMAGE_PNG, IMAGE_PNG8). |
static int |
getImageTypeInt(String imageType)
Returns the image type defined by the parameter as a static integer. |
String |
getImageTypeString()
Returns currently defined image type as String. |
boolean |
getIsCustom()
Returns true if this is a custom service, false otherwise. |
String |
getName()
Used to get service name. |
int |
getOutputCleanup()
Gets the output cleanup interval. |
String |
getOutputCleanupString()
Gets the output cleanup interval as a String. |
String |
getOutputDir()
Gets the output directory. |
String |
getOutputURL()
Gets the output URL. |
int |
getPixelCount()
Returns the maximum pixel count per image generated by this service. |
String |
getPixelCountString()
Returns the maximum pixel count per image generated by this service as a String. |
static Service |
getService(String name,
ConnectionProxy connection)
Returns a Service object representing the service of the given name on the site defined by the connnection. |
String[] |
getVirtualServerInfo()
Used to get the name of the virtualServer. |
String |
getVirtualServerName()
Used to get the name of the virtualServer. |
boolean |
isRunning()
Returns true if this map service is being served by the site, false otherwise. |
static byte[] |
readBytes(InputStream inStream)
|
boolean |
removeService(ConnectionProxy connection)
Removes this service. |
void |
setAccess(int access)
Sets the access of a service as PUBLIC or PRIVATE. |
void |
setConfigContents(byte[] configContents,
boolean encode)
Sets the contents of the configuration file for this service from a String. |
void |
setConfigContents(InputStream configContents,
boolean encode)
Sets the contents of the configuration file for this service from a String. |
void |
setConfigContents(String configContents)
Sets the contents of the configuration file for this service from a String. |
void |
setConfigContents(String configContents,
boolean encode)
Sets the contents of the configuration file for this service from a String. |
void |
setConfigFile(String configFile)
Sets the location of the configuration file. |
void |
setConfigFileLength(long fileLength)
Sets the length of the configuration file. |
void |
setExtension(String ext)
|
void |
setImageType(int type)
Sets the image output type used. |
void |
setIsCustom(boolean isCustom)
Sets whether or not this is a custom service. |
void |
setName(String name)
Used to set service name. |
void |
setOutputCleanup(int outputCleanup)
Sets the cleanup interval for output files generated for this service. |
void |
setOutputDir(String outputDir)
Sets the output directory for image, extract, and other services that output files. |
void |
setOutputURL(String outputURL)
Sets the output url for image, extract, and other services that output files. |
void |
setPixelCount(int pixCount)
Sets the maximum pixel count per image for this service. |
void |
setRunning(boolean isRunning)
This method is used to set the state of this object to running or stopped. |
void |
setVirtualServer(String virtualServer,
String type,
String version)
Used to set the name of the virtualServer. |
boolean |
startService(ConnectionProxy connection)
Starts this service. |
boolean |
stopService(ConnectionProxy connection)
Stops this service. |
String |
toString()
Overwrites Object.toString(). |
void |
useBinary(boolean useBinary)
|
boolean |
usesBinary()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int IMAGE_JPG
public static final int IMAGE_GIF
public static final int IMAGE_PNG
public static final int IMAGE_PNG8
public static final int IMAGE_BMP
public static final int ACCESS_PUBLIC
public static final int ACCESS_PRIVATE
Constructor Detail |
---|
public Service()
Method Detail |
---|
public static Service getService(String name, ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
name
- The name of the service of interest.connection
- The connection to the site.
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public void setName(String name)
name
- The name of the service.public String getName()
public void setVirtualServer(String virtualServer, String type, String version)
virtualServer
- The name of the virutal server this is service
is (is to be) assocaited with.public String getVirtualServerName()
public String[] getVirtualServerInfo()
public void setImageType(int type)
type
- Defines the type of image to be output for a given image
service.public int getImageType()
public String getImageTypeString()
public void setIsCustom(boolean isCustom)
isCustom
- True if this is a custom service, false otherwise.public boolean getIsCustom()
public void setOutputDir(String outputDir)
outputDir
- The output directory for files.public String getOutputDir()
public void setOutputURL(String outputURL)
outputURL
- The output URL for files.public String getOutputURL()
public void setOutputCleanup(int outputCleanup)
outputCleanup
- The cleanup time for files in the output directory.public int getOutputCleanup()
public String getOutputCleanupString()
public void setConfigFileLength(long fileLength)
fileLength
- The length of the configuration file, in bytes.public void setConfigFile(String configFile)
configFile
- The location of the configuration file.public String getConfigFile()
public void setConfigContents(String configContents)
setConfigContent(configContents, false)
.
configContents
- The contents of the configuration file for this service.public void setConfigContents(String configContents, boolean encode)
configContents
- The contents of the configuration file for this service.encode
- True to base64 encode contents, false otherwise.public void setConfigContents(byte[] configContents, boolean encode)
configContents
- The contents of the configuration file for this service.encode
- True to base64 encode contents, false otherwise.public void setConfigContents(InputStream configContents, boolean encode) throws IOException
configContents
- The contents of the configuration file for this service.encode
- True to base64 encode contents, false otherwise.
IOException
public String getConfigContents()
public void setPixelCount(int pixCount)
pixCount
- The maximum pixel count per image generated by this
service.public int getPixelCount()
public String getPixelCountString()
public boolean isRunning()
public void setRunning(boolean isRunning)
isRunning
- True to set object state to "running", false otherwise.startService(ConnectionProxy)
,
stopService(ConnectionProxy)
public void setAccess(int access)
access
- the access level to set the service at. These values are defined as static integers in this class.public int getAccess()
public String getAccessString()
public boolean addService(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public boolean removeService(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public boolean startService(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public boolean stopService(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public static int getAccessInt(String access)
public static int getImageTypeInt(String imageType)
public boolean usesBinary()
public void useBinary(boolean useBinary)
public String getExtension()
public void setExtension(String ext)
public String toString()
toString
in class Object
public static byte[] readBytes(InputStream inStream) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |