com.ontotext.ordi.wsmo4rdf.remote.client
Class RemoteWsmoSource

java.lang.Object
  extended by com.ontotext.ordi.wsmo4rdf.remote.client.RemoteWsmoSource
All Implemented Interfaces:
DataSource, WarningAware, Wrapper, WsmoSource

public class RemoteWsmoSource
extends Object
implements WsmoSource


Field Summary
 
Fields inherited from interface com.ontotext.ordi.wsmo4rdf.WsmoSource
ORDI_SOURCE
 
Constructor Summary
RemoteWsmoSource(int remoteId, RemoteWsmo4rdfGate gate)
           
 
Method Summary
 void clearWarnings()
          Clears all reported warnings by the object.
 void finalize()
           
 RemoteWsmoConnection getConnection()
          Create new connection with default values.
 WsmoConnection getConnection(String user, String pass)
          Creates a new connection with specified user name and password.
 Map<Object,Object> getMetaData()
          Retrieves the meta-data properties used to create this DataSource.
 ORDIWarning getWarning()
          Retrieves the first warning reported by the object
 boolean isShutdown()
          Verifies whether the server instance is shutdown.
 boolean isWrapperFor(Class<?> iface)
          Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.
 void shutdown()
          Sends a signal to the server for shutdown.
<T> T
unwrap(Class<T> iface)
          Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteWsmoSource

public RemoteWsmoSource(int remoteId,
                        RemoteWsmo4rdfGate gate)
Method Detail

finalize

public void finalize()
Overrides:
finalize in class Object

getConnection

public RemoteWsmoConnection getConnection()
Description copied from interface: WsmoSource
Create new connection with default values.

Specified by:
getConnection in interface DataSource
Specified by:
getConnection in interface WsmoSource
Returns:
connection to tripleset model.

getConnection

public WsmoConnection getConnection(String user,
                                    String pass)
Description copied from interface: WsmoSource
Creates a new connection with specified user name and password.

Specified by:
getConnection in interface DataSource
Specified by:
getConnection in interface WsmoSource
Parameters:
user - name to be used.
pass - of the specified user.
Returns:
connection to tripleset data model.

getMetaData

public Map<Object,Object> getMetaData()
Description copied from interface: DataSource
Retrieves the meta-data properties used to create this DataSource.

Specified by:
getMetaData in interface DataSource
Returns:
collection of key/values

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws ORDIException
Description copied from interface: Wrapper
Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.

Specified by:
isWrapperFor in interface Wrapper
Parameters:
iface - A Class defining an interface that the result must implement.
Returns:
an object that implements the interface. May be a proxy for the actual implementing object.
Throws:
ORDIException

unwrap

public <T> T unwrap(Class<T> iface)
         throws ORDIException
Description copied from interface: Wrapper
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.

Specified by:
unwrap in interface Wrapper
Parameters:
iface - a Class defining an interface.
Returns:
true if this implements the interface or directly or indirectly wraps an object that does.
Throws:
ORDIException

clearWarnings

public void clearWarnings()
Description copied from interface: WarningAware
Clears all reported warnings by the object.

Specified by:
clearWarnings in interface WarningAware

getWarning

public ORDIWarning getWarning()
Description copied from interface: WarningAware
Retrieves the first warning reported by the object

Specified by:
getWarning in interface WarningAware
Returns:
the first ORDIWarning or null if there are none.

isShutdown

public boolean isShutdown()
Description copied from interface: DataSource
Verifies whether the server instance is shutdown.

Specified by:
isShutdown in interface DataSource
Returns:

shutdown

public void shutdown()
Description copied from interface: DataSource
Sends a signal to the server for shutdown. There is no strict definition how the different implementation have to process it.

Specified by:
shutdown in interface DataSource


Copyright © 2008. All Rights Reserved.