AQjmsDestination - Oracle 9i

Syntax

All Implemented Interfaces javax.jms.Destination, javax.jms.Queue, javax.jms.Topic

Description
This class implements administered objects, Queue and Topic

Member Summary
Member SummaryMember Summary

Inherited Member Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
wait, wait, wait

Methods
alter(Session, AQjmsDestinationProperty)

public void alter(javax.jms.Session session, AQjmsDestinationProperty dest_property)

alter the properties of the queue/topic

Parameters

session - the jms session dest_property - the new properties of the queue/topic

alterPropagationSchedule(Session, String, Double, String, Double)

public void alterPropagationSchedule(javax.jms.Session session, java.lang.String destination, java.lang.Double duration, java.lang.String next_time, java.lang.Double latency)

alter propagation schedule between the topic and the destination database

Parameters

session - the jms session destination - the dblink of the destination database
duration - the new duration
next_time - the new next_time for propagation
latency - the new latency

disablePropagationSchedule(Session, String)

public void disablePropagationSchedule(javax.jms.Session session, java.lang.String destination)

disable propagation schedule

Parameters

session - the jms session destination - the dblink to the destination database

Throws

JMSException - if the propagation schedule could not be disabled

drop(Session)

public void drop(javax.jms.Session session)

drop the queue/topic

Parameters

session - the jms session

Throws

JMSException - if the queue/topic could not be dropped

enablePropagationSchedule(Session, String)

public void enablePropagationSchedule(javax.jms.Session session, java.lang.String destination)

enable propagation schedule

Parameters

session - the JMS session destination - the dblink of the destination database

Throws

JMSException - if the propagation could not be enabled

getCompleteName()

public java.lang.String getCompleteName()

Get the complete name of the queue/topic, of the form, [schema].name

Returns
the complete name of the queue/topic

getCompleteTableName()

public java.lang.String getCompleteTableName()

Get the complete name of the queue table of the queue/topic of the form, [schema].name

Returns
the complete name of the queue/topic's queue table

getQueueName()

public java.lang.String getQueueName()

Get the name of the queue

Specified By

javax.jms.Queue.getQueueName() in interface javax.jms.Queue

Returns
the name of the queue

Throws

JMSException - if the queue is not a single consumer queue

getQueueOwner()

public java.lang.String getQueueOwner()

Get the owner of the queue

Returns
the schema of the queue

Throws

JMSException - if the schema could not be retrieved

getTopicName()

public java.lang.String getTopicName()

Get the name of the Topic

Specified By

javax.jms.Topic.getTopicName() in interface javax.jms.Topic

Returns
the name of the topic

Throws

JMSException - if the queue is not a multi consumer queue (topic)

getTopicOwner()

public java.lang.String getTopicOwner()

Get the schema of the topic

Returns
the schema of the topic

Throws

JMSException - if the schema could not be retrieved

grantQueuePrivilege(Session, String, String, boolean)

public void grantQueuePrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee, boolean grant_option)

Grant enqueue or dequeue privilege on the queue to a database user

Parameters

session - the jms session privilege - the privilege (ENQUEUE or DEQUEUE) grantee - the user being granted the privilege grant_option - whether the grantee can grant the privilege to others

Throws

JMSException - if the privilege could not be granted

grantTopicPrivilege(Session, String, String, boolean)

public void grantTopicPrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee, boolean grant_option)

Grant a topic privilege

Parameters

session - the jms session privilege - the privilege (ENQUEUE or DEQUEUE) being granted grantee - the database user being granted the privilege grant_option - whether the grantee can grant the privilege to other users

Throws

JMSException - if the privilege could not be granted

revokeQueuePrivilege(Session, String, String)

public void revokeQueuePrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee)

Revoke a queue privilege

Parameters

session - the jms session privilege - the privilege (ENQUEUE or DEQUEUE) being revoked grantee - the database user from whom the privilege is being revoked

Throws

JMSException - if the privilege could not be revoked

revokeTopicPrivilege(Session, String, String)

public void revokeTopicPrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee)

Revoke a topic privilege

Parameters

session - thejms session privilege - the privilege (ENQUEUE or DEQUEUE) being revoked grantee - the database user from whom the privilege is being revoked

Throws

JMSException - if the privilege could not be revoked

schedulePropagation(Session, String, Date, Double, String, Double)

public void schedulePropagation(javax.jms.Session session, java.lang.String destination, java.util.Date start_time, java.lang.Double duration, java.lang.String next_time, java.lang.Double latency)

Schedule propagation from the topic for the given destination database

Parameters

session - the JMS session destination - the dblink of the remote database for which propagation is being scheduled. A null string means that propagation will be scheduled for all subscribers in the database of the topic start_time - the time propagation must be started duration - the duration of propagation next_time - the next time propagation must be done latency - the latency in seconds that can be tolerated latency is the difference between the time
a message was enqueued and the time it was propagated

Throws

JMSException - if propagation could not be scheduled

start(Session, boolean, boolean)

public void start(javax.jms.Session session, boolean enqueue, boolean dequeue)

start the queue/topic for enqueue or dequeue or both

Parameters

session - the jms session enqueue - whether enqueue should be enabled dequeue - whether dequeue should be enabled

Throws

JMSException - if failed to start the queue/topic

stop(Session, boolean, boolean, boolean)

public void stop(javax.jms.Session session, boolean enqueue, boolean dequeue, boolean wait)

stop the queue/topic for enqueue or dequeue or both

Parameters

session - the jms session enqueue - whether enqueue should be disabled dequeue - whether dequeue should be disabled wait - whether to wait for pending transactions on the queue/topic to complete

Throws

JMSException - if failed to stop the queue/topic

toString()

public java.lang.String toString() Get the queue/topic as a string, of the form [schema].name

Specified By

javax.jms.Queue.toString() in interface javax.jms.Queue

Overrides

java.lang.Object.toString() in class java.lang.Object

Returns

the queue/topic as a string

unschedulePropagation(Session, String)

public void unschedulePropagation(javax.jms.Session session, java.lang.String destination)

Unschedule propagation between the topic and the specified destination

Parameters

session - the jms session destination - the dblink of the destination database for which propagation must be unscheduled

Throws

JMSException - if propagation could not be unscheduled

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics